-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
84 lines (69 loc) · 1.42 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
SHELL = /bin/sh
CFLAGS = -g -Wall @SYSTEM_CFLAGS@
LDFLAGS = @SYSTEM_LDFLAGS@
prefix = @prefix@
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
datarootdir = $(prefix)/share
mandir = $(datarootdir)/man
INSTALL ?= install
INSTALLFLAGS ?= -D
SRCS=\
player.c \
fmtbuf.c \
args.c \
object.c \
tell.c \
tcpbind.c \
parseline.c \
evsrc.c \
kqueue.c \
room.c \
match.c \
command/go.c \
command/say.c \
command/dig.c \
command/collapse.c \
command/look.c \
command/describe.c \
command/clear.c \
command/goto.c \
command/objects.c \
tfmud.c
DISTFILES=\
Makefile.in\
configure\
README\
LICENSE
PROG=tfmud
MAN=tfmud.1
OBJS=$(SRCS:.c=.o)
all: Makefile $(PROG)
$(PROG): $(OBJS)
$(CC) -o$@ $(OBJS) $(LDFLAGS)
Makefile: Makefile.in
./configure $(CONFIGURE_FLAGS)
deps:
sed -i '/^# Dependencies/,/^# End dependencies/d' Makefile
echo "# Dependencies (generated on $$(date))" >>Makefile
for a in $(SRCS) ; \
do \
$(CC) -MM -MT $$(echo $$a | cut -d. -f1).o $$a \
>>Makefile ; \
done >>Makefile
echo "# End dependencies" >>Makefile
.c.o:
$(CC) $(CFLAGS) -o$@ -c $<
clean:
rm -f $(OBJS) $(PROG)
install: $(PROG)
$(INSTALL) $(INSTALLFLAGS) $(PROG) $(DESTDIR)$(bindir)/$(PROG)
$(INSTALL) $(INSTALLFLAGS) -m 444 $(MAN) \
$(DESTDIR)$(mandir)/man1/$(MAN)
uninstall:
rm -f $(DESTDIR)$(bindir)/$(PROG)
rm -f $(DESTDIR)$(mandir)/man1/$(MAN)
.PHONY: deps
# Dependencies
# End dependencies