summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5a81cb1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+CFILES := $(wildcard *.c)
+CFILES += $(wildcard test/*.c)
+OFILES := $(patsubst %.c,%.o,$(CFILES))
+
+OUT := malloc-test
+
+CFLAGS := -Wall -Wextra -Wpedantic
+
+all: $(OUT)
+ ./$(OUT)
+
+clean:
+ rm $(OFILES)
+
+$(OUT): ${OFILES} $(JDTLIB)
+ $(CC) $(OFILES) -o $(OUT)
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $< -o $@