aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 6686b86..43fa678 100644
--- a/Makefile
+++ b/Makefile
@@ -5,11 +5,12 @@ VERSION = post-2.0.2
5PREFIX = /usr/local 5PREFIX = /usr/local
6MANPREFIX = ${PREFIX}/share/man 6MANPREFIX = ${PREFIX}/share/man
7 7
8CPPFLAGS = -DVERSION=\"${VERSION}\" 8CPPFLAGS = -DVERSION=\"${VERSION}\"
9CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ 9CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \
10 -Wno-unused-parameter -O3 ${CPPFLAGS} 10 -Wno-unused-parameter -O3 ${CPPFLAGS}
11DBGFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ 11DBGFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \
12 -Wno-unused-parameter -g ${CPPFLAGS} 12 -Wno-unused-parameter -g ${CPPFLAGS}
13TESTFLAGS = ${DBGFLAGS} -DTEST
13 14
14CC = cc 15CC = cc
15 16
@@ -19,6 +20,9 @@ all: nissy
19nissy: clean 20nissy: clean
20 ${CC} ${CFLAGS} -o nissy src/*.c 21 ${CC} ${CFLAGS} -o nissy src/*.c
21 22
23test:
24 ${CC} ${TESTFLAGS} -o test src/*.c tests/*.c
25
22nissy.exe: 26nissy.exe:
23 x86_64-w64-mingw32-gcc ${CFLAGS} -static -o nissy.exe src/*.c 27 x86_64-w64-mingw32-gcc ${CFLAGS} -static -o nissy.exe src/*.c
24 28
@@ -63,5 +67,5 @@ uninstall:
63 rm -rf ${DESTDIR}${PREFIX}/bin/nissy ${DESTDIR}${MANPREFIX}/man1/nissy.1 67 rm -rf ${DESTDIR}${PREFIX}/bin/nissy ${DESTDIR}${MANPREFIX}/man1/nissy.1
64 for s in ${SCRIPTS}; do rm -rf ${DESTDIR}${PREFIX}/bin/$$s; done 68 for s in ${SCRIPTS}; do rm -rf ${DESTDIR}${PREFIX}/bin/$$s; done
65 69
66.PHONY: all debug clean dist install uninstall upload 70.PHONY: all debug clean dist install test uninstall upload
67 71

Generated with cgit - Back to sebastiano.tronto.net