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.
2021-08-10 18:06:44 +00:00
|
|
|
include config.mk
|
|
|
|
|
|
|
|
OBJ = ${SRC:.c=.o}
|
|
|
|
|
2021-11-13 17:38:17 +00:00
|
|
|
all: ${OBJ} ${BIN}
|
2021-08-10 18:06:44 +00:00
|
|
|
|
2021-08-13 16:32:59 +00:00
|
|
|
%.o: %.c
|
2021-11-13 17:38:17 +00:00
|
|
|
${CC} -o $@ -c ${CFLAGS} $<
|
2021-08-10 18:06:44 +00:00
|
|
|
|
|
|
|
clean:
|
2021-11-13 17:38:17 +00:00
|
|
|
rm -f ${OBJ} ${BIN}
|
2021-08-10 18:06:44 +00:00
|
|
|
|
2021-11-13 17:38:17 +00:00
|
|
|
ifneq (${BIN},)
|
|
|
|
${BIN}: ${OBJ}
|
|
|
|
${CC} -o "$@" ${LDFLAGS} $?
|
|
|
|
endif
|
2021-08-10 18:06:44 +00:00
|
|
|
|
2021-11-13 17:38:17 +00:00
|
|
|
.PHONY: all clean
|