44 lines
1.1 KiB
Makefile
Executable File
44 lines
1.1 KiB
Makefile
Executable File
|
|
# OUTPUT type
|
|
# 1 - .out
|
|
# 2 - .a
|
|
# 3 - .so
|
|
OUTPUT_TYPE = 0
|
|
OUTPUT_NAME = multicore
|
|
|
|
SUB_DIRS += appcpu_ipc_test seccpu_ipc_test
|
|
|
|
# .h files dir
|
|
#ADD_INCLUDE += $(TOPDIR)/inc/pkt $(TOPDIR)/inc/io_lib $(TOPDIR)/plc/inc \
|
|
# $(TOPDIR)/plc/halphy/inc $(TOPDIR)/inc/os_shim $(TOPDIR)/common/compiler/gcc/inc \
|
|
# $(TOPDIR)/plc/halmac/inc $(TOPDIR)/inc/utils $(TOPDIR)/plc/halmac/hw/inc/desc \
|
|
# $(TOPDIR)/plc/halmac/hw/inc/reg $(TOPDIR)/plc/halmac/hw/inc $(TOPDIR)/plc/halphy/hw/inc \
|
|
# $(TOPDIR)/inc/driver $(TOPDIR)/dtest/common $(TOPDIR)/plc/common/inc
|
|
|
|
# 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
|
|
|
|
# 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)
|