blob: 2d3f4a517c5d000805a2cff7523eabe8d91c0ca1 (
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
|
--- psys/src/Makefile.orig 2011-10-21 07:23:19.000000000 +0900
+++ psys/src/Makefile 2011-11-26 22:40:45.000000000 +0900
@@ -30,8 +30,8 @@
## to be made for different systems. Its a good idea to look over each
## block and make necessary changes before doing a "make install"
-LIBDIR = ../../lib
-BINDIR = ../../bin
+LIBDIR = ${PREFIX}/share/chipmunk
+BINDIR = ${PREFIX}/bin
LIB = ../libp2c.a
@@ -56,7 +56,7 @@
## For most versions of UNIX, one of the above directories
## will be the correct one to use on the line below:
-XINCLUDEDIR = .
+XINCLUDEDIR = ${LOCALBASE}/include
##
## (1) Choosing your compiler
@@ -105,7 +105,7 @@
LIBSTUFF = texstuff.ps untilstuff.ps plot.font
-CC = $(CHIPMUNKCC)
+CC ?= $(CHIPMUNKCC)
##
@@ -178,7 +178,7 @@
CHIPMUNKFLAGS =
-CFLAGS = $(CHIPMUNKFLAGS) $(FONTS) -I$(LOCINC) -I$(XINCLUDEDIR) -DCHIPLIB=\"`$(CD) $(LIBDIR); pwd`\"
+CFLAGS += -DBSD -DF_OK $(FONTS) -I$(LOCINC) -I$(XINCLUDEDIR) -DCHIPLIB=\"$(LIBDIR)\"
P2CFLAGS = -DLOCAL_INIT=_local_p2c_init
@@ -201,7 +201,7 @@
## to delete
-all: setup libp2c.a
+all: libp2c.a
setup:
-if [ ! -d $(LIBDIR) ] ; then mkdir $(LIBDIR) ; fi
|