2010-02-23 23:14:32 +00:00
|
|
|
MC1322X := ..
|
2010-02-21 22:34:27 +00:00
|
|
|
|
2010-02-26 19:04:10 +00:00
|
|
|
# all off the common objects for each target
|
|
|
|
# a COBJ is made for EACH board and goes the obj_$(BOARD)_board directory
|
|
|
|
# board specific code is OK in these files
|
2010-03-03 13:09:19 +00:00
|
|
|
COBJS := tests.o put.o
|
2010-02-26 19:04:10 +00:00
|
|
|
|
|
|
|
# all of the target programs to build
|
2010-03-02 15:39:23 +00:00
|
|
|
TARGETS := blink-red blink-green blink-blue blink-white blink-allio \
|
2010-02-26 22:44:39 +00:00
|
|
|
uart1-loopback \
|
|
|
|
tmr tmr-ints \
|
|
|
|
sleep \
|
2010-03-02 19:32:34 +00:00
|
|
|
printf
|
2010-02-26 22:44:39 +00:00
|
|
|
|
2010-03-02 15:38:32 +00:00
|
|
|
# these targets are built with space reserved for variables needed by ROM services
|
|
|
|
# this space is initialized with a rom call to rom_data_init
|
2010-03-03 23:48:29 +00:00
|
|
|
TARGETS_WITH_ROM_VARS := nvm-read nvm-write romimg flasher \
|
|
|
|
rftest-rx rftest-tx \
|
|
|
|
per
|
2010-02-23 23:27:12 +00:00
|
|
|
|
2010-03-12 21:43:21 +00:00
|
|
|
##################################################
|
|
|
|
# you shouldn't need to edit anything below here #
|
|
|
|
##################################################
|
|
|
|
|
|
|
|
need := 3.81
|
|
|
|
ok := $(filter $(need),$(firstword $(sort $(MAKE_VERSION) \
|
|
|
|
$(need))))
|
|
|
|
|
|
|
|
ifdef $(need)
|
|
|
|
$(error You need to use version 3.81 of Make or later)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# this rule will become the default_goal if
|
|
|
|
# $(MC1322X)/Makefile.include doesn't exist it will try to update the
|
|
|
|
# submodule, check if $(MC1322X) exists, and if it does
|
|
|
|
# try make again
|
|
|
|
submodule:
|
2010-03-11 21:31:47 +00:00
|
|
|
git submodule update --init
|
2010-03-12 21:43:21 +00:00
|
|
|
if [ ! -d $(MC1322X) ] ; then echo "*** cannot find MC1322X directory $(MC1322X)" ; exit 2; fi
|
2010-03-11 21:31:47 +00:00
|
|
|
$(MAKE)
|
|
|
|
|
|
|
|
-include $(MC1322X)/Makefile.include
|
2010-02-21 22:34:27 +00:00
|
|
|
|
2010-02-23 20:53:00 +00:00
|
|
|
|
2010-02-23 23:27:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-23 00:18:48 +00:00
|
|
|
|