annotate nuc-fw/Makefile @ 92:f459043fae0c

nuc-fw config: ld script generation implemented
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 25 Aug 2013 21:20:20 +0000
parents d01098eccf21
children 3b2e941043d8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
89
d01098eccf21 nuc-fw: configuration mechanism hooked into the top level Makefile
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
1 SUBDIR= finlink include nucdemo nucleus sprintf sysglue
81
147861b15cda nuc-fw: ramImage.srec built, nucdemo runs
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2
89
d01098eccf21 nuc-fw: configuration mechanism hooked into the top level Makefile
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
3 default: config.stamp
d01098eccf21 nuc-fw: configuration mechanism hooked into the top level Makefile
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
4 ${MAKE} ${MFLAGS} -f Makefile.build $@
d01098eccf21 nuc-fw: configuration mechanism hooked into the top level Makefile
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
5
d01098eccf21 nuc-fw: configuration mechanism hooked into the top level Makefile
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
6 ramImage flashImage: config.stamp
d01098eccf21 nuc-fw: configuration mechanism hooked into the top level Makefile
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
7 ${MAKE} ${MFLAGS} -f Makefile.build $@
81
147861b15cda nuc-fw: ramImage.srec built, nucdemo runs
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
8
89
d01098eccf21 nuc-fw: configuration mechanism hooked into the top level Makefile
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
9 config.stamp: build.conf
d01098eccf21 nuc-fw: configuration mechanism hooked into the top level Makefile
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
10 cfgmagic/processconf.sh
d01098eccf21 nuc-fw: configuration mechanism hooked into the top level Makefile
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
11 touch $@
81
147861b15cda nuc-fw: ramImage.srec built, nucdemo runs
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
12
89
d01098eccf21 nuc-fw: configuration mechanism hooked into the top level Makefile
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
13 build.conf:
d01098eccf21 nuc-fw: configuration mechanism hooked into the top level Makefile
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
14 @echo 'Configuration is required before the build.'
d01098eccf21 nuc-fw: configuration mechanism hooked into the top level Makefile
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
15 @echo 'Please create a valid build.conf file by running config.sh'
d01098eccf21 nuc-fw: configuration mechanism hooked into the top level Makefile
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
16 @echo 'or copying an existing configuration file into place.'
d01098eccf21 nuc-fw: configuration mechanism hooked into the top level Makefile
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
17 @false
81
147861b15cda nuc-fw: ramImage.srec built, nucdemo runs
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
18
147861b15cda nuc-fw: ramImage.srec built, nucdemo runs
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
19 clean: FRC
89
d01098eccf21 nuc-fw: configuration mechanism hooked into the top level Makefile
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
20 rm -f a.out core errs *.stamp
d01098eccf21 nuc-fw: configuration mechanism hooked into the top level Makefile
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
21 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
81
147861b15cda nuc-fw: ramImage.srec built, nucdemo runs
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
22
147861b15cda nuc-fw: ramImage.srec built, nucdemo runs
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
23 FRC: