File: Makefile

package info (click to toggle)
notmuch-addrlookup 10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 120 kB
  • sloc: ansic: 361; makefile: 52
file content (29 lines) | stat: -rw-r--r-- 636 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
# Makefile
# Adrian Perez, 2014-01-06 12:23
#

PKG_CONFIG ?= pkg-config
GLIB_CFLAGS := $(shell $(PKG_CONFIG) glib-2.0 --cflags)
GLIB_LDLIBS := $(shell $(PKG_CONFIG) glib-2.0 --libs)

OPTFLAGS ?= -O2
LDLIBS  += -lnotmuch $(GLIB_LDLIBS)
CFLAGS  += -g -Wall $(OPTFLAGS) $(GLIB_CFLAGS) -std=c99

all: notmuch-addrlookup

dist:
	@ P=notmuch-addrlookup-$$(git describe --tag --exact-match | sed -e 's/^v//') ; \
	git archive --prefix="$$P/" -o "$$P.tar.gz" @ ; \
	echo "$$P.tar.gz"

notmuch-addrlookup: notmuch-addrlookup.o

clean:
	$(RM) notmuch-addrlookup notmuch-addrlookup.o

print-cflags:
	@echo "$(CFLAGS)"

.PHONY: print-cflags dist