aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-25 15:47:08 -0400
committeriamcheeseman <[email protected]>2026-05-25 15:47:08 -0400
commit8122098e3854bf68ca63cc25e082ba51a27b8615 (patch)
tree471e7191211b0f66f1c7c7c4c81cf2589e6f3c8d /Makefile
parent1fb9ed0d6f627662f8d001afa761860d63d9f4a2 (diff)
I realized that Makefiles are dumb
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile43
1 files changed, 0 insertions, 43 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index eadb7b0..0000000
--- a/Makefile
+++ /dev/null
@@ -1,43 +0,0 @@
-include config.mk
-
-Q?=@
-
-SRC=$(wildcard **/*.c)
-SRC+=$(wildcard platform/${PLATFORM}/**/*.c)
-SRC+=$(wildcard platform/${PLATFORM}/*.c)
-OBJ=$(SRC:%.c=.obj/%.o)
-
-.PHONY: all echo run clean full-clean
-
-all: Makefile.dep ${OUT}
-
-echo:
- $(Q)echo CFLAGS=${CFLAGS}
- $(Q)echo LDFLAGS=${LDFLAGS}
- $(Q)echo SRC=${SRC}
- $(Q)echo OBJ=${OBJ}
-
-${OUT}: ${OBJ}
- $(Q)echo linking $@
- $(Q)${CC} -o $@ ${LDFLAGS} ${OBJ}
-
-.obj/%.o: %.c
- $(Q)mkdir -p ${@D}
- $(Q)echo ${CC} $<
- $(Q)${CC} -c -o $@ ${CFLAGS} $<
-
-Makefile.dep: ${SRC}
- $(Q)echo update $@
- $(Q)${CC} ${CFLAGS} ${SRC} -MM > $@
-
-run: all
- ${RUN_CMD} ./${OUT}
-
-clean:
- rm -f ${OBJ} ${OUT}
-
-# Don't use this unless you are fine with your custom config getting deleted
-full-clean: clean
- rm -rf .obj config.mk
-
-include Makefile.dep