Upgrade Makewfile to latest version
This commit is contained in:
parent
1a2334df1f
commit
ece3c5d35f
6
Makefile
6
Makefile
@ -2,8 +2,8 @@ include premake.make
|
|||||||
|
|
||||||
# git commit hash and version for this build
|
# git commit hash and version for this build
|
||||||
COMMIT-HASH != git log 2>/dev/null | sed -e '1s/^commit //;q'
|
COMMIT-HASH != git log 2>/dev/null | sed -e '1s/^commit //;q'
|
||||||
COMMIT := "const char* commit = \"$(COMMIT-HASH)\";"
|
COMMIT := "static const char* commit = \"$(COMMIT-HASH)\";"
|
||||||
VERSION := "const char* version = \"$(MAJOR).$(MINOR).$(PATCH)\";"
|
VERSION := "static const char* version = \"$(MAJOR).$(MINOR).$(PATCH)\";"
|
||||||
|
|
||||||
# some important install locations
|
# some important install locations
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
@ -53,7 +53,7 @@ BIN := $(OUTDIR)/$(PROJ)
|
|||||||
SRCS += $(notdir $(wildcard src/*.cpp))
|
SRCS += $(notdir $(wildcard src/*.cpp))
|
||||||
OBJS := $(addprefix $(BUILDDIR)/, $(SRCS:.cpp=.o))
|
OBJS := $(addprefix $(BUILDDIR)/, $(SRCS:.cpp=.o))
|
||||||
DEPS := $(addprefix $(BUILDDIR)/, $(SRCS:.cpp=.dep))
|
DEPS := $(addprefix $(BUILDDIR)/, $(SRCS:.cpp=.dep))
|
||||||
HDRS ?= $(wildcard src/*.hpp)
|
HDRS ?= $(filter-out src/precomp.hpp, $(wildcard src/*.hpp))
|
||||||
MANS := $(addprefix $(PREFIX)/, $(wildcard man/man*/*))
|
MANS := $(addprefix $(PREFIX)/, $(wildcard man/man*/*))
|
||||||
|
|
||||||
# if project supports plugins, link to libdl where needed
|
# if project supports plugins, link to libdl where needed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user