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