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