arabica/examples/SAX/Makefile

60 lines
1.6 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)))
2003-09-10 10:48:31 +02:00
######################################
2002-06-21 13:16:28 +02:00
# High level rules
all : pyx simple_handler writer
2003-09-10 15:34:10 +02:00
pyx$ : $(PYX_OBJS)
$(LD) $(LDFLAGS) -o $@ $(PYX_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) $(DYNAMIC_LIBS)
$(COPY) pyx$(EXESUFFIX) ../../bin
2002-06-21 13:16:28 +02:00
simple_handler : $(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
writer : $(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
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) \
simple_handler$(EXESUFFIX) \
../../bin/simple_handler$(EXESUFFIX)
2002-06-21 13:16:28 +02:00
# End of File