--- ./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
syntax highlighted by Code2HTML, v. 0.9.1