blob: 776c9fb6a2e655934e0e85af43e7fe8dc2dac252 (
plain)
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
|
$NetBSD: patch-aa,v 1.10 2005/02/13 21:03:41 minskim Exp $
--- Makefile.orig Thu Jan 16 17:31:58 1997
+++ Makefile Wed Apr 12 21:03:39 2000
@@ -23,7 +23,7 @@
# (the program should compile with no warning messages - if you
# see a warning message please let me know about it)
# ------------------------------------------------------------
-CC = CC
+#CC = cc
# STEP 2: IF YOU WANT TO COMPILE WITH THE MESA LIBRARIES THEN
@@ -51,7 +51,7 @@
# with the other Makefile.)
#
# ------------------------------------------------------------
-OS = -DSGIVERSION
+#OS = -DSGIVERSION
# or
#OS = -DSUNVERSION
# or
@@ -77,8 +77,8 @@
# in audio.c then everything works fine.
#
# ------------------------------------------------------------
-AUDIOLIB = -laudio -laudiofile
-AUDIODEF = -DSGIAUDIO
+#AUDIOLIB = -laudio -laudiofile
+#AUDIODEF = -DSGIAUDIO
# STEP 6: IF YOU ARE COMPILING FOR A SUN AND WANT (RUDIMENTARY)
@@ -91,13 +91,15 @@
# STEP 7: CHOOSE ANY OPTIMIZATIONS OR ADD ANY SPECIAL INCLUSIONS
# ------------------------------------------------------------
-CFLAGS = -O -I/usr/local/X11/include -I/usr/demo/SOUND/ -I./.
-
+CFLAGS += -O $(DEFS) -I$(X11BASE)/include -I./.
+DATADIR = $(PREFIX)/share/battalion/
+VARDIR = /var/games/
+DEFS = -DDATADIR=\"$(DATADIR)\" -DVARDIR=\"$(VARDIR)\"
# STEP 8: ADD ANY SPECIAL LIBRARY PATHS
# (USEFUL TO POINT TO WHERE THE MESA LIBRARIES RESIDE)
# ------------------------------------------------------------
-LIBFLAGS =
+LIBFLAGS += ${LDFLAGS} -L$(X11BASE)/lib
# you should now be able to type 'make' and everything should be fine ...
|