summaryrefslogtreecommitdiff
path: root/config.mk
blob: 72fe97f1eeb4dfacb484db7bebd6fd23e27b2538 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# See COPYING file for copyright, license and warranty details.

VERSION = 0.2

# paths
#PREFIX = /usr/local
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man

# includes and libs
INCS = -I. -I/usr/include
LIBS = -L/usr/lib -lc

CURLINC = $(shell pkg-config --cflags libcurl)
CURLLIB = $(shell pkg-config --libs libcurl)
XMLINC = $(shell pkg-config --cflags libxml-2.0)
XMLLIB = $(shell pkg-config --libs libxml-2.0)

# flags
CFLAGS = -std=c99 -Wall -Werror ${INCS} ${CURLINC} ${XMLINC} -DVERSION=\"${VERSION}\"
LDFLAGS = ${LIBS} ${CURLLIB} ${XMLLIB}

# compiler and linker
CC = cc