19 lines
212 B
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
|