summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..3cfc393
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,21 @@
+# See COPYING file for copyright, license and warranty details.
+
+VERSION = 1.4
+
+# paths
+PREFIX = /usr/local
+MANPREFIX = ${PREFIX}/share/man
+
+# includes and libs
+SDLINC = $(shell pkg-config --cflags sdl)
+SDLLIB = $(shell pkg-config --libs sdl)
+
+INCS = -I. -I/usr/include ${SDLINC}
+LIBS = -L/usr/lib -lc ${SDLLIB}
+
+# flags
+CFLAGS = -std=gnu99 -Wall -Werror ${INCS} -DVERSION=\"${VERSION}\"
+LDFLAGS = ${LIBS}
+
+# compiler and linker
+CC = cc