Make it possible (but optional) to install the library.
authorhpa <hpa>
Thu, 30 Jan 2003 20:53:44 +0000 (20:53 +0000)
committerhpa <hpa>
Thu, 30 Jan 2003 20:53:44 +0000 (20:53 +0000)
Makefile
NEWS

index e04f219..04bc17d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,9 @@ RANLIB   = ranlib
 NASM    = nasm -O99
 NINCLUDE = 
 BINDIR   = /usr/bin
-LIBDIR   = /usr/lib/syslinux
+LIBDIR   = /usr/lib
+AUXDIR   = $(LIBDIR)/syslinux
+INCDIR   = /usr/include
 
 PERL     = perl
 
@@ -55,8 +57,12 @@ OBSOLETE = pxelinux.bin
 # Things to install in /usr/bin
 INSTALL_BIN   =        syslinux gethostip ppmtolss16 lss16toppm
 # Things to install in /usr/lib/syslinux
-INSTALL_LIB   =        pxelinux.0 isolinux.bin isolinux-debug.bin \
+INSTALL_AUX   =        pxelinux.0 isolinux.bin isolinux-debug.bin \
                syslinux.com copybs.com memdisk/memdisk
+# Things to install in /usr/lib
+INSTALL_LIB   = libsyslinux.a
+# Things to install in /usr/include
+INSTALL_INC   = syslinux.h
 
 # The DATE is set on the make command line when building binaries for
 # official release.  Otherwise, substitute a hex string that is pretty much
@@ -154,9 +160,16 @@ mkdiskimage: mkdiskimage.in mbr.bin bin2hex.pl
        chmod a+x $@
 
 install: installer
-       mkdir -m 755 -p $(INSTALLROOT)$(BINDIR) $(INSTALLROOT)$(LIBDIR)
+       mkdir -m 755 -p $(INSTALLROOT)$(BINDIR) $(INSTALLROOT)$(AUXDIR)
        install -m 755 -c $(INSTALL_BIN) $(INSTALLROOT)$(BINDIR)
+       install -m 644 -c $(INSTALL_AUX) $(INSTALLROOT)$(AUXDIR)
+
+install-lib: installer
+       mkdir -m 755 -p $(INSTALLROOT)$(LIBDIR) $(INSTALLDIR)$(INCDIR)
        install -m 644 -c $(INSTALL_LIB) $(INSTALLROOT)$(LIBDIR)
+       install -m 644 -c $(INSTALL_INC) $(INSTALLROOT)$(INCDIR)
+
+install-all: install install-all
 
 local-tidy:
        rm -f *.o *_bin.c stupid.* patch.offset
diff --git a/NEWS b/NEWS
index 1fa75bb..f57b8c9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -15,7 +15,8 @@ Changes in 2.01:
        * PXELINUX, ISOLINUX: Fix some COMBOOT API calls.
        * PXELINUX: Doc fix.
        * Build SYSLINUX into a small library for encapsulation into
-         other programs.
+         other programs (however, please keep in mind this is a GPL'd
+         library.)
        * SYSLINUX: Make installer work with "owner" in /etc/fstab.
        * SYSLINUX: Fix issue with working on nonpartitioned hard disk
          devices.  THIS CONFIGURATION IS NOT RECOMMENDED.