streecmp/Makefile

28 lines
379 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)
run_test:
./$(TOUTPUT)
memcheck:
valgrind ./$(TOUTPUT) 2>&1 | tee $(LEAKSFILE)
2024-08-25 12:04:27 +00:00
clean:
rm -rf $(OUTPUT) $(TOUTPUT)