summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2019-03-27 19:56:24 +0200
committergramanas <anastasis.gramm2@gmail.com>2020-12-25 21:34:36 +0200
commit5b4a10af81c60c6c4787d95f82004094f358459c (patch)
tree6f7b358288926bd5c501755d1e8f2872fb68d046 /Makefile
downloadquart-5b4a10af81c60c6c4787d95f82004094f358459c.tar.gz
quart-5b4a10af81c60c6c4787d95f82004094f358459c.tar.bz2
quart-5b4a10af81c60c6c4787d95f82004094f358459c.zip
Initial..
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f05117c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,36 @@
+TARGET=quart
+SRC=*.c
+CC=gcc
+CFLAGS=-D_GNU_SOURCE -std=c99 -pedantic -lm
+REL_FLAGS=-O3
+DBG_FLAGS=-Wall -g3
+COMPILE=$(CC) -o $(TARGET) $(SRC) $(CFLAGS) -Ilib
+
+make: $(SRC)
+ $(CC) $(REL_FLAGS) $(CFLAGS) -o $(TARGET) $^
+
+debug: $(SRC)
+ $(CC) $(DBG_FLAGS) -fsanitize=address $(CFLAGS) -o $(TARGET) $^
+
+noasan: $(SRC)
+ $(CC) $(DBG_FLAGS) $(CFLAGS) -o $(TARGET) $^
+
+docs:
+ scdoc < quart.1.scd > quart.1
+ scdoc < quart.5.scd > quart.5
+ ln -fs quart.1 qc.1
+
+.PHONY: clean
+
+clean:
+ rm -f *.o
+ rm -f *.1
+ rm -f *.5
+ rm -f $(TARGET)
+
+install: $(TARGET)
+ @cp -v $(TARGET) /usr/local/bin/$(TARGET)
+ @cp -v qc /usr/local/bin/qc
+
+uninstall:
+ @rm -v /usr/local/bin/$(TARGET)