defs.mk.in: Do all -DVERSION_STR handling

Push -DVERSION_STR from main.mk and yapp.mk into defs.mk.in.
This commit is contained in:
Jan Lindemann 2012-05-02 17:55:14 +00:00 committed by Jan Lindemann
commit adfdec7492
3 changed files with 3 additions and 6 deletions

View file

@ -147,8 +147,8 @@ SYSCFG_FILE ?= $(SYSCFG_DIR)/$(PROJECT)
endif
OPTS_PID_FILE ?= $(PIDDIR)/$(PROJECT).pid
BUILD_CFLAGS += -DVERSION=$(HEX_VERSION)
BUILD_CPPFLAGS += -DVERSION=$(HEX_VERSION)
BUILD_CFLAGS += -DVERSION=$(HEX_VERSION) -DVERSION_STR=\"$(VERSION)\"
BUILD_CPPFLAGS += -DVERSION=$(HEX_VERSION) -DVERSION_STR=\"$(VERSION)\"
ifeq ($(TARGET),mingw)
ifneq ($(wildcard /usr/bin/i686-w64-mingw32-gcc),)