This commit is contained in:
Ren RenJuan 2014-01-03 07:32:44 +00:00
parent c2c4296a20
commit fa576a3e11
1 changed files with 11 additions and 23 deletions

View File

@ -1,46 +1,34 @@
LOCATION=authoring LOCATION=authoring
# #
# LOCATION just reflects accidents of different host # Add other locations as needed.
# setups, it could be made consistent acroos different
# dev envs if any.
#
#
# Boost, the AusReg client toolkit and the latter's dependencies
# are initially all that's required.
# #
CC=g++ CC=g++
Cc=gcc Cc=gcc
#ifeq ($(LOCATION),authoring) #ifeq ($(LOCATION),authoring)
BOSTLIB=-L/usr/local/lib/boost BOSTLIB=-L/usr/lib/boost
BOSINCL=-L/usr/local/include/boost BOSINCL=-L/usr/include/boost
ARTKLIB=
ARTKINCL=
#endif #endif
SLIBS= -L/usr/local/lib $(BOSTLIB) $(LOG4LIB) -l boost_system -l boost_thread SLIBS= -L/usr/lib $(BOSTLIB) $(LOG4LIB) -l boost_system -l boost_thread
ARTKFLAGS=-shared -fPIC -Wl,-soname,libAusRegEPPTK.so ARTKFLAGS=-shared -fPIC -Wl,-soname,libAusRegEPPTK.so
ifeq ($(LOCATION),authoring) ifeq ($(LOCATION),authoring)
SINCL= -I src/include -I /usr/local/include/log4cpp $(BOSINCL) SINCL= -I include -I /usr/include/log4cpp $(BOSINCL)
CFLAGS= -DCURRENT_DEBUG=1000 CFLAGS= -DCURRENT_DEBUG=1000
CINCL= -I src/include -I /usr/local/include/log4cpp
endif endif
CLIBS= -L$(USRLIB) CLIBS= -L$(USRLIB)
CLFLAGS= -Wall -Wundef -Wpointer-arith -Wshadow \ CLFLAGS= -Wall -Wundef -Wpointer-arith -Wshadow \
-Wcast-align -Winline -Wmissing-declarations -Wredundant-decls \ -Wcast-align -Winline -Wmissing-declarations -Wredundant-decls \
-Wmissing-prototypes -Wnested-externs \ -Wmissing-prototypes -Wnested-externs \
-Wstrict-prototypes -Waggregate-return -Wno-implicit -Wstrict-prototypes -Waggregate-return -Wno-implicit
# --- targets # --- targets
# Because of the dependency on introspection of the
# current XMLRPC API, all doesn't include md_client.
#
# If MD is running do make cleanclient;make client;make all
# to do an actual complete rebuild of the entire unix system.
# #
ifeq ($(LOCATION),authoring) ifeq ($(LOCATION),authoring)
@ -52,11 +40,11 @@ cliever: build/drde-cliever
.c.o: .c.o:
$(Cc) -c $(CLFLAGS) -o $< $(Cc) -c $(CLFLAGS) -o $<
build/cliever.o: server/cliever.cpp include/*.h build/cliever.o: server/cliever-md.cpp include/*.h
$(CC) $(CFLAGS) server/cliever.cpp -c -o build/cliever.o $(SINCL) $(CC) $(CFLAGS) server/cliever-md.cpp -c -o build/cliever.o $(SINCL)
bin/drde-cliever: build/drde-cliever.o build/clieverLogger.o build/drde-cliever: build/cliever.o build/mdLogger.o
$(CC) $(CFLAGS) -o bin/md $(SINCL) $(LIBS) build/drde-cliever.o build/clieverLogger.o $(SLIBS) $(CC) $(CFLAGS) -o build/cliever $(SINCL) $(LIBS) build/mdLogger.o $(SLIBS)
doxygen/index.html: etc/doxygen.config doxygen/index.html: etc/doxygen.config
doxygen etc/doxygen.config doxygen etc/doxygen.config