File: Makefile

package info (click to toggle)
vgagamespack 1.3-7
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 292 kB
  • ctags: 418
  • sloc: ansic: 3,755; makefile: 79
file content (78 lines) | stat: -rw-r--r-- 2,028 bytes parent folder | download
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
# ------------------------------------------------------------------- #
# VGA GamesPack
#
# Copyright (C) Evan Harris, 1994, 1995.
#
# Permission is granted to freely redistribute and modify this code,
# providing the author(s) get credit for having written it.
# ------------------------------------------------------------------- #

# Installation directories
BINDIR=		/usr/games
LIBDIR=		/usr/lib/games/vgagamespack

# Binary name prefix (to avoid clashes with other programs)
PREFIX=		vga_

# See the README for a description of these options.
# OPTIONS=	-DNOMOUSE -DUSEMOUSEFUNCS -DMOUSESAMPLERATE=MOUSE_DEFAULTSAMPLERATE -DUSEGETPIXEL
OPTIONS=	

# ------------------------------------------------------------------- #

# These may be changed, if desired
CC=		gcc
CCOPTS=		-O2 -m486

# ------------------------------------------------------------------- #

# Changing the remainder shouldn't be necessary

CFLAGS=	$(CCOPTS) $(OPTIONS) \
	-DVGA16FONT=\"$(LIBDIR)/Vga16font8x16\"
CONNECT=	$(PREFIX)connectN
CONNECTOBJ=	c4.o c4linux.o mouse.o key.o vga16.o
OTHELLO=	$(PREFIX)othello
OTHELLOOBJ=	othello.o otlinux.o mouse.o key.o vga16.o
MINES=		$(PREFIX)mines
MINESOBJ=	mines.o milinux.o mouse.o key.o vga16.o


all:	$(CONNECT) $(OTHELLO) $(MINES)

install: $(CONNECT) $(OTHELLO) $(MINES) Vga16font8x16
	install -o root -m 4755 -s $(CONNECT) $(BINDIR)
	install -o root -m 4755 -s $(OTHELLO) $(BINDIR)
	install -o root -m 4755 -s $(MINES) $(BINDIR)
	install -m 644 Vga16font8x16 $(LIBDIR)


$(CONNECT):	$(CONNECTOBJ)
	$(CC) -o $(CONNECT) $(CONNECTOBJ) -lvga

$(OTHELLO):	$(OTHELLOOBJ)
	$(CC) -o $(OTHELLO) $(OTHELLOOBJ) -lvga

$(MINES):	$(MINESOBJ)
	$(CC) -o $(MINES) $(MINESOBJ) -lvga


clean:
	rm -f *.o *~

clobber:	clean
	rm -f $(CONNECT) $(OTHELLO) $(MINES)


c4.o:		c4.h
c4linux.o:	c4.h c4chip.h vga16.h mouse.h key.h

othello.o:	othello.h
otlinux.o:	othello.h otsquare.h vga16.h mouse.h key.h

mines.o:	mines.h
milinux.o:	mines.h misquare.h vga16.h mouse.h key.h

mouse.o:	vga16.h mouse.h
key.o:		key.h
vga16.o:	vga16.h