1
0
This repository has been archived on 2024-07-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2024-07-22 01:58:46 -03:00

36 lines
669 B
Makefile
Executable File

# $Id: //BBN_Linux/Branch/Branch_for_Rel_TP_ASEAN_20161216/tclinux_phoenix/apps/public/mtd/Makefile#1 $
#CROSS=mips-linux-gnu-
#CROSS=mips-linux-
#CC=$(CROSS)gcc
AR=$(CROSS)ar
LD=$(CROSS)ld
STRIP=$(CROSS)strip
RANLIB=$(CROSS)ranlib
SIZE=$(CROSS)size
CFLAGS= -DTRENDCHIP
ifneq ($(strip $(TCSUPPORT_CODE_SHRINK)),)
CFLAGS += -Os
endif
#CFLAGS= -mips32r2 -msoft-float -DTRENDCHIP -muclibc
ifneq ($(TC_CFLAGS), )
CFLAGS+=$(TC_CFLAGS)
endif
INCLUDE = -I$(KERNEL_HEADER)
all: mtd
%.o: %.c
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c -o $@ $^
mtd: mtd.o
$(CC) -o $@ $^
$(CC) -static -o mtd-static $^
$(STRIP) $@
$(STRIP) mtd-static
clean:
rm -f *.o mtd