1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
include ../../build-unix/Makefile.config
PROJECTS := fir fir_rtl
COMMON_TARGETS := all build run check clean ultraclean
COMMON_SRCS = \
stimulus.cpp \
display.cpp
fir_SRCS = \
$(COMMON_SRCS) \
fir.cpp \
main.cpp
fir_rtl_SRCS = \
$(COMMON_SRCS) \
fir_fsm.cpp \
fir_data.cpp \
main_rtl.cpp
# project not set -> all projects
ifeq (,$(strip $(PROJECT)))
$(COMMON_TARGETS)::
@for prj in $(PROJECTS) ; do \
$(MAKE) $@ FLAG_BATCH=1 PROJECT=$$prj ; \
done
else # module-specific rules
OBJS := $($(PROJECT)_SRCS:.cpp=.o)
include ../../build-unix/Makefile.rules
endif # project switch
## Taf!
|