3 WARN_FLAGS=-Wall -Wextra -Wmissing-declarations -Wwrite-strings -Wswitch-enum
5 CDEPENDS_FLAGS=`pkg-config --cflags glib-2.0 talloc`
6 CXXDEPENDS_FLAGS=`pkg-config --cflags glib-2.0 talloc` `xapian-config --cxxflags`
8 MYCFLAGS=$(WARN_FLAGS) -O0 -g $(CDEPENDS_FLAGS)
9 MYCXXFLAGS=$(WARN_FLAGS) -O0 -g $(CXXDEPENDS_FLAGS)
11 MYLDFLAGS=`pkg-config --libs glib-2.0 talloc` `xapian-config --libs`
29 $(CXX) -c $(CFLAGS) $(CXXFLAGS) $(MYCXXFLAGS) $< -o $@
32 $(CC) -c $(CFLAGS) $(MYCFLAGS) $< -o $@
35 $(CC) $(MYLDFLAGS) $^ -o $@
37 Makefile.dep: *.c *.cc
38 $(CXX) -M $(CPPFLAGS) $(CDEPENDS_FLAGS) $(CXXDEPENDS_FLAGS) $^ > $@
42 rm -f $(PROGS) *.o Makefile.dep