Files
Upsilon/ion/Makefile
Émilie Feral 88aeabb8a1 [apps][ion] Add <math.h> header to ensure building with all compilaters
[ion] In makefile, force the PATCH_LEVEL to be length 7

Change-Id: I67a7bd873a247dd42d0d1e845912cc8b71330d9e
2017-08-24 14:05:19 +02:00

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\
)