diff options
author | Mitch Bradley <wmb@firmworks.com> | 2016-10-13 11:39:48 -1000 |
---|---|---|
committer | Mitch Bradley <wmb@firmworks.com> | 2016-10-13 11:39:48 -1000 |
commit | 58909e63a5ef8f9ad2a5f13a192fd228d7e1f12c (patch) | |
tree | d1e754ecd240f09177ab066e665e838f839141cd | |
parent | 90b0387a4a9e386e135ddcdfd3e324533d35400f (diff) | |
download | cforth-58909e63a5ef8f9ad2a5f13a192fd228d7e1f12c.tar.gz |
esp8266: removed now-redundant date.o make rule
Also added some missing dependencies
-rw-r--r-- | src/app/esp8266/targets.mk | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/app/esp8266/targets.mk b/src/app/esp8266/targets.mk index ba30dc2..4f8a2b7 100644 --- a/src/app/esp8266/targets.mk +++ b/src/app/esp8266/targets.mk @@ -72,20 +72,11 @@ FORTH_OBJS = tembed.o textend.o DICTIONARY=ROM DICTSIZE=0x4000 -app.o: date.o +app.o: $(PLAT_OBJS) $(FORTH_OBJS) tdate.o @echo Linking $@ ... - @$(TLD) -o $@ -r $(PLAT_OBJS) $(FORTH_OBJS) date.o - -# This rule builds a date stamp object that you can include in the image -# if you wish. - -date.o: $(PLAT_OBJS) $(FORTH_OBJS) - @(echo "`git rev-parse --verify --short HEAD``if git diff-index --exit-code --name-only HEAD >/dev/null; then echo '-dirty'; fi`" || echo UNKNOWN) >version - @echo 'const char version[] = "'`cat version`'";' >date.c - @echo 'const char build_date[] = "'`date --utc +%F\ %R`'";' >>date.c - @cat date.c - @echo TCC $@ - @$(TCC) -c date.c -o $@ + @$(TLD) -o $@ -r $(PLAT_OBJS) $(FORTH_OBJS) tdate.o + +tdate.o: date.c EXTRA_CLEAN += *.elf *.dump *.nm *.img date.c $(FORTH_OBJS) $(PLAT_OBJS) |