Update Makefiles
This commit is contained in:
+7
-12
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user