mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
fedef062ce
These were just little tests while getting comfortable with GMime and xapian. I'll likely use pieces of these as notmuch continues, but for now let's not distract anyone looking at notmuch with these. And the code will live on in the history if I need to look at it.
20 lines
417 B
Makefile
20 lines
417 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 $@
|
|
|
|
clean:
|
|
rm -f $(PROGS) *.o
|