Skip to content
Snippets Groups Projects
Commit e1a045b8 authored by Tomasz's avatar Tomasz
Browse files

Adjust to changed mechanizm of providing global server version and compile...

Adjust to changed mechanizm of providing global server version and compile time information. Now it is done via global variables: _unique_server_version_global__ and _unique_server_builddate_global__
parent 4743abc4
No related branches found
No related tags found
No related merge requests found
......@@ -7,4 +7,5 @@ int interrupt_status_global = -1;
int fd_timer_id_global = -1;
std::string _unique_server_version_global__ = std::string(SERVER_VERSION);
std::string _unique_server_builddate_global__ = std::string(__DATE__) + " " + std::string(__TIME__);
......@@ -114,7 +114,11 @@ SER_VER_STR = '"'$(SER_VER)'"'
%.o:
@if [ -f $(SRCDIR)/$(*F).cc ] ; then \
@if [ -f $(SRCDIR)/$(*F).cc ] && [ "$(*F)" = "LinkLockGlobals" ] ; then \
echo ---------- compiling SRCDIR with D: $(SRCDIR)/$(*F).cc ------------ ; \
$(CC) $(CPPFLAGS) $(CCFLAGS) -c -DSERVER_VERSION=$(SER_VER_STR) -o ${OBJDIR}/$(*F).o $(SRCDIR)/$(*F).cc ; \
chmod g+w ${OBJDIR}/$(*F).o ; \
elif [ -f $(SRCDIR)/$(*F).cc ] ; then \
echo ---------- compiling SRCDIR: $(SRCDIR)/$(*F).cc ------------ ; \
$(CC) $(CPPFLAGS) $(CCFLAGS) -c -o ${OBJDIR}/$(*F).o $(SRCDIR)/$(*F).cc ; \
chmod g+w ${OBJDIR}/$(*F).o ; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment