blob: 3e8c1fcb5541cea451261ce30c35123f61a3d993 (
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
|
$NetBSD: patch-aa,v 1.6 2003/11/05 13:38:27 agc Exp $
--- makefile.orig 1998-06-19 04:28:34.000000000 +0100
+++ makefile 2003-11-05 12:36:20.000000000 +0000
@@ -11,15 +11,22 @@
# Makefile user-definable variables------------------------------------------
-CC=gcc
+INSTALLROOT= $(PREFIX)
+INSTALLBIN= $(INSTALLROOT)/bin
+SOUNDS= $(INSTALLROOT)/share/xbomber/sounds
+PIXMAPS= $(INSTALLROOT)/share/xbomber/pixmap
+LEVELS= $(INSTALLROOT)/share/xbomber/level
+BITMAPS= $(INSTALLROOT)/share/xbomber/bitmaps
+
+#CC=gcc
MATHLIB=-lm
-CFLAGS=-I/usr/X11/include
+CFLAGS=-I$(PREFIX)/include -I${X11BASE}/include -DSOUNDS=\"$(SOUNDS)\" -DPIXMAPS=\"$(PIXMAPS)\" -DLEVELS=\"$(LEVELS)\" -DBITMAPS=\"$(BITMAPS)\"
# Change this to "touch" if your system doesn't have the "strip" command:
POSTPROCESS=strip
# adjust according to target
-XLIB=-L/usr/X11/lib -lX11
+XLIB=-Wl,${RPATH_FLAG}${PREFIX}/lib -L$(PREFIX)/lib -Wl,${RPATH_FLAG}${X11BASE}/lib -L${X11BASE}/lib -lX11
# uncomment for sunos/solaris
#XLIB=-L/usr/openwin/lib -lX11
@@ -44,6 +51,19 @@
bitmaps/*.xbm pixmaps/*.ppm \
sounds/numbers/*.au levels/*.dat
+install: xbomber
+ ${BSD_INSTALL_PROGRAM} xbomber $(INSTALLBIN)/xbomber
+ ${BSD_INSTALL_DATA_DIR} $(LEVELS)
+ ${BSD_INSTALL_DATA_DIR} $(SOUNDS)/numbers
+ ${BSD_INSTALL_DATA_DIR} $(PIXMAPS)/jungle
+ ${BSD_INSTALL_DATA_DIR} $(BITMAPS)
+ ${BSD_INSTALL_DATA} pixmaps/* $(PIXMAPS)
+ ${BSD_INSTALL_DATA} bitmaps/* $(BITMAPS)
+ ${BSD_INSTALL_DATA} jungle/* $(PIXMAPS)/jungle
+ ${BSD_INSTALL_DATA} sounds/numbers/* $(SOUNDS)/numbers
+ ${BSD_INSTALL_DATA} sounds/*.au $(SOUNDS)
+ ${BSD_INSTALL_DATA} levels/* $(LEVELS)
+
clean:
rm *.o
|