summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2019-03-19 00:32:20 +0200
committergramanas <anastasis.gramm2@gmail.com>2019-03-19 00:32:20 +0200
commita5a0ddf73b81d3815def20d283bb8de1d01a7230 (patch)
tree984cff4e41e56bd743aa4f2a0a70c851f431f968 /Makefile
downloadfcomp-a5a0ddf73b81d3815def20d283bb8de1d01a7230.tar.gz
fcomp-a5a0ddf73b81d3815def20d283bb8de1d01a7230.tar.bz2
fcomp-a5a0ddf73b81d3815def20d283bb8de1d01a7230.zip
Initial..
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
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)