2 # ONLY INCLUDE MIT OR 2/3-BSD-LICENSED CODE IN THIS LIBRARY
5 # Include configuration rules
8 include $(MAKEDIR
)/lib.mk
10 ## OPTIONAL OBJECTS, AVAILABLE AS DYNAMIC LINKED MODULES
11 # PNG library object files
13 libpng
/png.o libpng
/pngset.o libpng
/pngget.o libpng
/pngrutil.o \
14 libpng
/pngtrans.o libpng
/pngwutil.o libpng
/pngread.o \
15 libpng
/pngrio.o libpng
/pngwio.o libpng
/pngwrite.o \
16 libpng
/pngrtran.o libpng
/pngwtran.o libpng
/pngmem.o \
17 libpng
/pngerror.o libpng
/pngpread.o
19 # JPG library object files
21 jpeg
/tinyjpeg.o jpeg
/jidctflt.o jpeg
/decode1.o jpeg
/decode3.o \
22 jpeg
/rgb24.o jpeg
/bgr24.o jpeg
/yuv420p.o jpeg
/grey.o \
23 jpeg
/rgba32.o jpeg
/bgra32.o
28 I915VESA_OBJ
= sys
/vesa
/i915resolution.o
32 sys
/vesacon_write.o sys
/vesaserial_write.o \
33 sys
/vesa
/initvesa.o sys
/vesa
/drawtxt.o sys
/vesa
/background.o \
34 sys
/vesa
/alphatbl.o sys
/vesa
/screencpy.o sys
/vesa
/fmtpixel.o \
38 sys
/libansi.o sys
/gpxe.o
41 pci
/cfgtype.o pci
/scan.o pci
/bios.o \
42 pci
/readb.o pci
/readw.o pci
/readl.o \
43 pci
/writeb.o pci
/writew.o pci
/writel.o
46 syslinux
/reboot.o syslinux
/keyboard.o \
48 syslinux
/pxe_get_cached.o syslinux
/pxe_get_nic.o \
50 syslinux
/video
/fontquery.o syslinux
/video
/reportmode.o
53 atexit.o onexit.o abort.o
77 LIBOBJS
= $(DYNLIBOBJS
)
82 AUXDIR
= $(DATADIR
)/syslinux
84 COM32DIR
= $(AUXDIR
)/com32
86 all: makeoutputdirs libcom32.c32 libcom32min.a libcom32core.a
89 @mkdir
-p
$(foreach b
, \
90 $(addprefix $(OBJ
)/,$(sort $(dir $(LIBOBJS
) $(MINLIBOBJS
) $(CORELIBOBJS
)))),$(b
))
92 libcom32.elf
: $(LIBOBJS
)
94 $(LD
) -shared
$(LDFLAGS
) -soname
$(patsubst %.elf
,%.c32
,$(@F
)) -o
$@
$^
96 libcom32min.a
: $(MINLIBOBJS
)
101 libcom32core.a
: $(CORELIBOBJS
)
107 rm -f sys
/vesa
/alphatbl.c errlist.c
108 find . \
( -name \
*.o
-o
-name \
*.a
-o
-name .\
*.d
-o
-name \
*.tmp \
) -print0 | \
113 rm -f
*~ \
#* */*~ */\#*
116 mkdir
-m
755 -p
$(INSTALLROOT
)$(COM32DIR
)
117 install -m
644 $(SRC
)/com32.
ld $(INSTALLROOT
)$(COM32DIR
)
118 -rm -rf
$(INSTALLROOT
)$(COM32DIR
)/include
119 cp
-r
$(SRC
)/..
/include $(INSTALLROOT
)$(COM32DIR
)
121 errlist.c
: makeerrlist.pl
$(SRC
)/..
/include/errno.h
122 $(PERL
) $< $(CFLAGS
) -errlist
> $@ ||
rm -f
$@
124 # These files are performance critical, and doesn't compile well with -Os
125 sys
/vesa
/drawtxt.o
: sys
/vesa
/drawtxt.c
126 $(CC
) $(MAKEDEPS
) $(CFLAGS
) -O3
-c
-o
$@
$<
128 sys
/vesa
/alphatbl.c
: sys
/vesa
/alphatbl.pl
131 jpeg
/jidctflt.o
: jpeg
/jidctflt.c
132 $(CC
) $(MAKEDEPS
) $(CFLAGS
) -O3
-c
-o
$@
$<
134 -include .
*.d
*/.
*.d
*/*/.
*.d