mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-01 06:20:38 +01:00
20191d188d
added Makefile.common for CPPUNIT* definitions (and future maintenance) added include Makefile.common in Makefile.header* cleaned a couple test Makefiles; everything now compiles under linux gcc4.0.2
38 lines
999 B
Makefile
38 lines
999 B
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
|
|
XPATH_TESTS = arithmetic_test.hpp axis_enumerator_test.hpp execute_test.hpp logical_test.hpp node_test_test.hpp parse_test.hpp relational_test.hpp step_test.hpp value_test.hpp
|
|
XPATH_OBJS = $(patsubst %.cpp,%.o,$(XPATH_SRCS))
|
|
|
|
######################################
|
|
# High level rules
|
|
all : xpath_test
|
|
|
|
xpath_test : $(XPATH_OBJS) $(CPPUNIT_OBJS) $(XPATH_TESTS)
|
|
$(LD) $(LDFLAGS) -o $@ $(XPATH_OBJS) $(CPPUNIT_OBJS) $(LIBS_DIRS) $(STATIC_LIBS) $(DYNAMIC_LIBS)
|
|
$(COPY) xpath_test$(EXESUFFIX) ../../bin
|
|
|
|
######################
|
|
# Compile rules
|
|
####
|
|
-include ../../Makefile.rules
|
|
|
|
######################
|
|
# Cleaning up
|
|
clean :
|
|
$(REMOVE) $(CPPUNIT_OBJS) \
|
|
$(XPATH_OBJS) \
|
|
xpath_test$(EXESUFFIX) \
|
|
../../bin/xpath_test$(EXESUFFIX)
|
|
|
|
|