DRDE/AusRegCliever/Makefile

154 lines
4.2 KiB
Makefile
Raw Normal View History

2014-01-17 16:51:06 +00:00
LOCATION=DEBIAN_7
2014-01-16 05:10:28 +00:00
ARTKENABLED=132
2014-01-17 16:51:06 +00:00
#LOCATION=DEBIAN_6
2014-01-15 00:52:58 +00:00
#LOCATION=OSX_10_8
2014-01-03 05:52:15 +00:00
#
2014-01-11 19:34:15 +00:00
# Add other locations and move target differences into the macros as needed,
# setup for my primary development and testing hosts.
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
2014-01-07 17:59:27 +00:00
BOSINCL=-I/usr/include/boost
LOG4LIB=-L/usr/lib
2014-01-11 19:34:15 +00:00
CLIENT=drde
2014-01-15 00:52:58 +00:00
ifeq ($(LOCATION),DEBIAN_7)
2014-01-15 16:44:02 +00:00
ifneq ($(ARTKENABLED),0)
2014-01-09 02:50:51 +00:00
ARTKLIB=-L/home/jdaugherty/clients/reg.de/git/ACTK1_0/lib
2014-01-11 00:58:45 +00:00
ARTKINCL=-I/home/jdaugherty/clients/reg.de/git/ACTK1_0
2014-01-15 00:52:58 +00:00
endif
2014-01-15 16:44:02 +00:00
endif
2014-01-16 05:10:28 +00:00
2014-01-15 00:52:58 +00:00
ifeq ($(LOCATION),DEBIAN_6)
2014-01-09 02:50:51 +00:00
ARTKLIB=-L/home/jdaugherty/dnseppus/ACTK1_0/lib
2014-01-11 00:58:45 +00:00
ARTKINCL=-I/home/jdaugherty/dnseppus/ACTK1_0
endif
2014-01-17 16:51:06 +00:00
2014-01-15 00:52:58 +00:00
ifeq ($(LOCATION),OSX_10_8)
ARTKLIB=-L/Users/juand/dnseppus/ACTK1_0/lib
ARTKINCL=-I/Users/juand/dnseppus/ACTK1_0
endif
2014-01-03 05:52:15 +00:00
2014-01-15 00:52:58 +00:00
ifeq ($(LOCATION),DEBIAN_7)
2014-01-15 16:44:02 +00:00
ifneq ($(ARTKENABLED),0)
2014-01-14 19:58:27 +00:00
XALAN_LIB_DIR = /usr/local/lib
XALAN_LIB = xalan-c
XALAN_INC_DIR = /usr/local/include/xalanc
XERCES_LIB_DIR = /usr/local/lib/
XERCES_LIB = xerces-c
XERCES_INC_DIR = /usr/local/include/xercesc/
2014-01-15 00:52:58 +00:00
endif
2014-01-15 16:44:02 +00:00
endif
2014-01-17 16:51:06 +00:00
2014-01-15 00:52:58 +00:00
ifeq ($(LOCATION),DEBIAN_6)
2014-01-08 13:56:09 +00:00
XALAN_LIB_DIR = /usr/lib/
2014-01-08 13:49:46 +00:00
XALAN_LIB = xalan-c
2014-01-14 19:58:27 +00:00
XALAN_INC_DIR = /usr/include/xalanc/
2014-01-08 13:49:46 +00:00
XERCES_LIB_DIR = /usr/lib/
XERCES_LIB = xerces-c
XERCES_INC_DIR = /usr/include/xercesc/
2014-01-14 19:58:27 +00:00
endif
2014-01-17 16:51:06 +00:00
2014-01-15 00:52:58 +00:00
ifeq ($(LOCATION),OSX_10_8)
XALAN_LIB_DIR = /opt/local/lib/
XALAN_LIB = xalan-c
XALAN_INC_DIR = /opt/local/include/xalanc/
XERCES_LIB_DIR = /opt/local/lib/
XERCES_LIB = xerces-c
XERCES_INC_DIR = /opt/local/include/xercesc/
endif
2014-01-15 16:44:02 +00:00
SLIBS= -L/usr/lib $(BOSTLIB) $(LOG4LIB) $(ARTKLIB) -l boost_system -l boost_thread -l log4cpp -l ACTK1_0
DLIBS= -L/usr/lib $(BOSTLIB) $(LOG4LIB) $(ARTKLIB) -l boost_system -l boost_thread -l log4cpp
SINCL= -I include -I /usr/include/log4cpp $(BOSINCL)
CFLAGS= -DCURRENT_DEBUG=1000 -ggdb3 -DARTKENABLED=$(ARTKENABLED)
2014-01-11 19:34:15 +00:00
#
# ---------- Should not need to change below
#
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 \
2014-01-08 05:00:04 +00:00
build/mdHost.o build/mdState.o build/mdAusReg.o
2014-01-07 17:59:27 +00:00
2014-01-15 16:44:02 +00:00
MDOBJS= build/md.o build/mdLogger.o build/masterDaemonConfig.o build/masterDaemon.o \
build/mdHost.o build/mdState.o
2014-01-07 17:59:27 +00:00
2014-01-14 19:58:27 +00:00
2014-01-09 02:50:51 +00:00
ARTKDEPS = -L$(ARTK_LIB_DIR) -lACTK1_0 \
2014-01-07 17:59:27 +00:00
-L$(XALAN_LIB_DIR) -lxalan-c -lxalanMsg\
-L$(XERCES_LIB_DIR) -lxerces-c \
-lssl \
-lrt
2014-01-03 05:52:15 +00:00
# --- targets
#
2014-01-16 15:35:39 +00:00
all: cliever md
2014-01-03 05:52:15 +00:00
2014-01-11 19:34:15 +00:00
cliever: build/$(CLIENT)-cliever
2014-01-16 15:35:39 +00:00
md: build/ausreg-md
2014-01-03 05:52:15 +00:00
.c.o:
$(Cc) -c $(CLFLAGS) -o $<
2014-01-03 07:51:51 +00:00
build/mdLogger.o: server/mdLogger.cpp include/mdLogger.h
2014-01-08 05:00:04 +00:00
$(CC) $(CFLAGS) server/mdLogger.cpp -c -o build/mdLogger.o $(SINCL) $(ARTKINCL)
2014-01-03 07:51:51 +00:00
2014-01-03 07:32:44 +00:00
build/cliever.o: server/cliever-md.cpp include/*.h
2014-01-08 05:00:04 +00:00
$(CC) $(CFLAGS) server/cliever-md.cpp -c -o build/cliever.o $(SINCL) $(ARTKINCL)
2014-01-15 16:44:02 +00:00
build/md.o: server/cliever-md.cpp include/*.h
$(CC) $(CFLAGS) server/cliever-md.cpp -c -o build/md.o $(SINCL)
2014-01-03 05:52:15 +00:00
build/masterDaemonConfig.o: server/masterDaemonConfig.cpp include/*.h
2014-01-08 05:00:04 +00:00
$(CC) $(CFLAGS) server/masterDaemonConfig.cpp -c -o build/masterDaemonConfig.o $(SINCL) $(ARTKINCL)
build/mdHost.o: server/mdHost.cpp include/*.h
2014-01-08 05:00:04 +00:00
$(CC) $(CFLAGS) server/mdHost.cpp -c -o build/mdHost.o $(SINCL) $(ARTKINCL)
build/mdState.o: server/mdState.cpp include/*.h
2014-01-08 05:00:04 +00:00
$(CC) $(CFLAGS) server/mdState.cpp -c -o build/mdState.o $(SINCL) $(ARTKINCL)
build/masterDaemon.o: server/masterDaemon.cpp include/*.h
2014-01-08 05:00:04 +00:00
$(CC) $(CFLAGS) server/masterDaemon.cpp -c -o build/masterDaemon.o $(SINCL) $(ARTKINCL)
build/mdAusReg.o: server/mdAusReg.cpp include/*.h
$(CC) $(CFLAGS) server/mdAusReg.cpp -c -o build/mdAusReg.o $(SINCL) $(ARTKINCL)
2014-01-15 16:44:02 +00:00
build/ausreg-md: $(MDOBJS)
$(CC) $(CFLAGS) -o build/ausreg-md $(SINCL) $(LIBS) $(MDOBJS) $(DLIBS)
build/drde-cliever: $(ACOBJS)
2014-01-07 17:59:27 +00:00
$(CC) $(CFLAGS) -o build/drde-cliever $(SINCL) $(LIBS) $(ACOBJS) $(SLIBS) $(ARTKDEPS)
2014-01-03 05:52:15 +00:00
doxygen/index.html: etc/doxygen.config
doxygen etc/doxygen.config
2014-01-11 19:34:15 +00:00
#distclean:
# clrbak
# rm -rf build
# rm -rf doxygen
# mkdir doxygen
# mkdir build
# touch etc/doxygen.config
2014-01-03 05:52:15 +00:00
clean:
clrbak
find ./build -name "*.o" -print | perl -ne "print;chop;unlink"
find ./build -name "*.rpo" -print | perl -ne "print;chop;unlink"
2014-01-11 19:34:15 +00:00
rm build/$(CLIENT)-cliever
2014-01-15 16:44:02 +00:00
rm build/ausreg-md
2014-01-03 05:52:15 +00:00