From ec87f96ffec31c430b6058663ae831c1b3a29ff9 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 13 Apr 2024 17:15:42 +0200 Subject: Clean up --- Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 448c625..5fc8232 100644 --- a/Makefile +++ b/Makefile @@ -3,24 +3,27 @@ DBGFLAGS = -std=c99 -pedantic -Wall -Wextra -g3 -DDEBUG CC = cc -all: cube.o debugcube.o +all: cleancube cube.o -cube.s: clean - ${CC} ${CFLAGS} -c -S -o cube.s cube.c +cleancube: + rm -rf cube.o -cube.o: clean +cube.o: ${CC} ${CFLAGS} -c -o cube.o cube.c -debugcube.o: clean +cleandebug: + rm -rf debugcube.o + +debugcube.o: ${CC} ${DBGFLAGS} -c -o debugcube.o cube.c clean: rm -rf *.o -test: debugcube.o +test: cleandebug debugcube.o CUBETYPE=${CUBETYPE} TEST=${TEST} ./test/test.sh benchmark: cube.o CUBETYPE=${CUBETYPE} ./benchmark/bench.sh -.PHONY: all clean test benchmark +.PHONY: all clean cleancube cleandebug test benchmark -- cgit v1.3