arabica/examples/SAX/Makefile

70 lines
2.1 KiB
Makefile
Raw Normal View History

2002-06-21 13:16:28 +02:00
2003-09-10 10:48:31 +02:00
-include ../../Makefile.header
2002-06-21 13:16:28 +02:00
2003-09-10 10:48:31 +02:00
######################################
# ADDITIONAL BUILD FLAGS
INCS_DIRS += -I../..
LIBS_DIRS += -L../../bin
2002-06-21 13:16:28 +02:00
2003-09-10 10:48:31 +02:00
STATIC_LIBS +=
DYNAMIC_LIBS += -lArabica
2002-06-21 13:16:28 +02:00
2003-09-10 10:48:31 +02:00
######################################
# SOURCE FILES
2002-06-21 13:16:28 +02:00
PYX_SRCS = pyx.cpp
PYX_HDRS = $(patsubst %.c,%.h,$(patsubst %.cpp,%.h,$(PYX_SRCS)))
PYX_OBJS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(PYX_SRCS)))
SIMPLE_SRCS = wrapper.cpp SimpleHandler.cpp
SIMPLE_HDRS = $(patsubst %.c,%.h,$(patsubst %.cpp,%.h,$(SIMPLE_SRCS)))
SIMPLE_OBJS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(SIMPLE_SRCS)))
WRITER_SRCS = writer.cpp
WRITER_HDRS = $(patsubst %.c,%.h,$(patsubst %.cpp,%.h,$(WRITER_SRCS)))
WRITER_OBJS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(WRITER_SRCS)))
2004-09-10 23:17:36 +02:00
XMLBASE_SRCS = xmlbase.cpp
XMLBASE_HDRS = $(patsubst %.c,%.h,$(patsubst %.cpp,%.h,$(XMLBASE_SRCS)))
XMLBASE_OBJS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(XMLBASE_SRCS)))
2003-09-10 10:48:31 +02:00
######################################
2002-06-21 13:16:28 +02:00
# High level rules
2005-11-28 13:39:13 +01:00
all : pyx$(EXESUFFIX) simple_handler$(EXESUFFIX) writer$(EXESUFFIX) xmlbase$(EXESUFFIX)
2002-06-21 13:16:28 +02:00
2005-11-28 13:39:13 +01:00
pyx$(EXESUFFIX) : $(PYX_OBJS)
2003-09-10 15:34:10 +02:00
$(LD) $(LDFLAGS) -o $@ $(PYX_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) $(DYNAMIC_LIBS)
$(COPY) pyx$(EXESUFFIX) ../../bin
2002-06-21 13:16:28 +02:00
2005-11-28 13:39:13 +01:00
simple_handler$(EXESUFFIX) : $(SIMPLE_OBJS)
2003-09-10 15:34:10 +02:00
$(LD) $(LDFLAGS) -o $@ $(SIMPLE_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) $(DYNAMIC_LIBS)
$(COPY) simple_handler$(EXESUFFIX) ../../bin
2002-06-21 13:16:28 +02:00
2005-11-28 13:39:13 +01:00
writer$(EXESUFFIX) : $(WRITER_OBJS)
2003-09-10 15:34:10 +02:00
$(LD) $(LDFLAGS) -o $@ $(WRITER_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) $(DYNAMIC_LIBS)
$(COPY) writer$(EXESUFFIX) ../../bin
2002-06-21 13:16:28 +02:00
2005-11-28 13:39:13 +01:00
xmlbase$(EXESUFFIX) : $(XMLBASE_OBJS)
$(LD) $(LDFLAGS) -o $@ $(XMLBASE_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) $(DYNAMIC_LIBS)
$(COPY) xmlbase$(EXESUFFIX) ../../bin
2003-09-10 10:48:31 +02:00
######################
2002-06-21 13:16:28 +02:00
# Compile rules
2003-09-10 10:48:31 +02:00
####
2003-09-10 15:34:10 +02:00
-include ../../Makefile.rules
2002-06-21 13:16:28 +02:00
2003-09-10 10:48:31 +02:00
######################
2002-06-21 13:16:28 +02:00
# Cleaning up
clean :
2003-09-10 15:34:10 +02:00
$(REMOVE) *.o \
core \
pyx$(EXESUFFIX) \
../../bin/pyx$(EXESUFFIX) \
writer$(EXESUFFIX) \
../../bin/writer$(EXESUFFIX) \
xmlbase$(EXESUFFIX) \
../../bin/xmlbase$(EXESUFFIX) \
2003-09-10 15:34:10 +02:00
simple_handler$(EXESUFFIX) \
../../bin/simple_handler$(EXESUFFIX)
2002-06-21 13:16:28 +02:00
# End of File