arabica/SAX/Makefile

86 lines
2.1 KiB
Makefile
Raw Normal View History

2003-09-10 01:08:15 +02:00
####################################
# 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$
####################################
2003-09-10 10:48:31 +02:00
-include ../Makefile.header
2002-06-21 13:16:28 +02:00
2003-09-10 01:08:15 +02:00
######################################
2003-09-10 10:48:31 +02:00
# ADDITIONAL BUILD FLAGS
2003-09-10 15:34:10 +02:00
CXXFLAGS += -I..
2003-12-07 16:13:36 +01:00
LDFLAGS += $(LINK_SHARED)
2002-06-21 13:16:28 +02:00
2003-09-10 10:48:31 +02:00
INC_DIRS +=
LIBS_DIRS +=
2002-06-21 13:16:28 +02:00
2003-09-10 10:48:31 +02:00
STATIC_LIBS +=
DYNAMIC_LIBS +=
2002-06-21 13:16:28 +02:00
2003-09-10 01:08:15 +02:00
######################################
# SOURCE FILES
2003-04-03 15:18:27 +02:00
SRCS = saxlib.cpp \
helpers/InputSourceResolver.cpp \
../Utils/rot13codecvt.cpp \
../Utils/utf8ucs2codecvt.cpp \
../Utils/impl/ucs2_utf8.cpp \
../Utils/utf16beucs2codecvt.cpp \
../Utils/utf16leucs2codecvt.cpp \
../Utils/impl/ucs2_utf16.cpp \
../Utils/iso88591utf8codecvt.cpp \
../Utils/utf8iso88591codecvt.cpp \
../Utils/impl/iso88591_utf8.cpp \
../Utils/utf16utf8codecvt.cpp \
../Utils/ucs2utf8codecvt.cpp \
../Utils/base64codecvt.cpp \
2005-08-21 14:48:00 +02:00
../XML/XMLCharacterClasses.cpp
2002-06-21 13:16:28 +02:00
HDRS = $(patsubst %.c,%.h,$(patsubst %.cpp,%.h,$(SRCS)))
OBJS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(SRCS)))
##########################
2002-06-21 13:16:28 +02:00
# High level rules
2005-08-23 21:55:06 +02:00
all : libArabica$(LIBSUFFIX)
2002-06-21 13:16:28 +02:00
2005-08-23 21:55:06 +02:00
libArabica$(LIBSUFFIX) : $(OBJS)
2003-09-10 15:34:10 +02:00
$(LD) $(LDFLAGS) -o libArabica$(LIBSUFFIX) $(OBJS) $(LIBS_DIRS) $(STATIC_LIBS) $(DYNAMIC_LIBS)
$(COPY) libArabica$(LIBSUFFIX) ../bin
2002-06-21 13:16:28 +02:00
######################
2002-06-21 13:16:28 +02:00
# Compile rules
####
# the .S files depends on symbols defined in this Makefile, hence
# this slightly wacky rule
saxlib.cpp : ParserConfig.h ArabicaConfig.h saxlib.S
2003-09-09 23:40:23 +02:00
$(CPP) $(PARSER_CONFIG) -o saxlib.cpp saxlib.S
ParserConfig.h : Makefile ../Makefile.header ParserConfig.S
$(CPP) $(PARSER_CONFIG) -o ParserConfig.h ParserConfig.S
ArabicaConfig.h : Makefile ../Makefile.header ArabicaConfig.S
$(CPP) $(PARSER_CONFIG) -o ArabicaConfig.h ArabicaConfig.S
2002-06-21 13:16:28 +02:00
%.cpp : ArabicaConfig.h ParserConfig.h
2002-06-21 13:16:28 +02:00
2003-09-10 15:34:10 +02:00
Makefile :
-include ../Makefile.rules
#############################################
2002-06-21 13:16:28 +02:00
# Cleaning up
clean :
2005-08-05 23:02:24 +02:00
$(REMOVE) wrappers/*.o $(OBJS) libArabica* ../bin/libArabica* saxlib.cpp ParserConfig.h ArabicaConfig.h
2002-06-21 13:16:28 +02:00
# End of File
2003-09-10 01:08:15 +02:00