blob: e9a2ac6e85536047c258ffb348ca74eed43b7ffa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# See COPYING file for copyright, license and warranty details.
VERSION = 0.3
# paths
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
|