From 0571557ad1a943739806046a24fdaf1e62b32886 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 1 Feb 2023 18:15:51 +0100 Subject: Enabled make test and test.sh --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 46234d5..e187a56 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,6 @@ DBGFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \ CC = cc - all: nissy nissy: clean @@ -25,6 +24,9 @@ nissy.exe: debug: ${CC} ${DBGFLAGS} -o nissy src/*.c +test: + ${CC} ${CFLAGS} -DTEST -o tests/nissy_test src/*.c tests/*.c + clean: rm -rf nissy nissy*.exe nissy*.tar.gz doc/nissy.html doc/nissy.pdf @@ -63,5 +65,4 @@ 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 test uninstall upload - +.PHONY: all debug test clean dist install uninstall upload -- cgit v1.3