*** empty log message ***

This commit is contained in:
jez_higgins 2003-09-09 23:08:15 +00:00
parent b6e0d1a194
commit 374243b4d8

View file

@ -1,16 +1,24 @@
#///////////////////////////////////////////////////////////////////////// ####################################
#////////////////////////////////////////////// # Arabica Makefile
#
# I wrote this for GNU Make + GNU tools on Linux.
# You may have to jiggle it for your own environment.
# Platforms specific build files gratefully received
# at jez@jezuk.co.uk Thanks :)
#
# $Id$
####################################
# Utilities
REMOVE = rm -rf
LINK = ln -sf
COPY = cp -f
# For GNU make: ####################################
OS_VER := $(shell uname -s | sed -e s/\[\.\ \]/_/g) # ARABICA CONFIG
# For other make (like Sun's) you can try: # edit for your parser choice - may include more than one USE_*
# OS_VER:sh =uname -sr | sed -e s/\[\.\ \]/_/g PARSER_CONFIG = -DUSE_EXPAT -DARABICA_NO_WCHAR_T
#PARSER_CONFIG = -DUSE_EXPAT -DUSE_LIBXML2 -DUSE_XERCES -DUSE_GARDEN
####################################
# TOOLS
#####
# C++ compiler # C++ compiler
CXX = gcc CXX = gcc
# preprocessor # preprocessor
@ -20,38 +28,35 @@ LD = gcc
# archiver # archiver
AR = ar r AR = ar r
ifeq ($(OS_VER),SunOS) ###########
CXXFLAGS = -Wall -pthreads -fpic # Utilities
else REMOVE = rm -rf
CXXFLAGS += -Wall LINK = ln -sf
endif COPY = cp -f
LDFLAGS = -shared ######################################
# BUILD FLAGS
CXXFLAGS += -Wall
LDFLAGS += -shared
# Uncomment for optimisations # Uncomment for optimisations
CXXFLAGS += -O2 CXXFLAGS += -O2
LDFLAGS += -O2 LDFLAGS +=
# edit for your parser choice - may include more than one USE_*
PARSER_CONFIG = -DUSE_EXPAT -DARABICA_NO_WCHAR_T
#PARSER_CONFIG = -DUSE_EXPAT -DUSE_LIBXML2 -DUSE_XERCES -DUSE_GARDEN
# Includes and library directories # Includes and library directories
INCS_DIRS = -I.. INCS_DIRS = -I..
#INCS_DIRS = -I..
LIBS_DIRS = LIBS_DIRS =
STATIC_LIBS = STATIC_LIBS =
DYNAMIC_LIBS = -lstdc++ DYNAMIC_LIBS =
CXXFLAGS += $(INCS_DIRS) CXXFLAGS += $(INCS_DIRS)
LDFLAGS += $(LIBS_DIRS) LDFLAGS += $(LIBS_DIRS)
LDFLAGS += $(STATIC_LIBS) LDFLAGS += $(STATIC_LIBS)
LDFLAGS += $(DYNAMIC_LIBS) LDFLAGS += $(DYNAMIC_LIBS)
#///////////////////////////////////////////////////////////////////////// ######################################
#////////////////////////////////////////////// # SOURCE FILES
SRCS = saxlib.cpp \ SRCS = saxlib.cpp \
helpers/InputSourceResolver.cpp \ helpers/InputSourceResolver.cpp \
../Utils/base64codecvt.cpp \ ../Utils/base64codecvt.cpp \
@ -70,7 +75,6 @@ SRCS = saxlib.cpp \
HDRS = $(patsubst %.c,%.h,$(patsubst %.cpp,%.h,$(SRCS))) HDRS = $(patsubst %.c,%.h,$(patsubst %.cpp,%.h,$(SRCS)))
OBJS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(SRCS))) OBJS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(SRCS)))
########################## ##########################
# High level rules # High level rules
all : libArabica.so.1 libArabica.a all : libArabica.so.1 libArabica.a
@ -109,3 +113,9 @@ clean :
$(REMOVE) *.o helpers/*.o wrappers/*.o ../Utils/*.o ../Utils/impl/*.o ../XML/*.o libArabica* ../bin/libArabica* saxlib.cpp ParserConfig.h ArabicaConfig.h $(REMOVE) *.o helpers/*.o wrappers/*.o ../Utils/*.o ../Utils/impl/*.o ../XML/*.o libArabica* ../bin/libArabica* saxlib.cpp ParserConfig.h ArabicaConfig.h
# End of File # End of File