summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2024-04-19 16:11:24 -0400
committerJon Santmyer <jon@jonsantmyer.com>2024-04-19 16:11:24 -0400
commit5b1b3bec3f25ea5fc1f48c269f300c4211a1bac7 (patch)
treed47b7693dd91a8dd08a5c7def418fd132a7032ac /Makefile
downloadheap-5b1b3bec3f25ea5fc1f48c269f300c4211a1bac7.tar.gz
heap-5b1b3bec3f25ea5fc1f48c269f300c4211a1bac7.tar.bz2
heap-5b1b3bec3f25ea5fc1f48c269f300c4211a1bac7.zip
initial commit; mostly documented.
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 $@