blob: d93205ddd91f76d7ef1a14118e9798a85243b22b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
.POSIX:
CONFIGFILE = config.mk
include $(CONFIGFILE)
OBJ =\
addressbook.o
HDR =
all: addressbook
$(OBJ): $(@:.o=.c) $(HDR)
.c.o:
$(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
addressbook: $(OBJ)
$(CC) -o $@ $(OBJ) $(LDFLAGS)
install: addressbook
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin/"
cp -- addressbook "$(DESTDIR)$(PREFIX)/bin/"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/bin/addressbook"
clean:
-rm -f -- *.o *.a *.su $(OBJ) addressbook
.SUFFIXES:
.SUFFIXES: .c .o
.PHONY: all install uninstall clean
|