diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1,4 +1,15 @@ -include config.mk +# expac - an alpm data dump tool +VERSION = $(shell git describe --always) + +# paths +PREFIX ?= /usr/local +MANPREFIX ?= ${PREFIX}/share/man + +# compiler flags +CC ?= gcc +CPPFLAGS += -DVERSION=\"${VERSION}\" +CFLAGS += -std=c99 -g -pedantic -Wall -Wextra -Werror ${CPPFLAGS} +LDFLAGS += -lalpm SRC = expac.c OBJ = ${SRC:.c=.o} |