streecmp/Makefile

28 lines
378 B
Makefile
Raw Normal View History

2024-08-25 12:04:27 +00:00
CC=gcc
CFLAGS=-g3
LIBFLAGS=-c
CFILES=streecmp.c
TFILES=test.c
LEAKSFILE=LEAKS
2024-08-25 12:04:27 +00:00
OUTPUT=streecmp
TOUTPUT=test
all:
$(CC) $(LIBFLAGS) $(CFLAGS) $(CFILES) -o $(OUTPUT)
make test
test:
$(CC) $(CFLAGS) $(CFILES) $(TFILES) -o $(TOUTPUT)
run:
./$(OUTPUT)
2024-08-27 16:59:30 +00:00
runtest:
2024-08-25 12:04:27 +00:00
./$(TOUTPUT)
memcheck:
valgrind ./$(TOUTPUT) 2>&1 | tee $(LEAKSFILE)
2024-08-25 12:04:27 +00:00
clean:
rm -rf $(OUTPUT) $(TOUTPUT)