summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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..1b5de9a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+BINS = ascii class depipe_strings dup fpipe realloc strpbrk strsep tokenizer
+CC = gcc
+DBGFLAGS = -g -O0
+ifdef DEBUG
+ CFLAGS = $(DBGFLAGS) -D DEBUG -std=gnu99 -Wall -pedantic
+else
+ CFLAGS = -O2 -std=gnu99 -Wall -pedantic
+endif
+LDFLAGS = -lm
+
+all: $(BINS)
+
+$(BINS): %: %.c
+ $(CC) $(CFLAGS) $^ -o $@
+
+
+.PHONY: clean
+
+clean:
+ rm -f ./$(BINS)