summaryrefslogtreecommitdiff
path: root/games/3dpong/files/patch-aa
blob: 74228f0f47da9dc0de7f59fcaf897cb7ffc6fad9 (plain) (blame)
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
--- makefile	Sun Mar 15 05:43:34 1998
+++ /home/andy/tmp/wrk/makefile	Sun Jul 11 12:55:29 1999
@@ -11,11 +11,28 @@
 
 # Makefile user-definable variables
 
-CC=gcc -I/usr/X11R6/include
+# C compiler
+CC?=cc
+
+# C compiler options
+CFLAGS?=-Wall
+
+# X Window base directory
+X11BASE?=/usr/X11R6
+
+# Include directory
+INCLUDE=-I$(X11BASE)/include
+
+# Installation directory
+PREFIX?=$(X11BASE)
+
+# Defines
+DEFINE=-DPREFIX=\"$(PREFIX)\"
+
 MATHLIB=-lm
 
-# adjust according to target
-XLIB=-L/usr/X11R6/lib -lX11
+# X library
+XLIB=-L$(X11BASE)/lib -lX11
 
 # uncomment for sunos/solaris
 #XLIB=-L/usr/openwin/lib -lX11
@@ -43,7 +60,7 @@
 # Application:
 
 3dpong:	$(OBJECTS)
-	$(CC)	$(OBJECTS) $(XLIB) $(MATHLIB) -o 3dpong
+	$(CC) $(CFLAGS) $(OBJECTS) $(XLIB) $(MATHLIB) -o 3dpong
 	chmod 755 3dpong
 	strip 3dpong
 
@@ -52,31 +69,31 @@
 
 3dpong.o:	3dpong.c window.h connect.h hints.h visual.h gc.h color.h \
 		randnum.h text.h
-	$(CC)	3dpong.c -c
+	$(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) 3dpong.c -c
 
 
 # Library objects:
 
 window.o:	window.c window.h
-	$(CC)	window.c -c
+	$(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) window.c -c
 
 connect.o:	connect.c connect.h
-	$(CC)	connect.c -c
+	$(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) connect.c -c
 
 hints.o:	hints.c hints.h
-	$(CC)	hints.c -c
+	$(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) hints.c -c
 
 visual.o:	visual.c visual.h
-	$(CC)	visual.c -c
+	$(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) visual.c -c
 
 gc.o:	gc.c gc.h
-	$(CC)	gc.c -c
+	$(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) gc.c -c
 
 color.o:	color.c color.h
-	$(CC)	color.c -c
+	$(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) color.c -c
 
 randnum.o:	randnum.c randnum.h
-	$(CC)	randnum.c -c
+	$(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) randnum.c -c
 
 text.o:		text.c text.h
-	$(CC)	text.c -c
+	$(CC) $(CFLAGS) $(INCLUDE) $(DEFINE) text.c -c