Makefile (277B)
1 CC = cc 2 3 HDR = util.h 4 SRC = util.c sysmgr-needs.c checkprocess.c 5 OBJ = ${SRC:.c=.o} 6 BIN = sysmgr-needs checkprocess 7 8 all: ${BIN} 9 10 .c.o: 11 ${CC} ${CFLAGS} -c -o $@ $< 12 13 ${BIN}: ${HDR} ${OBJ} 14 ${CC} ${LDFLAGS} -o $@ ${@:=.o} util.o 15 16 clean: 17 rm -f ${OBJ} ${BIN} 18 19 .PHONY: all clean