56 lines
1.3 KiB
Makefile
Executable File
56 lines
1.3 KiB
Makefile
Executable File
# OUTPUT type
|
|
# 1 - .out
|
|
# 2 - .a
|
|
# 3 - .so
|
|
OUTPUT_TYPE = 2
|
|
OUTPUT_NAME = demo_lwip
|
|
|
|
SUB_DIRS = $(TOPDIR)/import/lwip/ports $(TOPDIR)/import/lwip/ports/netif $(TOPDIR)/import/lwip/ports/netif/netif_msvc_pcap
|
|
|
|
ADD_INCLUDE += $(TOPDIR)/import/lwip/lwip/src/include $(TOPDIR)/import/lwip/ports/include
|
|
|
|
# predefined macro
|
|
PRE_MARCO +=
|
|
|
|
ifeq ($(cco), 1)
|
|
DISABLE_BACKTRACE = 0
|
|
else
|
|
ifeq ($(release_build), 1)
|
|
DISABLE_BACKTRACE = 1
|
|
else
|
|
DISABLE_BACKTRACE = 1
|
|
endif
|
|
endif
|
|
|
|
# lib dir
|
|
ADD_LIBDIR =
|
|
|
|
# lib need to ld together
|
|
ADD_LIB =
|
|
|
|
########################################################
|
|
#leave the lines below un-modified
|
|
########################################################
|
|
ifdef TOPDIR
|
|
include $(TOPDIR)/build/makefile.cfg
|
|
else
|
|
include $(CURDIR)/build/makefile.cfg
|
|
TOPDIR = $(CURDIR)
|
|
export TOPDIR
|
|
endif
|
|
|
|
# display the obj files and output name
|
|
debug:
|
|
@echo TOPDIR=$(TOPDIR)
|
|
@echo OUTPUT_DIR=$(OUTPUT_DIR)
|
|
@echo OUTPUT_MAP=$(OUTPUT_MAP)
|
|
@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)
|
|
@echo LINK_LIBS=$(LINK_LIBS)
|
|
@echo MAKEDEP=$(MAKEDEP)
|
|
@echo CC=$(CC)
|