From 445364a4b495c275e2723a05e7f4be0090ba5d0a Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 9 Oct 2022 18:12:39 +0200 Subject: Finished fst, added tests. STILL NOT WORKING. --- Makefile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6686b86..43fa678 100644 --- a/Makefile +++ b/Makefile @@ -5,11 +5,12 @@ VERSION = post-2.0.2 PREFIX = /usr/local MANPREFIX = ${PREFIX}/share/man -CPPFLAGS = -DVERSION=\"${VERSION}\" -CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ - -Wno-unused-parameter -O3 ${CPPFLAGS} -DBGFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ - -Wno-unused-parameter -g ${CPPFLAGS} +CPPFLAGS = -DVERSION=\"${VERSION}\" +CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ + -Wno-unused-parameter -O3 ${CPPFLAGS} +DBGFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ + -Wno-unused-parameter -g ${CPPFLAGS} +TESTFLAGS = ${DBGFLAGS} -DTEST CC = cc @@ -19,6 +20,9 @@ all: nissy nissy: clean ${CC} ${CFLAGS} -o nissy src/*.c +test: + ${CC} ${TESTFLAGS} -o test src/*.c tests/*.c + nissy.exe: x86_64-w64-mingw32-gcc ${CFLAGS} -static -o nissy.exe src/*.c @@ -63,5 +67,5 @@ uninstall: rm -rf ${DESTDIR}${PREFIX}/bin/nissy ${DESTDIR}${MANPREFIX}/man1/nissy.1 for s in ${SCRIPTS}; do rm -rf ${DESTDIR}${PREFIX}/bin/$$s; done -.PHONY: all debug clean dist install uninstall upload +.PHONY: all debug clean dist install test uninstall upload -- cgit v1.3