--- src/Makefile.orig Wed Mar 3 16:25:57 1999 +++ src/Makefile Sat Aug 5 09:56:37 2006 @@ -2,14 +2,14 @@ # Which C compiler to use. # Performance is often improved if you use gcc 2.x instead of cc. -CC=gcc +#CC=gcc # Additional options to $(CC). # If you are using gcc, add -fno-defer-pop. # This option circumvents a gcc bug on some platforms (680x0, 80386). # If you are using Linux with libc6 (RedHat 5, Debian 2), add -D__FAVOR_BSD # This option avoids signal-related problems. -OPTS=-fno-defer-pop -D__FAVOR_BSD +OPTS=-fno-defer-pop -D__FAVOR_BSD ${CFLAGS} # Extra libraries that have to be linked with the runtime system. # The math library "-lm" is linked by default. @@ -26,19 +26,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 -traditional -Dunix +CPP=/usr/bin/cpp -P -traditional -Dunix ${CPPFLAGS} # 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. @@ -120,8 +120,8 @@ # Install the Caml Light system install: - if test -d $(BINDIR); then : ; else mkdir $(BINDIR); fi - if test -d $(LIBDIR); then : ; else mkdir $(LIBDIR); fi + if test -d $(BINDIR); then : ; else mkdir -p $(BINDIR); fi + if test -d $(LIBDIR); then : ; else mkdir -p $(LIBDIR); fi cd runtime; make BINDIR=$(BINDIR) LIBDIR=$(LIBDIR) install cd launch; make BINDIR=$(BINDIR) LIBDIR=$(LIBDIR) install cd lib; make BINDIR=$(BINDIR) LIBDIR=$(LIBDIR) install