date and time created 86/11/26 13:39:41 by bostic
[unix-history] / usr / src / games / mille / Makefile
CommitLineData
44ba15f9
KB
1#
2# Copyright (c) 1982 Regents of the University of California.
3# All rights reserved. The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
6# @(#)Makefile 5.1 (Berkeley) 5/15/86
7#
8# mille bourne game makefile
9#
10HEADERS=mille.h
11CFILES= comp.c end.c extern.c init.c mille.c misc.c move.c print.c \
12 roll.c save.c types.c varpush.c
13OBJS= comp.o end.o extern.o init.o mille.o misc.o move.o print.o \
14 roll.o save.o types.o varpush.o
15POBJS= comp.po end.po extern.po init.po mille.po misc.po move.po \
16 roll.po print.po save.po types.po varpush.po
17# CRL= /jb/ingres/arnold/=lib/=curses/crlib
18# CRL= =curses/screen/libcurses.a
19CRL=
20# L= -ltermlib
21L= -lcurses -ltermlib
22LIBS= ${CRL} ${L}
23DEFS=
24CFLAGS= -O ${DEFS}
25LDFLAGS=
26DESTDIR=
27BINDIR= /usr/games
28.SUFFIXES: .po .i
29
30.c.po:
31 rm -f x.c ; ln $*.c x.c
32 ${CC} ${CFLAGS} -p -c x.c
33 mv x.o $*.po
34
35.c.i:
36 ${CC} ${LDFLAGS} -P $*.c
37
38a.out: ${OBJS} ${CRL}
39 ${CC} ${LDFLAGS} ${OBJS} ${LIBS}
40
41mille: ${OBJS} ${CRL}
42 ${CC} ${CFLAGS} -o mille ${OBJS} ${LIBS}
43
44install: mille
45 install -s mille ${DESTDIR}${BINDIR}
46
47pmb: ${POBJS} ../pcrlib
48 ${CC} ${CFLAGS} -p -o pmb ${POBJS} ../pcrlib -ltermlib
49
50mille.po: mille.c
51 rm -f x.c ; ln mille.c x.c
52 ${CC} ${CFLAGS} -DPROF -p -c x.c
53 mv x.o mille.po
54
55table: table.o extern.o
56 ${CC} ${CFLAGS} -i -o table table.o extern.o
57
58readdump: readdump.o extern.o varpush.o
59 ${CC} ${CFLAGS} -i -o readdump readdump.o extern.o varpush.o
60
61ctags:
62 ctags ${HEADERS} ${CFILES}
63 ed - tags < :ctfix
64 sort tags -o tags
65
66lint:
67 lint -hxb ${DEFS} ${CFILES} ${L} > lint.out
68
69mille.ar:
70 ar ruv mille.ar Makefile tags ${HEADERS} ${CFILES}
71
72tar:
73 tar rvf /dev/rmt0 Makefile tags :ctfix ${HEADERS} ${CFILES}
74
75lpr:
76 pr Makefile ${HEADERS} ${CFILES} tags | lpr ; lpq
77
78clean:
79 rm -f ${OBJS} ${POBJS} core ? a.out errs mille lint.out mille.ar \
80 tags pmb