Stop spawning cat/tr for each compiled source file

This commit is contained in:
Ryan Prichard 2016-01-18 00:16:45 -06:00
parent 80d4faa72c
commit 3da3381859

View File

@ -34,8 +34,10 @@ MINGW_OPTIMIZATION_FLAGS ?= -O2
include config.mk include config.mk
VERSION := $(shell cat VERSION.txt | tr -d '\r\n')
COMMON_CXXFLAGS += \ COMMON_CXXFLAGS += \
-DWINPTY_VERSION=$$(cat VERSION.txt | tr -d '\r\n') \ -DWINPTY_VERSION=$(VERSION) \
-DWINPTY_VERSION_SUFFIX=$(VERSION_SUFFIX) \ -DWINPTY_VERSION_SUFFIX=$(VERSION_SUFFIX) \
-DWINPTY_COMMIT_HASH=$(COMMIT_HASH) \ -DWINPTY_COMMIT_HASH=$(COMMIT_HASH) \
-MMD -Wall \ -MMD -Wall \