M7350/wlan/8192es/DriverSrcPkg/Users/mp-daemon/Makefile

36 lines
677 B
Makefile
Raw Normal View History

2024-09-09 08:59:52 +00:00
all: UDPserver
#CROSS_COMPILE=mips-wrs-linux-gnu-mips_74k_softfp-glibc_small-
#CC = $(CROSS_COMPILE)gcc
#STRIP = $(CROSS_COMPILE)strip
#CC = mips-uclibc-gcc
#STRIP = mips-uclibc-strip
INCS = -I$(TOP_USERS_DIR)/include
CFLAGS += $(INCS)
IFLAGS =
#LDFLAGS =
ifeq ($(SLINK),1)
CFLAGS += -ffunction-sections -fdata-sections
LDFLAGS += --static -Wl,--gc-sections
endif
DEBUG = -Wall -Os
UDPserver: Makefile UDPserver.o
$(CC) -o $@ $(DEBUG) $(CFLAGS) $(IFLAGS) $(LDFLAGS) UDPserver.o
$(STRIP) $@
romfs:
$(ROMFSINST) /bin/UDPserver
clean:
rm -f UDPserver *.o
UDPserver.o: UDPserver.c
$(CC) -c -o $@ $(DEBUG) $(CFLAGS) $(IFLAGS) $<