summaryrefslogtreecommitdiff
path: root/Makefile
blob: d9ca4fb094a8c82b5e46dc26f73c380bf1a65549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
SRC = getgbook.c
OBJ = $(SRC:.c=.o)

all: getgbook

.c.o:
	@echo CC $<
	@$(CC) -c -g -Wall -Werror $(CFLAGS) $<

$(OBJ): util.c

getgbook: $(OBJ)
	@echo LD $@
	@$(CC) -o $@ $(OBJ) $(LDFLAGS)

clean:
	rm -f -- getgbook $(OBJ)

.PHONY: all clean