From e91ec0d87aa31cb465fe8cf934d405ad56342eba Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 19 May 2010 17:15:41 +0100 Subject: Switched to simpler build system, and fixed bugs Now there's a proper build system in place, which is actually simple enough to understand. I also fixed plenty of warnings about the code (reminding me how badly I knew C when I wrote this). Hinduism today aren't indexing their new issues using the index file I was sourcing any more, so I don't expect to fix any more bugs or improve this much. --- config.mk | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 config.mk (limited to 'config.mk') 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 -- cgit v1.2.3