This repository has been archived on 2021-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
baseven/Makefile

19 lines
212 B
Makefile
Raw Normal View History

2021-10-31 16:42:31 +00:00
include config.mk
2021-11-06 19:45:54 +00:00
OBJ = ${SRC:.c=.o}
all: ${OBJ} ${BIN}
2021-10-31 16:42:31 +00:00
2021-11-06 19:45:54 +00:00
%.o: %.c
${CC} -o $@ -c ${CFLAGS} $<
2021-10-31 16:42:31 +00:00
2021-11-06 19:45:54 +00:00
clean:
rm -f ${OBJ} ${BIN}
2021-10-31 16:42:31 +00:00
2021-11-06 19:45:54 +00:00
ifneq (${BIN},)
${BIN}: ${OBJ}
2021-11-13 19:49:58 +00:00
${CC} -o "$@" ${LDFLAGS} $^
2021-11-06 19:45:54 +00:00
endif
2021-10-31 16:42:31 +00:00
.PHONY: all clean