-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
46 lines (36 loc) · 936 Bytes
/
Makefile.in
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
36
37
38
39
40
41
42
43
44
45
46
SHELL = /bin/sh
CFLAGS = -g -Wall -pedantic -std=c99 @SYSTEM_CFLAGS@
prefix = @prefix@
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
datarootdir = $(prefix)/share
mandir = $(datarootdir)/man
includedir = $(prefix)/include
PROG = gopherd
MAN = gopherd.1
OBJS = session.o sendfile.o serve.o tcpbind.o validselector.o makesafe.o \
gopherd.o
INSTALL = install
INSTALLFLAGS = -D
all: $(PROG)
$(PROG): $(OBJS)
$(CC) -o$@ $(OBJS)
.c.o:
$(CC) -c $(CFLAGS) $<
clean:
rm -f $(OBJS) $(PROG)
install: $(PROG)
$(INSTALL) $(INSTALLFLAGS) -m 555 $(PROG) $(DESTDIR)$(bindir)/
$(INSTALL) $(INSTALLFLAGS) -m 444 $(MAN) $(DESTDIR)$(mandir)/man1/
uninstall:
rm -f $(DESTDIR)$(bindir)/$(PROG)
rm -f $(DESTDIR)$(mandir)/man1/$(MAN)
# Dependencies
gopherd.o: gopherd.c
makesafe.o: makesafe.c
sendfile.o: sendfile.c
serve.o: serve.c
session.o: session.c
tcpbind.o: tcpbind.c
validselector.o: validselector.c