diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..df15d2e --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +TARGET=fcomp +SRC=fcomp.c +CC=gcc +CFLAGS=-D_GNU_SOURCE -std=c99 -pedantic +REL_FLAGS=-O3 +DBG_FLAGS=-Wall -g3 +make: + $(CC) -o $(TARGET) $(SRC) $(CFLAGS) $(REL_FLAGS) + +debug: + $(CC) -o $(TARGET) $(SRC) $(CFLAGS) $(DBG_FLAGS) -fsanitize=address + +noasan: + $(CC) -o $(TARGET) $(SRC) $(CFLAGS) $(DBG_FLAGS) + +.PHONY: clean + +clean: + rm -f *.o + rm -f $(TARGET) |