1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/apps/public/tftp-1.0/Makefile
2024-07-22 01:58:46 -03:00

44 lines
861 B
Makefile
Executable File

# $Id: //BBN_Linux/Branch/Branch_for_Rel_TP_ASEAN_20161216/tclinux_phoenix/apps/public/tftp-1.0/Makefile#1 $
#CROSS=mips-linux-
#CC=$(CROSS)gcc
AR=$(CROSS)ar
LD=$(CROSS)ld
STRIP=$(CROSS)strip
RANLIB=$(CROSS)ranlib
SIZE=$(CROSS)size
CFLAGS= -mips1 -msoft-float -DTRENDCHIP
ifneq ($(strip $(TCSUPPORT_CODE_SHRINK)),)
CFLAGS += -Os
endif
#LIBTCAPI= -lm -L /usr/local/lib -ltcapi
#LIBTCAPI= -lm -L ../lib -ltcapi
LIBTCAPI=-L ../lib -ltcapi
INCLUDE = -I$(KERNEL_HEADER)
ifneq ($(TC_CFLAGS), )
CFLAGS += $(TC_CFLAGS)
endif
ifeq ($(WITHVOIP),1)
CFLAGS += -DWITHVOIP
endif
all: tcapi_lib tftpd
tcapi_lib:
$(MAKE) -C $(APP_TCAPILIB_DIR) clean
$(MAKE) -C $(APP_TCAPILIB_DIR)
$(MAKE) -C $(APP_TCAPILIB_DIR) install
%.o: %.c
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c -o $@ $^
tftpd: tftpd.o
$(CC) $(LIBTCAPI) -o $@ $^
$(STRIP) $@
clean:
rm -f *.o tftpd