1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
SRC = getgbook.c OBJ = $(SRC:.c=.o) all: getgbook .c.o: @echo CC $< @$(CC) -c -g $(CFLAGS) $< getgbook: $(OBJ) @echo LD $@ @$(CC) -o $@ $(OBJ) $(LDFLAGS) clean: rm -f -- getgbook $(OBJ) .PHONY: all clean