|
|
@ -13,6 +13,8 @@ VERSION_REV=0
|
|
|
|
|
|
|
|
|
|
|
|
VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_BF).$(VERSION_REV)
|
|
|
|
VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_BF).$(VERSION_REV)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
COMP_TIME:=$(shell date -u +%s)
|
|
|
|
|
|
|
|
|
|
|
|
SRC_C = $(wildcard src/*.c) $(wildcard src/tests/*.c)
|
|
|
|
SRC_C = $(wildcard src/*.c) $(wildcard src/tests/*.c)
|
|
|
|
SRC_CXX = $(wildcard src/*.cpp)
|
|
|
|
SRC_CXX = $(wildcard src/*.cpp)
|
|
|
|
|
|
|
|
|
|
|
@ -21,7 +23,8 @@ INCLUDE=include
|
|
|
|
META_FLAGS:=-D_PROJECT_AUTHOR="\"$(AUTHOR)\"" -D_PROJECT_DESCRIPTION="\"$(DESCRIPTION)\"" -D_PROJECT_NAME="\"$(PROJECT)\"" \
|
|
|
|
META_FLAGS:=-D_PROJECT_AUTHOR="\"$(AUTHOR)\"" -D_PROJECT_DESCRIPTION="\"$(DESCRIPTION)\"" -D_PROJECT_NAME="\"$(PROJECT)\"" \
|
|
|
|
-D_PROJECT_LICENSE="\"$(LICENSE)\"" \
|
|
|
|
-D_PROJECT_LICENSE="\"$(LICENSE)\"" \
|
|
|
|
-D_VERSION_MAJOR=$(VERSION_MAJ) -D_VERSION_MINOR=$(VERSION_MIN) \
|
|
|
|
-D_VERSION_MAJOR=$(VERSION_MAJ) -D_VERSION_MINOR=$(VERSION_MIN) \
|
|
|
|
-D_VERSION_BUGFIX=$(VERSION_BF) -D_VERSION_REVISION=$(VERSION_REV)
|
|
|
|
-D_VERSION_BUGFIX=$(VERSION_BF) -D_VERSION_REVISION=$(VERSION_REV) \
|
|
|
|
|
|
|
|
-D_PROJECT_COMPILED=$(COMP_TIME)
|
|
|
|
|
|
|
|
|
|
|
|
COMMON_FLAGS+= -W -Wall -fno-strict-aliasing $(addprefix -I,$(INCLUDE)) $(META_FLAGS)
|
|
|
|
COMMON_FLAGS+= -W -Wall -fno-strict-aliasing $(addprefix -I,$(INCLUDE)) $(META_FLAGS)
|
|
|
|
|
|
|
|
|
|
|
|