|
@@ -998,7 +998,7 @@ BUILD_TIMESTAMP := $(shell date +%s)
|
998
|
998
|
# Build version
|
999
|
999
|
#
|
1000
|
1000
|
GIT_INDEX := $(if $(GITVERSION),$(if $(wildcard ../.git/index),../.git/index))
|
1001
|
|
-$(BIN)/%.version.o : core/version.c $(MAKEDEPS) $(GIT_INDEX)
|
|
1001
|
+$(BIN)/version.%.o : core/version.c $(MAKEDEPS) $(GIT_INDEX)
|
1002
|
1002
|
$(QM)$(ECHO) " [VERSION] $@"
|
1003
|
1003
|
$(Q)$(COMPILE_c) -DBUILD_NAME="\"$*\"" \
|
1004
|
1004
|
-DVERSION_MAJOR=$(VERSION_MAJOR) \
|
|
@@ -1010,7 +1010,7 @@ $(BIN)/%.version.o : core/version.c $(MAKEDEPS) $(GIT_INDEX)
|
1010
|
1010
|
# Build an intermediate object file from the objects required for the
|
1011
|
1011
|
# specified target.
|
1012
|
1012
|
#
|
1013
|
|
-$(BIN)/%.tmp : $(BIN)/%.version.o $(BLIB) $(MAKEDEPS) $(LDSCRIPT)
|
|
1013
|
+$(BIN)/%.tmp : $(BIN)/version.%.o $(BLIB) $(MAKEDEPS) $(LDSCRIPT)
|
1014
|
1014
|
$(QM)$(ECHO) " [LD] $@"
|
1015
|
1015
|
$(Q)$(LD) $(LDFLAGS) -T $(LDSCRIPT) $(TGT_LD_FLAGS) $< $(BLIB) -o $@ \
|
1016
|
1016
|
--defsym _build_id=`$(BUILD_ID_CMD)` \
|