summaryrefslogtreecommitdiff
path: root/lang/caml-light/files/patch-contrib_libunix_Makefile
blob: 3c7e7cc05b8289889c0d28afcedf76275064fe00 (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
--- ./contrib/libunix/Makefile--	Thu Dec 24 00:36:54 1998
+++ ./contrib/libunix/Makefile	Sun Aug  6 11:42:16 2006
@@ -3,7 +3,7 @@
 # These options are overriden when called from ../Makefile
 CC=cc
 OPTS=
-LIBDIR=/usr/local/lib/caml-light
+LIBDIR=${PREFIX}/lib/caml-light
 
 # Test to see whether ranlib exists on the machine
 RANLIBTEST=test -f /usr/bin/ranlib -o -f /bin/ranlib
@@ -12,11 +12,11 @@
 RANLIB=ranlib
 
 # Compilation options
-CFLAGS=-I../../src/runtime -O $(OPTS)
-CAMLC=camlc
+CFLAGS+=-I../../src/runtime $(OPTS)
+CAMLC=${PREFIX}/bin/camlc
 CAMLCOMP=$(CAMLC) -c
 COMPFLAGS=-W
-CAMLMKTOP=camlmktop
+CAMLMKTOP=${PREFIX}/bin/camlmktop
 
 OBJS=accept.o access.o addrofstr.o alarm.o bind.o chdir.o chmod.o \
   chown.o chroot.o close.o closedir.o connect.o cst2constr.o cstringv.o \
@@ -51,10 +51,10 @@
 	rm -f libunix.a *.o *.zi *.zo lint-blurb camlunix
 
 install:
-	cp libunix.a $(LIBDIR)/libunix.a
+	${BSD_INSTALL_DATA} libunix.a $(LIBDIR)
 	if $(RANLIBTEST); then cd $(LIBDIR); $(RANLIB) libunix.a; else true; fi
-	cp $(INTF) $(IMPL) $(LIBDIR)
-	cp camlunix $(LIBDIR)
+	${BSD_INSTALL_DATA} $(INTF) $(IMPL) $(LIBDIR)
+	${BSD_INSTALL_SCRIPT} camlunix $(LIBDIR)
 
 .SUFFIXES: .ml .mli .zo .zi