2010-02-23 18:14:32 -05:00
|
|
|
MC1322X := ..
|
2010-02-21 17:34:27 -05:00
|
|
|
|
2010-02-26 14:04:10 -05: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 08:09:19 -05:00
|
|
|
COBJS := tests.o put.o
|
2010-02-26 14:04:10 -05:00
|
|
|
|
|
|
|
# all of the target programs to build
|
2010-03-02 10:39:23 -05:00
|
|
|
TARGETS := blink-red blink-green blink-blue blink-white blink-allio \
|
2010-02-26 17:44:39 -05:00
|
|
|
uart1-loopback \
|
2011-07-04 14:07:12 -04:00
|
|
|
u1u2-loopback \
|
2010-02-26 17:44:39 -05:00
|
|
|
tmr tmr-ints \
|
|
|
|
sleep \
|
2011-02-27 17:37:37 -05:00
|
|
|
printf \
|
2011-03-11 15:55:32 -05:00
|
|
|
asm \
|
|
|
|
adc \
|
2011-03-22 14:51:08 -04:00
|
|
|
pwm \
|
2011-05-17 16:26:03 -04:00
|
|
|
wdt \
|
|
|
|
xtal-trim
|
2010-02-26 17:44:39 -05:00
|
|
|
|
2010-03-02 10:38:32 -05: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 18:48:29 -05:00
|
|
|
TARGETS_WITH_ROM_VARS := nvm-read nvm-write romimg flasher \
|
|
|
|
rftest-rx rftest-tx \
|
2011-02-12 14:01:54 -05:00
|
|
|
autoack-rx autoack-tx \
|
2010-03-03 18:48:29 -05:00
|
|
|
per
|
2010-02-23 18:27:12 -05:00
|
|
|
|
2010-03-12 16:43:21 -05:00
|
|
|
##################################################
|
|
|
|
# you shouldn't need to edit anything below here #
|
|
|
|
##################################################
|
|
|
|
|
2010-03-12 16:51:49 -05:00
|
|
|
# This Makefile includes the default rule at the top
|
|
|
|
# it needs to be included first
|
|
|
|
-include $(MC1322X)/Makefile.include
|
2010-03-12 16:43:21 -05:00
|
|
|
|
|
|
|
# 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 16:31:47 -05:00
|
|
|
git submodule update --init
|
2010-03-12 16:43:21 -05:00
|
|
|
if [ ! -d $(MC1322X) ] ; then echo "*** cannot find MC1322X directory $(MC1322X)" ; exit 2; fi
|
2010-03-11 16:31:47 -05:00
|
|
|
$(MAKE)
|
|
|
|
|
2010-03-12 17:00:53 -05:00
|
|
|
.PHONY: submodule
|
2010-02-21 17:34:27 -05:00
|
|
|
|
2010-02-23 15:53:00 -05:00
|
|
|
|
2010-02-23 18:27:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-22 19:18:48 -05:00
|
|
|
|