-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
executable file
·60 lines (48 loc) · 1.13 KB
/
Makefile
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
#CFLAGS = +Wc,t=5000 +Wc,+u +Wi,t=10000 S=3000
#TARGET = -DERUG
CFLAGS = -c -w3 $(TARGET)
OBJS = scepter.o cmd1.o cmd2.o cmd3.o cmd4.o db.o execute.o \
edit1.o edit2.o io.o ipc.o log.o main.o matt.o \
mon.o obj.o room.o spells.o user.o rand.o
all: mud scepterd scepter
## scepterd
scepterd: $(OBJS)
cc -o scepterd $(OBJS) -lwm -lunix
# cc x=link c=scepterd
# cp scepterd 3:/cmds
scepter: inter.o
cc -o scepter inter.o -lwm
inter.o: inter.c
mud: mud.o
cc -o mud mud.o -lwm
mud.o: mud.c common.h
arc:
rm scepter.arc
arc a scepter Makefile link *.[ch]
$(OBJS): scepter.h
install: scepterd scepter
cp scepterd ~wm/bin
cp scepter ~wm/wmbin
cmd1.o: scepter.h
cmd2.o: scepter.h
cmd3.o: scepter.h
cmd4.o: scepter.h
db.o: scepter.h
edit1.o: scepter.h
edit2.o: scepter.h
execute.o: scepter.h
inter.o: Makefile common.h
io.o: scepter.h
ipc.o: Makefile common.h scepter.h
log.o: scepter.h
main.o: Makefile common.h
matt.o: scepter.h
mon.o: scepter.h
obj.o: scepter.h
rand.o: scepter.h
room.o: scepter.h
scepter.o: Makefile common.h proto.h scepter.h
spells.o: scepter.h
user.o: Makefile common.h scepter.h
.c.o:
cc $(CFLAGS) $<