File: Makefile.noIm

package info (click to toggle)
xmille 2.0-13
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, lenny, sid, squeeze, stretch, wheezy
  • size: 1,128 kB
  • ctags: 1,040
  • sloc: ansic: 4,392; makefile: 745
file content (95 lines) | stat: -rw-r--r-- 2,055 bytes parent folder | download | duplicates (6)
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
85
86
87
88
89
90
91
92
93
94
95
# @(#)Makefile	1.2	ULTRIX	6/29/84
#
# mille bourne game makefile
#
# @(#)Makefile	1.7 (Berkeley) 8/14/83
#
DESTROOT=
HEADERS=mille.h
CFILES=	comp.c end.c extern.c init.c mille.c misc.c move.c print.c \
	roll.c save.c types.c varpush.c ui.c drawcard.c animate.c 
OBJS=	comp.o end.o extern.o init.o mille.o misc.o move.o print.o \
	roll.o save.o types.o varpush.o ui.o drawcard.o animate.o 
POBJS=	comp.po end.po extern.po init.po mille.po misc.po move.po \
	roll.po print.po save.po types.po varpush.po ui.po drawcard.po animate.po
CRL=	
L=	control/control.a cards/cardlib.a -lX11 -lm
LIBS=	${CRL} ${L}
DEFS=	
CFLAGS=	-g ${DEFS} -I/usr/local/pkg/X11/include -L/usr/local/pkg/X11/lib
BINDIR=	${DESTROOT}/usr/games
.SUFFIXES: .po .i
.PRECIOUS: cards/cardlib.a control/control.a

.c.po:
	rm -f x.c ; ln $*.c x.c
	${CC} ${CFLAGS} -p -c x.c
	mv x.o $*.po

.c.i:
	${CC} ${CFLAGS} -P $*.c

xmille: ${OBJS} ${CRL} control/control.a cards/cardlib.a
	${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS}

mille: ${OBJS} ${CRL}
	${CC} ${CFLAGS} -o mille ${OBJS} ${LIBS}

control/control.a: always
	cd control; make control.a

cards/cardlib.a: always
	cd cards; make cardlib.a

always:

install: mille
	install -c -s mille ${BINDIR}

pmb: ${POBJS} ../pcrlib
	${CC} ${CFLAGS} -p -o pmb ${POBJS} ../pcrlib -ltermlib

mille.po: mille.c
	rm -f x.c ; ln mille.c x.c
	${CC} ${CFLAGS} -DPROF -p -c x.c
	mv x.o mille.po

table: table.o extern.o
	${CC} ${CFLAGS} -i -o table table.o extern.o

animate.o ui.o: ui.h

readdump: readdump.o extern.o varpush.o
	${CC} ${CFLAGS} -i -o readdump readdump.o extern.o varpush.o

ctags:
	ctags ${HEADERS} ${CFILES}
	ed - tags < :ctfix
	sort tags -o tags

lint:
	lint -hxb ${DEFS} ${CFILES} ${L} > lint.out

mille.ar:
	ar ruv mille.ar Makefile tags ${HEADERS} ${CFILES}

tar:
	tar rvf /dev/rmt0 Makefile tags :ctfix ${HEADERS} ${CFILES}

lpr:
	pr Makefile ${HEADERS} ${CFILES} tags | lpr ; lpq

clean:
	rm -f ${OBJS} ${POBJS} core ? a.out mille

clobber: clean
	rm -f *.[ch] Makefile

sccsinfo:
	sccs info

sccsget:
	sccs get SCCS

.DEFAULT:
	sccs get $<