This commit is contained in:
Ren RenJuan 2014-01-08 20:22:43 +00:00
parent f9b7270445
commit 445472e185
2 changed files with 13 additions and 18 deletions

View File

@ -1,5 +1,6 @@
LOCATION=authoring LOCATION=authoring
# #
#
# Add other locations and move target differences into the macros as needed # Add other locations and move target differences into the macros as needed
# #
CC=g++ CC=g++
@ -12,34 +13,22 @@ Cc=gcc
ifeq ($(LOCATION),authoring) ifeq ($(LOCATION),authoring)
ARTKLIB=-L/home/jdaugherty/clients/reg.de/git/AusRegEPPTK/lib ARTKLIB=-L/home/jdaugherty/clients/reg.de/git/AusRegEPPTK/lib
ARTKINCL=-I/home/jdaugherty/clients/reg.de/git/AusRegEPPTK/common ARTKINCL=-I/home/jdaugherty/clients/reg.de/git/AusRegEPPTK/common
#ARTKLIB=-L/home/jdaugherty/clients/reg.de/git/ACTK1_3_2/lib else
#ARTKINCL=-I/home/jdaugherty/clients/reg.de/git/ACTK1_3_2/common ARTKLIB=-L/home/jdaugherty/dnseppus/AusRegEPPTK/lib
endif ARTKINCL=-I/home/jdaugherty/dnseppus/AusRegEPPTK/common
ifeq ($(LOCATION),testing)
ARTKLIB=-L/home/drde/git/AusRegEPPTK/lib
ARTKINCL=I/home/drde/git/AusRegEPPTK/common
endif endif
SLIBS= -L/usr/lib $(BOSTLIB) $(LOG4LIB) $(ARTKLIB) -l boost_system -l boost_thread -l log4cpp -l AusRegEPPTK SLIBS= -L/usr/lib $(BOSTLIB) $(LOG4LIB) $(ARTKLIB) -l boost_system -l boost_thread -l log4cpp -l AusRegEPPTK
ifeq ($(LOCATION),authoring)
SINCL= -I include -I /usr/include/log4cpp $(BOSINCL) SINCL= -I include -I /usr/include/log4cpp $(BOSINCL)
CFLAGS= -DCURRENT_DEBUG=1000 -ggdb3 CFLAGS= -DCURRENT_DEBUG=1000 -ggdb3
endif
ifeq ($(LOCATION),production)
SINCL= -I include -I /usr/include/log4cpp $(BOSINCL)
CFLAGS= -DPRODUCTION=1
endif
ifeq ($(LOCATION),authoring) ifeq ($(LOCATION),authoring)
XALAN_LIB_DIR = /usr/lib/x86_64-linux-gnu/ XALAN_LIB_DIR = /usr/lib/x86_64-linux-gnu/
endif else
ifeq ($(LOCATION),production)
XALAN_LIB_DIR = /usr/lib/ XALAN_LIB_DIR = /usr/lib/
endif endif
XALAN_LIB = xalan-c XALAN_LIB = xalan-c
XALAN_INC_DIR = /usr/include/xalanc XALAN_INC_DIR = /usr/include/xalanc
XERCES_LIB_DIR = /usr/lib/ XERCES_LIB_DIR = /usr/lib/

View File

@ -1,7 +1,8 @@
################################################## ##################################################
# Makefile for building lib and main test routine# # Makefile for building lib and main test routine#
################################################## ##################################################
# operating system LOCATION=authoring
SYSTEM = $(shell uname -s) SYSTEM = $(shell uname -s)
CXX = g++ CXX = g++
@ -14,7 +15,12 @@ CXXFLAGS = $(PRODORDEV) -Wall -Wpointer-arith -Wcast-qual -D_REENTRANT -fPIC
CPPFLAGS = -fPIC -D_GNU_SOURCE CPPFLAGS = -fPIC -D_GNU_SOURCE
CXXFLAGS += -D_GNU_SOURCE -O0 CXXFLAGS += -D_GNU_SOURCE -O0
ifeq ($(LOCATION),authoring)
XALAN_LIB_DIR = /usr/lib/x86_64-linux-gnu/ XALAN_LIB_DIR = /usr/lib/x86_64-linux-gnu/
endif
ifeq ($(LOCATION),production)
XALAN_LIB_DIR = /usr/lib/
endif
XALAN_LIB = xalan-c XALAN_LIB = xalan-c
XALAN_INC_DIR = /usr/include/xalanc XALAN_INC_DIR = /usr/include/xalanc
XERCES_LIB_DIR = /usr/lib/ XERCES_LIB_DIR = /usr/lib/