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.
llist/Makefile

19 lines
212 B
Makefile

include config.mk
OBJ = ${SRC:.c=.o}
all: ${OBJ} ${BIN}
%.o: %.c
${CC} -o $@ -c ${CFLAGS} $<
clean:
rm -f ${OBJ} ${BIN}
ifneq (${BIN},)
${BIN}: ${OBJ}
${CC} -o "$@" ${LDFLAGS} $^
endif
.PHONY: all clean