|
|
1.1 root 1: #
2: # Makefile for rogue
3: # %W% (3.0.1) %G%
4: #
5: HDRS= rogue.h mach_dep.h
6: OBJS= vers.o armor.o chase.o command.o daemon.o daemons.o fight.o \
7: init.o io.o list.o main.o misc.o monsters.o move.o new_level.o \
8: options.o pack.o passages.o potions.o rings.o rip.o rooms.o \
9: save.o scrolls.o sticks.o things.o weapons.o wizard.o sprintf.o
10: POBJS= vers.po armor.po chase.po command.po daemon.po daemons.po fight.po \
11: init.po io.po list.po main.po misc.po monsters.po move.po new_level.po \
12: options.po pack.po passages.po potions.po rings.po rip.po rooms.po \
13: save.po scrolls.po sticks.po things.po weapons.po wizard.po
14: CFILES= vers.c armor.c chase.c command.c daemon.c daemons.c fight.c \
15: init.c io.c list.c main.c misc.c monsters.c move.c new_level.c \
16: options.c pack.c passages.c potions.c rings.c rip.c rooms.c \
17: save.c scrolls.c sticks.c things.c weapons.c wizard.c
18: CFLAGS= -O -DSTANDOUT
19: PROFLAGS= -p -O
20: #LDFLAGS=-i # For PDP-11's
21: LDFLAGS= # For VAXes
22: VGRIND=/usr/ucb/vgrind
23: #CRLIB= -lcurses
24: #CRLIB= /ra/csr/arnold/=lib/=curses/crlib
25: CRLIB= /usr/lib/libcurses.a
26: PCRLIB= /usr/lib/libcurses.a
27: MISC= Makefile TODO
28: # for sites without sccs front end, GET= get
29: GET= sccs get
30:
31: .SUFFIXES: .po
32:
33: .c.po:
34: @echo $(CC) -c $(PROFLAGS) $?
35: @rm -f x.c
36: @ln $? x.c
37: @$(CC) -c $(PROFLAGS) x.c
38: @mv x.o $*.po
39:
40: .DEFAULT:
41: $(GET) $@
42:
43: a.out: $(HDRS) $(OBJS)
44: $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(CRLIB) /usr/lib/libtermlib.a
45: size a.out
46:
47: k.out: $(HDRS) $(OBJS)
48: $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(CRLIB) /usr/lib/libtermlib.a -o k.out
49:
50: rogue: newvers a.out
51: cp a.out rogue
52: strip rogue
53:
54: install: install
55: cp a.out $(DESTDIR)/usr/games/rogue
56: strip $(DESTDIR)/usr/games/rogue
57: chown games $(DESTDIR)/usr/games/rogue
58: chgrp games $(DESTDIR)/usr/games/rogue
59: chmod -rw,+x,g+s $(DESTDIR)/usr/games/rogue
60: >>/usr/games/lib/rogue_roll
61: >>/usr/games/lib/cheat_roll
62: chown games /usr/games/lib/rogue_roll /usr/games/lib/cheat_roll
63: chgrp games /usr/games/lib/rogue_roll /usr/games/lib/cheat_roll
64: chmod o-w,g+w /usr/games/lib/rogue_roll /usr/games/lib/cheat_roll
65:
66: p.out: $(HDRS) $(POBJS)
67: @rm -f x.c
68: $(CC) $(PROFLAGS) $(LDFLAGS) $(POBJS) $(PCRLIB) /usr/lib/libtermlib.a -o p.out
69: size p.out
70:
71: newvers:
72: $(GET) -e vers.c
73: sccs delta -y vers.c
74:
75: main.o rip.o: mach_dep.h
76:
77: tags: $(HDRS) $(CFILES)
78: ctags -u $?
79: ed - tags < :ctfix
80: sort tags -o tags
81:
82: lint:
83: lint -hxbc $(CFILES) -lcurses > linterrs
84:
85: clean:
86: rm -f $(POBJS) $(OBJS) core rogue make.out ? rogue.tar vgrind.* a.out
87:
88: count:
89: wc -l $(HDRS) $(CFILES)
90:
91: realcount:
92: cc -E $(CFILES) | ssp - | wc -l
93:
94: update:
95: ar uv .SAVE $(CFILES) $(HDRS) Makefile
96:
97: dist:
98: cp $(CFILES) $(HDRS) Makefile /ra/csr/toy/_dist
99:
100: xtar: $(CFILES) $(HDRS) $(MISC)
101: rm -f rogue.tar
102: tar cf rogue.tar $? :ctfix
103: touch xtar
104:
105: vgrind:
106: @csh $(VGRIND) -t -h "Rogue Version 3.7" $(HDRS) *.c > vgrind.out
107: @ctags -v $(HDRS) *.c > index
108: @csh $(VGRIND) -t -x index > vgrind.out.tbl
109:
110: cfiles: $(CFILES)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.