Adding upstream version 3.86+dfsg.
[syslinux-debian/hramrach.git] / com32 / gpllib / Makefile
blobfa866dbac6bc0c7e9b9ddbc3d61d3b01b6ecf308
2 # LGPL/GPL code library
5 # Include configuration rules
6 topdir = ../..
7 include ../lib/MCONFIG
9 REQFLAGS += -I../gplinclude
11 GPLDIRS := . disk dmi vpd
12 LIBOBJS := $(foreach dir,$(GPLDIRS),$(patsubst %.c,%.o,$(wildcard $(dir)/*.c)))
14 BINDIR = /usr/bin
15 LIBDIR = /usr/lib
16 DATADIR = /usr/share
17 AUXDIR = $(DATADIR)/syslinux
18 INCDIR = /usr/include
19 COM32DIR = $(AUXDIR)/com32
21 all: libcom32gpl.a
23 libcom32gpl.a : $(LIBOBJS)
24 rm -f $@
25 $(AR) cq $@ $^
26 $(RANLIB) $@
28 tidy dist clean:
29 find . \( -name \*.o -o -name \*.a -o -name .\*.d -o -name \*.tmp \) -print0 | \
30 xargs -0r rm -f
32 spotless: clean
33 rm -f *.a
34 rm -f *~ \#* */*~ */\#*
36 # Mixing in the GPL include files is suboptimal, but I'm not sure
37 # there is a better way to do it.
38 install: all
39 mkdir -m 755 -p $(INSTALLROOT)$(COM32DIR)
40 install -m 644 libcom32gpl.a $(INSTALLROOT)$(COM32DIR)
41 mkdir -p $(INSTALLROOT)$(COM32DIR)/include/
42 cp -r ../gplinclude $(INSTALLROOT)$(COM32DIR)/include/
44 -include .*.d */.*.d */*/.*.d