summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohnny Richard <johnny@johnnyrichard.com>2025-04-14 22:46:21 +0200
committerJohnny Richard <johnny@johnnyrichard.com>2025-04-14 23:11:22 +0200
commit6938ae45af8c1ea8932aa7245b4f3adfcf3fb510 (patch)
tree13dc3b88fd55b0706bd9439d172579f9f81bbee1 /Makefile
parente7f69c8fbbbcbddde84933b2becd91e787d1ac63 (diff)
Add autotools build system
Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 0 insertions, 30 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 1f49002..0000000
--- a/Makefile
+++ /dev/null
@@ -1,30 +0,0 @@
-SHELL := /bin/sh
-CC := c99
-CFLAGS := -g -Werror -Wall -pedantic
-SRCDIR := ./src
-SRCS := $(shell find . -name '*.c')
-OBJS := $(SRCS:.c=.o)
-DEPS := $(OBJS:.o=.d)
-TARGET := sm
-
-.POSIX:
-.PHONY: all clean
-
-all: $(TARGET)
-
-%.d: %.c
- @$(CC) -MM $(CPPFLAGS) $< > $@
-
-%.o: %.c %.d
- @$(CC) $(CFLAGS) -c -o $@ $<
- @printf 'CC\t%s\n' '$@'
-
--include $(DEPS)
-
-$(TARGET): $(OBJS)
- @$(CC) $(CFLAGS) $(OBJS) -o $@
- @printf 'CCLD\t%s\n' '$@'
-
-clean:
- $(RM) $(TARGET)
- $(RM) $(OBJS) $(DEPS)