Files
kunlun/import/lwip/Makefile
2024-09-28 14:24:04 +08:00

45 lines
1.0 KiB
Makefile

# OUTPUT type
# 1 - .out
# 2 - .a
# 3 - .so
OUTPUT_TYPE = 2
OUTPUT_NAME = lwip
SUB_DIRS = lwip/src/api lwip/src/apps/mqtt lwip/src/core lwip/src/core/ipv4 lwip/src/core/ipv6 lwip/src/netif ports ports/netif ports/netif/netif_msvc_pcap
# .h files dir
ADD_INCLUDE += lwip/src/include ports/include ports/include/arch ports/include/netif $(TOPDIR)/inc/driver $(TOPDIR)/inc/uart
# predefined macro
PRE_MARCO +=
# lib dir
ADD_LIBDIR =
# lib need to ld together
ADD_LIB =
#####################################################
ifdef TOPDIR
include $(TOPDIR)/build/makefile.cfg
else
include $(CURDIR)/build/makefile.cfg
TOPDIR = $(CURDIR)
export TOPDIR
endif
dump:
$(OBJDUMP) -D -S -l $(OUTPUT_FULL_NAME) > $(OUTPUT_FULL_NAME).dump
# display the obj files and output name
debug:
@echo TOPDIR=$(TOPDIR)
@echo OUTPUT_LIB=$(OUTPUT_FULL_NAME)
@echo DEPS=$(DEPS)
@echo OBJECTS=$(OBJECTS)
@echo SRCS=$(SRCS)
@echo OBJECTS folder=$(foreach dirname, $(SUB_DIRS), $(addprefix $(BIN_DIR)/, $(dirname)))
@echo output_name=$(OUTPUT_FULL_NAME)