diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -1,17 +1,20 @@ TARGET=fcomp -SRC=fcomp.c +SRC=*.c +OBJ=fcomp.o linenoise.o CC=gcc CFLAGS=-D_GNU_SOURCE -std=c99 -pedantic REL_FLAGS=-O3 DBG_FLAGS=-Wall -g3 -make: - $(CC) -o $(TARGET) $(SRC) $(CFLAGS) $(REL_FLAGS) +COMPILE=$(CC) -o $(TARGET) $(SRC) $(CFLAGS) -Ilib -debug: - $(CC) -o $(TARGET) $(SRC) $(CFLAGS) $(DBG_FLAGS) -fsanitize=address +make: $(SRC) + $(CC) $(REL_FLAGS) $(CFLAGS) -o $(TARGET) $^ -noasan: - $(CC) -o $(TARGET) $(SRC) $(CFLAGS) $(DBG_FLAGS) +debug: $(SRC) + $(CC) $(DBG_FLAGS) -fsanitize=address $(CFLAGS) -o $(TARGET) $^ + +noasan: $(SRC) + $(CC) $(DBG_FLAGS) $(CFLAGS) -o $(TARGET) $^ .PHONY: clean |