summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..3251293
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,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