From cd294fb6188ee26caac8c78353f34e757dfd3b10 Mon Sep 17 00:00:00 2001 From: c+1 Date: Thu, 16 Nov 2023 10:19:52 -0500 Subject: a couple more makefile items. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c948a26..05525e7 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,9 @@ dbg_options: @echo "DBG_CFLAGS: ${DBG_CFLAGS}" @echo +%.o: %.c include/%.h + ${CC} -c $< -o $@ + halk: reg_options ${OBJS} ${CC} ${OBJS} ${REG_CFLAGS} -o ${BIN}.out @@ -29,9 +32,6 @@ dbg: CFLAGS += ${DBG_CFLAGS} dbg: dbg_options ${OBJS} ${CC} ${OBJS} ${DBG_CFLAGS} -o ${BIN}.out -%.o: %.c include/%.h - ${CC} -c ${CFLAGS} $< -o $@ - install: all mkdir -p ${PREFIX} cp -f ${BIN}.out ${PREFIX}/${BIN} @@ -47,6 +47,6 @@ me a: @exit sandwich: - @[ "$(USER)" = "root" ] && echo "Okay." || echo "What? Make(1) it yourself." + @[ $(id -u) -eq 0 ] && echo "Okay." || echo "What? Make(1) it yourself." .PHONY: all reg_options dbg_options dbg install uninstall clean -- cgit v1.2.3