mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
00af443b8e
With this, I really don't miss anything from automake.
24 lines
518 B
Makefile
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
|