diff options
author | Nick White <git@njw.me.uk> | 2010-05-19 17:15:41 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2010-05-19 17:15:41 +0100 |
commit | e91ec0d87aa31cb465fe8cf934d405ad56342eba (patch) | |
tree | 1709e437c0d8f144bec479975a777c6ae8580eba /config.mk | |
parent | 6cf58b46037cf04915fa507813ab7419db2e45ec (diff) |
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.
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 24 |
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 |