DRDE/AusRegCliever/Makefile

96 lines
2.4 KiB
Makefile
Raw Normal View History

2014-01-03 05:52:15 +00:00
LOCATION=authoring
#
# Add other locations and move target differences into the macros as needed
2014-01-03 05:52:15 +00:00
#
CC=g++
Cc=gcc
2014-01-03 07:32:44 +00:00
BOSTLIB=-L/usr/lib/boost
BOSINCL=-L/usr/include/boost
LOG4LIB=-L/usr/lib
#ifeq ($(LOCATION),authoring)
ARTKLIB=-L/home/jdaugherty/clients/reg.de/git/AusRegEPPTk/build
ARTKINCL=I/home/jdaugherty/clients/reg.de/git/AusRegEPPTk/common
2014-01-03 05:52:15 +00:00
#endif
#ifeq ($(LOCATION),testing)
ARTKLIB=-L/home/drdejdaugherty/clients/reg.de/git/AusRegEPPTk/build
ARTKINCL=I/home/jdaugherty/clients/reg.de/git/AusRegEPPTk/common
#endif
2014-01-03 05:52:15 +00:00
SLIBS= -L/usr/lib $(BOSTLIB) $(LOG4LIB) -l boost_system -l boost_thread -l log4cpp
2014-01-03 05:52:15 +00:00
ifeq ($(LOCATION),authoring)
2014-01-03 07:32:44 +00:00
SINCL= -I include -I /usr/include/log4cpp $(BOSINCL)
CFLAGS= -DCURRENT_DEBUG=1000 -DPRODUCTION=0
endif
ifeq ($(LOCATION),production)
SINCL= -I include -I /usr/include/log4cpp $(BOSINCL)
CFLAGS= -DPRODUCTION=1
2014-01-03 05:52:15 +00:00
endif
2014-01-03 05:52:15 +00:00
CLIBS= -L$(USRLIB)
CLFLAGS= -Wall -Wundef -Wpointer-arith -Wshadow \
-Wcast-align -Winline -Wmissing-declarations -Wredundant-decls \
-Wmissing-prototypes -Wnested-externs \
-Wstrict-prototypes -Waggregate-return -Wno-implicit
ACOBJS= build/cliever.o build/mdLogger.o build/masterDaemonConfig.o build/masterDaemon.o \
build/mdHost.o
2014-01-03 05:52:15 +00:00
# --- targets
#
ifeq ($(LOCATION),authoring)
all: cliever
endif
cliever: build/drde-cliever
.c.o:
$(Cc) -c $(CLFLAGS) -o $<
2014-01-03 07:51:51 +00:00
build/mdLogger.o: server/mdLogger.cpp include/mdLogger.h
$(CC) $(CFLAGS) server/mdLogger.cpp -c -o build/mdLogger.o $(SINCL)
2014-01-03 07:32:44 +00:00
build/cliever.o: server/cliever-md.cpp include/*.h
$(CC) $(CFLAGS) server/cliever-md.cpp -c -o build/cliever.o $(SINCL)
2014-01-03 05:52:15 +00:00
build/masterDaemonConfig.o: server/masterDaemonConfig.cpp include/*.h
$(CC) $(CFLAGS) server/masterDaemonConfig.cpp -c -o build/masterDaemonConfig.o $(SINCL)
build/mdHost.o: server/mdHost.cpp include/*.h
$(CC) $(CFLAGS) server/mdHost.cpp -c -o build/mdHost.o $(SINCL)
build/masterDaemon.o: server/masterDaemon.cpp include/*.h
$(CC) $(CFLAGS) server/masterDaemon.cpp -c -o build/masterDaemon.o $(SINCL)
build/drde-cliever: $(ACOBJS)
$(CC) $(CFLAGS) -o build/drde-cliever $(SINCL) $(LIBS) $(ACOBJS) $(SLIBS)
2014-01-03 05:52:15 +00:00
doxygen/index.html: etc/doxygen.config
doxygen etc/doxygen.config
# --- rebuild on copy to a new host
distclean:
clrbak
rm -rf build
rm -rf doxygen
mkdir doxygen
mkdir build
touch etc/doxygen.config
clean:
clrbak
find ./build -name "*.o" -print | perl -ne "print;chop;unlink"
find ./build -name "*.rpo" -print | perl -ne "print;chop;unlink"
rm build/drde-cliever