diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-10-09 18:12:39 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-10-09 18:12:39 +0200 |
| commit | 445364a4b495c275e2723a05e7f4be0090ba5d0a (patch) | |
| tree | bc8b58ccef2efde356dc5f955cb7a08850d8f407 /Makefile | |
| parent | 2dce2a8a0ebd95e9e65d9d53206c4b2babc2af2f (diff) | |
| download | nissy-445364a4b495c275e2723a05e7f4be0090ba5d0a.tar.gz nissy-445364a4b495c275e2723a05e7f4be0090ba5d0a.zip | |
Finished fst, added tests. STILL NOT WORKING.
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 16 |
1 files changed, 10 insertions, 6 deletions
| @@ -5,11 +5,12 @@ VERSION = post-2.0.2 | |||
| 5 | PREFIX = /usr/local | 5 | PREFIX = /usr/local |
| 6 | MANPREFIX = ${PREFIX}/share/man | 6 | MANPREFIX = ${PREFIX}/share/man |
| 7 | 7 | ||
| 8 | CPPFLAGS = -DVERSION=\"${VERSION}\" | 8 | CPPFLAGS = -DVERSION=\"${VERSION}\" |
| 9 | CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ | 9 | CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ |
| 10 | -Wno-unused-parameter -O3 ${CPPFLAGS} | 10 | -Wno-unused-parameter -O3 ${CPPFLAGS} |
| 11 | DBGFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ | 11 | DBGFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ |
| 12 | -Wno-unused-parameter -g ${CPPFLAGS} | 12 | -Wno-unused-parameter -g ${CPPFLAGS} |
| 13 | TESTFLAGS = ${DBGFLAGS} -DTEST | ||
| 13 | 14 | ||
| 14 | CC = cc | 15 | CC = cc |
| 15 | 16 | ||
| @@ -19,6 +20,9 @@ all: nissy | |||
| 19 | nissy: clean | 20 | nissy: clean |
| 20 | ${CC} ${CFLAGS} -o nissy src/*.c | 21 | ${CC} ${CFLAGS} -o nissy src/*.c |
| 21 | 22 | ||
| 23 | test: | ||
| 24 | ${CC} ${TESTFLAGS} -o test src/*.c tests/*.c | ||
| 25 | |||
| 22 | nissy.exe: | 26 | nissy.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 | ||
