blob: a1e19ae37fcf73ca3c52a3923b3fec3b9bfd5ec6 (
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
|
$NetBSD: patch-aa,v 1.2 2004/03/20 22:35:04 bouyer Exp $
--- Makefile.orig 1997-04-24 16:51:03.000000000 +0200
+++ Makefile 2004-03-08 01:07:53.010550000 +0100
@@ -7,7 +7,7 @@
# Additional options to $(CC).
# If you are using gcc, add -fno-defer-pop.
# This option circumvents a gcc bug on some platforms (680x0, 80386).
-OPTS=-fno-defer-pop
+OPTS= -Dunix -fno-defer-pop
# Extra libraries that have to be linked with the runtime system.
# The math library "-lm" is linked by default.
@@ -24,19 +24,19 @@
# not all Unix C preprocessors define it.
# If your cpp is too fussy, make tools/clprepro and use this:
# CPP=../../src/tools/clprepro -Dunix
-CPP=/lib/cpp -P -Dunix
+CPP=cpp -P -C -Dunix
# The directory where public executables will be installed
-BINDIR=/usr/local/bin
+BINDIR=${PREFIX}/bin
# The directory where the Caml Light standard library will be installed
-LIBDIR=/usr/local/lib/caml-light
+LIBDIR=${PREFIX}/lib/caml-light
# The manual section where the manual pages will be installed
MANEXT=1
# The directory where the manual pages will be installed
-MANDIR=/usr/local/man/man$(MANEXT)
+MANDIR=${PREFIX}/man/man$(MANEXT)
# Some "make"s need this to ensure that they call the Bourne shell,
# not the C shell. Seems harmless on most other "make"s.
@@ -49,7 +49,7 @@
# Configure the system
configure:
- cd ../config; sh autoconf "$(CC) $(OPTS) $(LIBS)"
+ cd ../config; sh ./autoconf "$(CC) $(OPTS) $(LIBS)"
# Build the system for the first time
world:
|