mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
6a4992bc61
This is important as we're using the message ID as the unique key in our database. So previously, all messages with no message ID would be treated as the same message---not good at all.
35 lines
624 B
Makefile
35 lines
624 B
Makefile
PROGS=notmuch
|
|
|
|
MYCFLAGS=-Wall -O0 -g `pkg-config --cflags glib-2.0 talloc`
|
|
MYCXXFLAGS=$(MYCFLAGS) `xapian-config --cxxflags`
|
|
|
|
MYLDFLAGS=`pkg-config --libs glib-2.0 talloc` `xapian-config --libs`
|
|
|
|
MODULES= \
|
|
notmuch.o \
|
|
database.o \
|
|
date.o \
|
|
message.o \
|
|
message-file.o \
|
|
query.o \
|
|
sha1.o \
|
|
libsha1.o \
|
|
xutil.o
|
|
|
|
all: $(PROGS)
|
|
|
|
%.o: %.cc
|
|
$(CXX) -c $(CXXFLAGS) $(MYCXXFLAGS) $< -o $@
|
|
|
|
%.o: %.c
|
|
$(CC) -c $(CFLAGS) $(MYCFLAGS) $< -o $@
|
|
|
|
notmuch: $(MODULES)
|
|
$(CC) $(MYLDFLAGS) $^ -o $@
|
|
|
|
Makefile.dep: *.c *.cc
|
|
$(CC) -M $(CPPFLAGS) $(MYCFLAGS) $^ > $@
|
|
-include Makefile.dep
|
|
|
|
clean:
|
|
rm -f $(PROGS) *.o Makefile.dep
|