notmuch/Makefile
Carl Worth 00af443b8e Makefile: Add automatic dependency tracking to the Makefile.
With this, I really don't miss anything from automake.
2009-10-20 15:09:18 -07:00

24 lines
518 B
Makefile

PROGS=notmuch
MYCFLAGS=-Wall -O0 -g `pkg-config --cflags glib-2.0`
MYCXXFLAGS=$(MYCFLAGS) `xapian-config --cxxflags`
MYLDFLAGS=`pkg-config --libs glib-2.0` `xapian-config --libs`
all: $(PROGS)
%.o: %.cc
$(CXX) -c $(CXXFLAGS) $(MYCXXFLAGS) $< -o $@
%.o: %.c
$(CC) -c $(CFLAGS) $(MYCFLAGS) $< -o $@
notmuch: notmuch.o database.o date.o message.o xutil.o
$(CC) $(MYLDFLAGS) $^ -o $@
Makefile.dep: *.c *.cc
$(CC) -M $(CPPFLAGS) $(MYCFLAGS) $^ > $@
-include Makefile.dep
clean:
rm -f $(PROGS) *.o Makefile.dep