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 libgpl.elf
: $(LIBOBJS
)
25 $(LD
) -shared
$(LDFLAGS
) -soname
$(patsubst %.elf
,%.c32
,$(@F
)) -o
$@
$^
28 find . \
( -name \
*.o
-o
-name .\
*.d
-o
-name \
*.tmp \
) -print0 | \
33 rm -f
*~ \
#* */*~ */\#*
35 # Mixing in the GPL include files is suboptimal, but I'm not sure
36 # there is a better way to do it.
38 mkdir
-m
755 -p
$(INSTALLROOT
)$(COM32DIR
)
39 install -m
644 libgpl.c32
$(INSTALLROOT
)$(COM32DIR
)
40 mkdir
-p
$(INSTALLROOT
)$(COM32DIR
)/include/
41 cp
-r ..
/gplinclude
$(INSTALLROOT
)$(COM32DIR
)/include/
43 -include .
*.d
*/.
*.d
*/*/.
*.d