summaryrefslogtreecommitdiff
path: root/com32/gpllib
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-03-12 11:39:57 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-03-12 11:39:57 -0700
commit30e642826f25c07ae13138c0dabee1287f4c52c3 (patch)
tree9052f2c1031cc7015d06cec58cab0ec7c3ebc656 /com32/gpllib
parent4a0ddf7d4f453f677224ba712e775fa3e6e00513 (diff)
downloadsyslinux-30e642826f25c07ae13138c0dabee1287f4c52c3.tar.gz
Add gpllib, gplinclude
Add separate gpllib and gplinclude directories, and have a NOGPL variable in MCONFIG that can be set to exclude these directories.
Diffstat (limited to 'com32/gpllib')
-rw-r--r--com32/gpllib/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/com32/gpllib/Makefile b/com32/gpllib/Makefile
new file mode 100644
index 00000000..dd77d394
--- /dev/null
+++ b/com32/gpllib/Makefile
@@ -0,0 +1,40 @@
+#
+# LGPL/GPL code library
+#
+
+# Include configuration rules
+include ../lib/MCONFIG
+
+LIBOBJS =
+
+BINDIR = /usr/bin
+LIBDIR = /usr/lib
+DATADIR = /usr/share
+AUXDIR = $(DATADIR)/syslinux
+INCDIR = /usr/include
+COM32DIR = $(AUXDIR)/com32
+
+all: libcom32gpl.a
+
+libcom32gpl.a : $(LIBOBJS)
+ rm -f $@
+ $(AR) cq $@ $^
+ $(RANLIB) $@
+
+tidy dist clean:
+ find . \( -name \*.o -o -name \*.a -o -name .\*.d -o -name \*.tmp \) -print0 | \
+ xargs -0r rm -f
+
+spotless: clean
+ rm -f *.a
+ rm -f *~ \#* */*~ */\#*
+
+# Mixing in the GPL include files is suboptimal, but I'm not sure
+# there is a better way to do it.
+install: all
+ mkdir -m 755 -p $(INSTALLROOT)$(COM32DIR)
+ install -m 644 libcom32gpl.a $(INSTALLROOT)$(COM32DIR)
+ mkdir -p $(INSTALLROOT)$(COM32DIR)/include/
+ cp -r ../gplinclude $(INSTALLROOT)$(COM32DIR)/include/
+
+-include .*.d */.*.d */*/.*.d