summaryrefslogtreecommitdiff
path: root/Makefile
blob: e8ab26f9922ec39d57b1479cdb5f33d9dfd8196d (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 $(CFLAGS) $<

$(OBJ): util.c

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

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

.PHONY: all clean