2 # LGPL/GPL code library
5 # Include configuration rules
9 REQFLAGS
+= -I..
/gplinclude
11 GPLDIRS
:= . disk dmi vpd
12 LIBOBJS
:= $(foreach dir,$(GPLDIRS
),$(patsubst %.c
,%.o
,$(wildcard $(dir)/*.c
)))
17 AUXDIR
= $(DATADIR
)/syslinux
19 COM32DIR
= $(AUXDIR
)/com32
23 libcom32gpl.a
: $(LIBOBJS
)
29 find . \
( -name \
*.o
-o
-name \
*.a
-o
-name .\
*.d
-o
-name \
*.tmp \
) -print0 | \
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.
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