]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - warp/Makefile
Add Warp Kit, Version 7.0 by Larry Wall
[bsdgames-darwin.git] / warp / Makefile
1 CFLAGS+=-O
2 SRCS= bang.c init.c intrp.c move.c object.c play.c score.c sig.c term.c \
3 them.c us.c util.c version.c warp.c weapon.c
4 OBJS= bang.o init.o intrp.o move.o object.o play.o score.o sig.o term.o \
5 them.o us.o util.o version.o warp.o weapon.o
6
7 warp: ${OBJS}
8 ${CC} ${OBJS} -o $@ -ltermlib -lm
9
10 install: warp
11 export PATH || exit 1
12 - mv $(bin)/warp $(bin)/warp.old
13 - if test `pwd` != $(bin); then cp $(public) $(bin); fi
14 - cd $(bin); chmod 755 $(public); chown '$(CHOWNER)' $(public)
15 - chmod 4711 $(bin)/warp
16 - chmod 755 makedir
17 - ./makedir `./filexp $(privlib)`
18 - \
19 if test `pwd` != `./filexp $(privlib)`; then \
20 cp $(private) `./filexp $(privlib)`; \
21 fi
22 - \
23 cd `./filexp $(privlib)`; \
24 chmod 755 $(private); \
25 chown '$(CHOWNER)' . $(private); \
26 cp /dev/null save.blurfl
27 - \
28 if test ! -f `./filexp $(privlib)/warp.news`; then \
29 cp warp.news `./filexp $(privlib)`; \
30 fi
31 - \
32 if test `pwd` != $(mansrc); then \
33 for page in $(manpages); do \
34 cp $$page $(mansrc)/`basename $$page .man`.$(manext); \
35 done; \
36 fi
37
38 clean:
39 rm -f warp core ${OBJS}
40
41 smap.0: smp.0 sm
42 sm <smp.0 >smap.0
43 smap.1: smp.1 sm
44 sm <smp.1 >smap.1
45 smap.2: smp.2 sm
46 sm <smp.2 >smap.2
47 smap.3: smp.3 sm
48 sm <smp.3 >smap.3
49 smap.4: smp.4 sm
50 sm <smp.4 >smap.4
51 smap.5: smp.5 sm
52 sm <smp.5 >smap.5
53 smap.6: smp.6 sm
54 sm <smp.6 >smap.6
55 smap.7: smp.7 sm
56 sm <smp.7 >smap.7
57 sm: sm.c
58 ${CC} sm.c -o $@
59
60 depend: ${SRCS}
61 mkdep ${SRCS}