diff --git a/Makefile b/Makefile index 017e20e..cd897bb 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ -CFLAGS := -O2 -pipe -Wall -CXXFLAGS := -O2 -pipe -Wall -Wunused -Wno-deprecated +VERSION := '"v1.00"' + +CFLAGS := -O2 -pipe -Wall -DVERSION=$(VERSION) +CXXFLAGS := -O2 -pipe -Wall -Wunused -Wno-deprecated -DVERSION=$(VERSION) LIBS := -lpthread HLSWMASTER_SRC := config.o gameentry.o gamelist.o gameparser.o gamescanner.o \ diff --git a/hlswmaster.cpp b/hlswmaster.cpp index b61df7e..0655fc7 100644 --- a/hlswmaster.cpp +++ b/hlswmaster.cpp @@ -87,7 +87,7 @@ int main(int argc, char *argv[]) LogSystem::init(logprio, new StdErrLog()); } - LogSystem::log(LOG_EVERYTIME, "hlswmaster-ng startup (pid:%d)", getpid()); + LogSystem::log(LOG_EVERYTIME, "hlswmaster-ng %s startup (pid:%d)", VERSION, getpid()); conf.show(); RecvQueue rxQueue;