From a5a0ddf73b81d3815def20d283bb8de1d01a7230 Mon Sep 17 00:00:00 2001 From: gramanas Date: Tue, 19 Mar 2019 00:32:20 +0200 Subject: Initial.. --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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) -- cgit v1.2.3