mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-25 14:35:54 +00:00
77aab08c36
makefile: -W -Wall
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
CXX = g++
|
|
CXXFLAGS = -O3 -W -Wall
|
|
BOOST_INCLUDES = /opt/boost/include/boost-1_35
|
|
BOOST_LIBS = /opt/boost/lib
|
|
BOOST_TAG = -gcc34-mt
|
|
ICU_INCLUDES = /opt/icu/include
|
|
ICU_LIBS = /opt/icu/lib
|
|
|
|
CPPFLAGS = -I$(BOOST_INCLUDES) -I$(ICU_INCLUDES)
|
|
LDFLAGS = -L$(BOOST_LIBS) -L$(ICU_LIBS) -R$(ICU_LIBS) -R$(BOOST_LIBS)
|
|
|
|
LIBS = -lboost_regex$(BOOST_TAG) -licuuc -licui18n -licudata -licui18n
|
|
|
|
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)
|
|
|
|
.cpp.o:
|
|
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
|
|
|
clean:
|
|
rm -f *.o $(progs)
|
|
|
|
clean-final:
|
|
rm -f $(progs)
|
|
|
|
.SUFFIXES: .cpp .o
|