comparison nuc-fw/Makefile @ 89:d01098eccf21

nuc-fw: configuration mechanism hooked into the top level Makefile
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 25 Aug 2013 19:05:51 +0000
parents 147861b15cda
children 3b2e941043d8
comparison
equal deleted inserted replaced
88:ccde45a06737 89:d01098eccf21
1 COMPONENTS= nucdemo nucleus sprintf sysglue 1 SUBDIR= finlink include nucdemo nucleus sprintf sysglue
2 SUBDIR= ${COMPONENTS} finlink
3 2
4 all: ramImage 3 default: config.stamp
4 ${MAKE} ${MFLAGS} -f Makefile.build $@
5 5
6 ${COMPONENTS}: FRC 6 ramImage flashImage: config.stamp
7 cd $@; make ${MFLAGS} 7 ${MAKE} ${MFLAGS} -f Makefile.build $@
8 8
9 ramImage flashImage: ${COMPONENTS} 9 config.stamp: build.conf
10 cd finlink; make ${MFLAGS} $@ 10 cfgmagic/processconf.sh
11 touch $@
12
13 build.conf:
14 @echo 'Configuration is required before the build.'
15 @echo 'Please create a valid build.conf file by running config.sh'
16 @echo 'or copying an existing configuration file into place.'
17 @false
11 18
12 clean: FRC 19 clean: FRC
13 rm -f a.out core errs 20 rm -f a.out core errs *.stamp
14 for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done 21 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
15 22
16 FRC: 23 FRC: