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
|
--- until/V1.2/Makefile.orig Sat May 18 12:02:28 2002
+++ until/V1.2/Makefile Sat May 18 12:57:40 2002
@@ -41,7 +41,7 @@
##
-XINCLUDEDIR = .
+XINCLUDEDIR = ${LOCALBASE}/include
##
## If X isn't in the library path (the case for many MachTen and Linux
@@ -57,7 +57,7 @@
##
-LIBX11 = -lX11
+LIBX11 = -lX11 -L${LOCALBASE}/lib
LIBP2C = ../../psys/src/libp2c.a
@@ -68,7 +68,7 @@
##
## on some systems, -ldl must be added to the following line
-OTHERLIBS= -lm
+OTHERLIBS= -lm -lcompat
##
## (2) Choosing your compiler
@@ -98,10 +98,10 @@
CHIPMUNKCC = gcc
-CC = $(CHIPMUNKCC)
+CC ?= $(CHIPMUNKCC)
-BINDIR = ../../bin
-LIBDIR = `pwd`/../../lib
+BINDIR = ${PREFIX}/bin
+LIBDIR = ${PREFIX}/share/chipmunk
SYSRC = $(LIBDIR)/system.untilrc
SYSPS = $(LIBDIR)/pensps.map
@@ -165,7 +165,7 @@
CHIPMUNKFLAGS =
-CFLAGS = $(CHIPMUNKFLAGS) -I$(LOCINC) -I$(XINCLUDEDIR) \
+CFLAGS += -DBSD -I$(LOCINC) -I$(XINCLUDEDIR) \
-DF_OK=0 -DUNTILRC=\"$(SYSRC)\" -DUNTILPSMAP=\"$(SYSPS)\" \
-DUNTILHEADER=\"$(SYSHD)\"
@@ -199,11 +199,11 @@
## Until as its moved to bin; non ksh-users may wish to change it back.
install: until
- cp until $(BINDIR)/Until
- cp pensps.map $(LIBDIR)/pensps.map
- cp system.untilrc $(LIBDIR)/system.untilrc
- cp until.pro $(LIBDIR)/until.pro
- cp until.ps $(LIBDIR)/until.ps
+ ${BSD_INSTALL_PROGRAM} until $(BINDIR)/Until
+ ${BSD_INSTALL_DATA} pensps.map $(LIBDIR)/pensps.map
+ ${BSD_INSTALL_DATA} system.untilrc $(LIBDIR)/system.untilrc
+ ${BSD_INSTALL_DATA} until.pro $(LIBDIR)/until.pro
+ ${BSD_INSTALL_DATA} until.ps $(LIBDIR)/until.ps
bb_stuff.o : bb_stuff.c bb_stuff.h
|