mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[ion] In makefile, force the PATCH_LEVEL to be length 7 Change-Id: I67a7bd873a247dd42d0d1e845912cc8b71330d9e
24 lines
498 B
Makefile
24 lines
498 B
Makefile
GIT := $(shell command -v git 2> /dev/null)
|
|
PATCH_LEVEL = NONE
|
|
ifdef GIT
|
|
PATCH_LEVEL = `git rev-parse HEAD | head -c 7`
|
|
endif
|
|
|
|
SFLAGS += -Iion/include -DKD_CONFIG_H=1
|
|
|
|
include ion/src/$(PLATFORM)/Makefile
|
|
include ion/src/shared/tools/Makefile
|
|
|
|
ion/src/shared/software_version.o: SFLAGS += -DPATCH_LEVEL=$(PATCH_LEVEL) -DVERSION=$(VERSION)
|
|
|
|
objs += $(addprefix ion/src/shared/, \
|
|
events.o \
|
|
software_version.o \
|
|
)
|
|
|
|
tests += $(addprefix ion/test/,\
|
|
crc32.cpp\
|
|
events.cpp\
|
|
keyboard.cpp\
|
|
)
|