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-11-23 20:53:46 +01:00
|
|
|
SAXDOM_SRCS = main.cpp test_Attribute.cpp test_Document.cpp test_DocumentFragment.cpp test_DocumentType.cpp test_DOMImplementation.cpp test_Element.cpp test_ProcessingInstruction.cpp test_Siblings.cpp test_SAX.cpp
|
2002-06-21 13:16:28 +02:00
|
|
|
SAXDOM_HDRS = $(patsubst %.cpp,%.h,$(SAXDOM_SRCS))
|
|
|
|
SAXDOM_OBJS = $(patsubst %.cpp,%.o,$(SAXDOM_SRCS))
|
|
|
|
|
|
|
|
CPPUNITFW_FILES = TestCase.cpp TestFailure.cpp TestResult.cpp TestSuite.cpp
|
|
|
|
CPPUNITFW_SRCS = $(patsubst Test%,CppUnit/framework/Test%,$(CPPUNITFW_FILES))
|
|
|
|
CPPUNITFW_OBJS = $(patsubst %.cpp,%.o,$(CPPUNITFW_SRCS))
|
|
|
|
|
|
|
|
CPPUNITUI_FILES = TextTestResult.cpp
|
|
|
|
CPPUNITUI_SRCS = $(patsubst Text%,CppUnit/textui/Text%,$(CPPUNITUI_FILES))
|
|
|
|
CPPUNITUI_OBJS = $(patsubst %.cpp,%.o,$(CPPUNITUI_SRCS))
|
|
|
|
|
2003-09-08 18:03:57 +02:00
|
|
|
DOMWRITER_SRCS = DOMWriter.cpp
|
|
|
|
DOMWRITER_HDRS = $(patsubst %.c,%.h,$(patsubst %.cpp,%.h,$(DOMWRITER_SRCS)))
|
|
|
|
DOMWRITER_OBJS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(DOMWRITER_SRCS)))
|
|
|
|
|
2003-09-10 10:48:31 +02:00
|
|
|
######################################
|
2002-06-21 13:16:28 +02:00
|
|
|
# High level rules
|
2003-09-08 18:03:57 +02:00
|
|
|
all : sax2dom_test domwriter
|
2002-11-23 20:53:46 +01:00
|
|
|
|
|
|
|
sax2dom_test : $(SAXDOM_OBJS) $(CPPUNITFW_OBJS) $(CPPUNITUI_OBJS)
|
2003-09-10 15:34:10 +02:00
|
|
|
$(LD) $(LDFLAGS) -o $@ $(SAXDOM_OBJS) $(CPPUNITFW_OBJS) $(CPPUNITUI_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) $(DYNAMIC_LIBS)
|
|
|
|
$(COPY) sax2dom_test$(EXESUFFIX) ../../bin
|
2002-06-21 13:16:28 +02:00
|
|
|
|
2003-09-08 18:03:57 +02:00
|
|
|
domwriter : $(DOMWRITER_OBJS)
|
2003-09-10 15:34:10 +02:00
|
|
|
$(LD) $(LDFLAGS) -o $@ $(DOMWRITER_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) $(DYNAMIC_LIBS)
|
|
|
|
$(COPY) domwriter$(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) $(CPPUNITUI_OBJS) \
|
|
|
|
$(CPPUNITFW_OBJS) \
|
|
|
|
$(SAXDOM_OBJS) \
|
|
|
|
sax2dom_test$(EXESUFFIX) \
|
|
|
|
../../bin/sax2dom_test$(EXESUFFIX) \
|
|
|
|
$(DOMWRITER_OBJS) \
|
|
|
|
domwriter$(EXESUFFIX) \
|
|
|
|
../../bin/domwriter
|
2002-06-21 13:16:28 +02:00
|
|
|
|
|
|
|
# End of File
|