2008-08-07 14:28:45 +00:00
|
|
|
include makefile.config
|
|
|
|
|
2008-08-07 13:57:40 +00:00
|
|
|
CXX = g++
|
2008-08-07 14:14:14 +00:00
|
|
|
CXXFLAGS = -O3 -W -Wall
|
2008-08-04 14:27:48 +00:00
|
|
|
|
2008-08-07 14:28:45 +00:00
|
|
|
CPPFLAGS = $(EXTRA_CPPFLAGS)
|
|
|
|
LDFLAGS = $(EXTRA_LDFLAGS)
|
2008-07-29 11:03:26 +00:00
|
|
|
|
2008-08-07 13:57:40 +00:00
|
|
|
LIBS = -lboost_regex$(BOOST_TAG) -licuuc -licui18n -licudata -licui18n
|
2008-07-29 11:03:26 +00:00
|
|
|
|
2008-08-07 13:57:40 +00:00
|
|
|
af_expr_objs = afeval.o affunctions.o afparser.o aftypes.o afutils.o eval.o
|
|
|
|
af_parser_objs = afeval.o affunctions.o afparser.o aftypes.o afutils.o main.o
|
|
|
|
check_objs = afeval.o affunctions.o afparser.o aftypes.o afutils.o check.o
|
|
|
|
syntax_check_objs = afeval.o affunctions.o afparser.o aftypes.o afutils.o syntax_check.o
|
|
|
|
|
|
|
|
progs = check af_parser syntax_check af_expr
|
|
|
|
|
|
|
|
all: $(progs)
|
|
|
|
|
|
|
|
af_expr: $(af_expr_objs)
|
|
|
|
$(CXX) $(CXXFLAGS) -o $@ $(af_expr_objs) $(LDFLAGS) $(LIBS)
|
|
|
|
af_parser: $(af_parser_objs)
|
|
|
|
$(CXX) $(CXXFLAGS) -o $@ $(af_parser_objs) $(LDFLAGS) $(LIBS)
|
|
|
|
check: $(check_objs)
|
|
|
|
$(CXX) $(CXXFLAGS) -o $@ $(check_objs) $(LDFLAGS) $(LIBS)
|
|
|
|
syntax_check: $(syntax_check_objs)
|
|
|
|
$(CXX) $(CXXFLAGS) -o $@ $(syntax_check_objs) $(LDFLAGS) $(LIBS)
|
2008-07-29 11:03:26 +00:00
|
|
|
|
|
|
|
.cpp.o:
|
2008-08-07 13:57:40 +00:00
|
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
2008-07-29 11:03:26 +00:00
|
|
|
|
|
|
|
clean:
|
2008-08-07 13:57:40 +00:00
|
|
|
rm -f *.o $(progs)
|
2008-08-02 11:10:42 +00:00
|
|
|
|
|
|
|
clean-final:
|
2008-08-07 13:57:40 +00:00
|
|
|
rm -f $(progs)
|
2008-08-07 12:35:42 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .cpp .o
|