File: Makefile

package info (click to toggle)
notmuch-addrlookup 9-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 128 kB
  • sloc: ansic: 298; makefile: 40; python: 5
file content (25 lines) | stat: -rw-r--r-- 472 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
#
# 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

notmuch-addrlookup: notmuch-addrlookup.o

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

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

.PHONY: print-cflags