Update Makefiles

This commit is contained in:
2019-04-14 22:50:44 +02:00
parent 9866174ac2
commit 05e4e7e631
14 changed files with 148 additions and 88 deletions
+7 -12
View File
@@ -2,19 +2,14 @@
# Makefile.target
#
PresenceDetection: Application/PresenceDetection.$(ARCH).o $(OBJECTS)
$(eval $@_DATETIME := $(DATETIME))
@echo [LD] $@
@$(PREFIX) $(CC) -o $@ $^ $(LFLAGS) $(CFLAGS) $(POSTFIX)
@$(OBJCOPY) --only-keep-debug $@ $(DEBUGDIR)/$@-$($@_DATETIME).debug
@$(STRIP) $(SFLAGS) $@
@$(OBJCOPY) --add-gnu-debuglink="$(DEBUGDIR)/$@-$($@_DATETIME).debug" $@
@chmod -x $(DEBUGDIR)/$@-$($@_DATETIME).debug
PresenceDetection.$(ARCH): $(OBJECTS) Application/PresenceDetection.o.$(ARCH)
$(call target,$@,$^)
test: Application/Test.$(ARCH).o $(OBJECTS)
@echo [LD] $@
@$(PREFIX) $(CC) -o $@ $^ $(LFLAGS) $(CFLAGS) $(POSTFIX)
@$(STRIP) $(SFLAGS) $@
test.$(ARCH): $(OBJECTS) Application/Test.o.$(ARCH)
$(call target,$@,$^)
PresenceDetection: PresenceDetection.$(ARCH)
test: test.$(ARCH)
.DEFAULT_GOAL := PresenceDetection