mirror of
https://github.com/jezhiggins/arabica
synced 2024-12-28 22:23:21 +01:00
59 lines
1.9 KiB
Makefile
59 lines
1.9 KiB
Makefile
|
|
-include ../../Makefile.header
|
|
|
|
######################################
|
|
# ADDITIONAL BUILD FLAGS
|
|
INCS_DIRS += -I../..
|
|
LIBS_DIRS += -L../../bin
|
|
|
|
STATIC_LIBS +=
|
|
DYNAMIC_LIBS += -lArabica
|
|
|
|
######################################
|
|
# SOURCE FILES
|
|
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
|
|
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))
|
|
|
|
DOMWRITER_SRCS = DOMWriter.cpp
|
|
DOMWRITER_HDRS = $(patsubst %.c,%.h,$(patsubst %.cpp,%.h,$(DOMWRITER_SRCS)))
|
|
DOMWRITER_OBJS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(DOMWRITER_SRCS)))
|
|
|
|
######################################
|
|
# High level rules
|
|
all : sax2dom_test domwriter
|
|
|
|
sax2dom_test : $(SAXDOM_OBJS) $(CPPUNITFW_OBJS) $(CPPUNITUI_OBJS)
|
|
$(LD) $(LDFLAGS) -o $@ $(SAXDOM_OBJS) $(CPPUNITFW_OBJS) $(CPPUNITUI_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) $(DYNAMIC_LIBS)
|
|
$(COPY) sax2dom_test$(EXESUFFIX) ../../bin
|
|
|
|
domwriter : $(DOMWRITER_OBJS)
|
|
$(LD) $(LDFLAGS) -o $@ $(DOMWRITER_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) $(DYNAMIC_LIBS)
|
|
$(COPY) domwriter$(EXESUFFIX) ../../bin
|
|
|
|
######################
|
|
# Compile rules
|
|
####
|
|
-include ../../Makefile.rules
|
|
|
|
######################
|
|
# Cleaning up
|
|
clean :
|
|
$(REMOVE) $(CPPUNITUI_OBJS) \
|
|
$(CPPUNITFW_OBJS) \
|
|
$(SAXDOM_OBJS) \
|
|
sax2dom_test$(EXESUFFIX) \
|
|
../../bin/sax2dom_test$(EXESUFFIX) \
|
|
$(DOMWRITER_OBJS) \
|
|
domwriter$(EXESUFFIX) \
|
|
../../bin/domwriter
|
|
|
|
# End of File
|