blob: 3251293d2538609a0fec9c6457b490ba30e8cdb9 (
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
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 = -pedantic -Wall -Werror ${INCS} ${CURLINC} ${XMLINC} -DVERSION=\"${VERSION}\"
CFLAGS = -std=c99 -Wall -Werror ${INCS} ${CURLINC} ${XMLINC} -DVERSION=\"${VERSION}\"
LDFLAGS = ${LIBS} ${CURLLIB} ${XMLLIB}
# compiler and linker
CC = cc
|