diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2024-04-19 16:11:24 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2024-04-19 16:11:24 -0400 |
commit | 5b1b3bec3f25ea5fc1f48c269f300c4211a1bac7 (patch) | |
tree | d47b7693dd91a8dd08a5c7def418fd132a7032ac /Makefile | |
download | heap-5b1b3bec3f25ea5fc1f48c269f300c4211a1bac7.tar.gz heap-5b1b3bec3f25ea5fc1f48c269f300c4211a1bac7.tar.bz2 heap-5b1b3bec3f25ea5fc1f48c269f300c4211a1bac7.zip |
initial commit; mostly documented.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
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 $@ |