mirror of
https://github.com/jezhiggins/arabica
synced 2024-11-17 07:48:50 +01:00
49 lines
1.5 KiB
Makefile
49 lines
1.5 KiB
Makefile
-include ../../Makefile.header
|
|
|
|
######################################
|
|
# ADDITIONAL BUILD FLAGS
|
|
INCS_DIRS += -I../..
|
|
LIBS_DIRS += -L../../bin
|
|
|
|
STATIC_LIBS +=
|
|
DYNAMIC_LIBS += -lArabica
|
|
|
|
######################################
|
|
# SOURCE FILES
|
|
XPATH_SRCS = main.cpp arithmetic_test.cpp axis_enumerator_test.cpp execute_test.cpp logical_test.cpp node_test_test.cpp parse_test.cpp relational_test.cpp step_test.cpp value_test.cpp
|
|
XPATH_HDRS = $(patsubst %.cpp,%.h,$(XPATH_SRCS))
|
|
XPATH_OBJS = $(patsubst %.cpp,%.o,$(XPATH_SRCS))
|
|
|
|
CPPUNIT_DIR = ../CppUnit
|
|
|
|
CPPUNITFW_FILES = TestCase.cpp TestFailure.cpp TestResult.cpp TestSuite.cpp
|
|
CPPUNITFW_SRCS = $(patsubst Test%,$(CPPUNIT_DIR)/framework/Test%,$(CPPUNITFW_FILES))
|
|
CPPUNITFW_OBJS = $(patsubst %.cpp,%.o,$(CPPUNITFW_SRCS))
|
|
|
|
CPPUNITUI_FILES = TextTestResult.cpp
|
|
CPPUNITUI_SRCS = $(patsubst Text%,$(CPPUNIT_DIR)/textui/Text%,$(CPPUNITUI_FILES))
|
|
CPPUNITUI_OBJS = $(patsubst %.cpp,%.o,$(CPPUNITUI_SRCS))
|
|
|
|
######################################
|
|
# High level rules
|
|
all : xpath_test
|
|
|
|
xpath_test : $(XPATH_OBJS) $(CPPUNITFW_OBJS) $(CPPUNITUI_OBJS)
|
|
$(LD) $(LDFLAGS) -o $@ $(XPATH_OBJS) $(CPPUNITFW_OBJS) $(CPPUNITUI_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) $(DYNAMIC_LIBS)
|
|
$(COPY) xpath_test$(EXESUFFIX) ../../bin
|
|
|
|
######################
|
|
# Compile rules
|
|
####
|
|
-include ../../Makefile.rules
|
|
|
|
######################
|
|
# Cleaning up
|
|
clean :
|
|
$(REMOVE) $(CPPUNITUI_OBJS) \
|
|
$(CPPUNITFW_OBJS) \
|
|
$(XPATH_OBJS) \
|
|
xpath_test$(EXESUFFIX) \
|
|
../../bin/xpath_test$(EXESUFFIX)
|
|
|
|
# End of File
|