2 # LGPL/GPL code library
5 # Include configuration rules
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
)))
18 AUXDIR
= $(DATADIR
)/syslinux
20 COM32DIR
= $(AUXDIR
)/com32
24 libcom32gpl.a
: $(LIBOBJS
)
30 find . \
( -name \
*.o
-o
-name \
*.a
-o
-name .\
*.d
-o
-name \
*.tmp \
) -print0 | \
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.
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