Adding upstream version 3.86+dfsg.
[syslinux-debian/hramrach.git] / com32 / lib / Makefile
blob250c39622a30bb94daaf3b34ff7527f1ca5f29a7
2 # ONLY INCLUDE MIT OR 2/3-BSD-LICENSED CODE IN THIS LIBRARY
5 # Include configuration rules
6 NOGPL := 1
7 topdir = ../..
8 include MCONFIG
10 LIBOBJS = \
11 abort.o atexit.o atoi.o atol.o atoll.o calloc.o creat.o \
12 ctypes.o errno.o fgetc.o fgets.o fopen.o fprintf.o fputc.o \
13 fclose.o putchar.o setjmp.o \
14 fputs.o fread2.o fread.o free.o fwrite2.o fwrite.o getopt.o \
15 lrand48.o malloc.o stack.o memccpy.o memchr.o memcmp.o \
16 memcpy.o mempcpy.o memmem.o memmove.o memset.o memswap.o \
17 exit.o onexit.o \
18 perror.o printf.o puts.o qsort.o realloc.o seed48.o snprintf.o \
19 sprintf.o srand48.o sscanf.o stack.o strcasecmp.o strcat.o \
20 strchr.o strcmp.o strcpy.o strpcpy.o strdup.o strlen.o \
21 strerror.o strnlen.o \
22 strncasecmp.o strncat.o strncmp.o strncpy.o strndup.o \
23 stpcpy.o stpncpy.o \
24 strntoimax.o strntoumax.o strrchr.o strsep.o strspn.o strstr.o \
25 strtoimax.o strtok.o strtol.o strtoll.o strtoul.o strtoull.o \
26 strtoumax.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o \
27 asprintf.o vasprintf.o strlcpy.o strlcat.o \
28 vsscanf.o zalloc.o \
30 dprintf.o vdprintf.o \
32 opendir.o readdir.o closedir.o getcwd.o chdir.o fdopendir.o \
34 libgcc/__ashldi3.o libgcc/__udivdi3.o \
35 libgcc/__negdi2.o libgcc/__ashrdi3.o libgcc/__lshrdi3.o \
36 libgcc/__muldi3.o libgcc/__udivmoddi4.o libgcc/__umoddi3.o \
37 libgcc/__divdi3.o libgcc/__moddi3.o \
39 sys/intcall.o sys/farcall.o sys/cfarcall.o sys/zeroregs.o \
40 sys/entry.o sys/exit.o sys/argv.o sys/times.o \
41 sys/fileinfo.o sys/opendev.o sys/read.o sys/write.o sys/ftell.o \
42 sys/close.o sys/open.o sys/fileread.o sys/fileclose.o \
43 sys/isatty.o sys/fstat.o \
45 sys/zfile.o sys/zfopen.o \
47 sys/openconsole.o sys/line_input.o \
48 sys/colortable.o sys/screensize.o \
50 sys/stdcon_read.o sys/stdcon_write.o sys/rawcon_read.o \
51 sys/rawcon_write.o sys/err_read.o sys/err_write.o \
52 sys/null_read.o sys/null_write.o sys/serial_write.o \
54 sys/xserial_write.o \
56 sys/ansi.o \
58 sys/libansi.o \
60 sys/gpxe.o \
62 sys/ansicon_write.o sys/ansiserial_write.o \
64 sys/vesacon_write.o sys/vesaserial_write.o \
65 sys/vesa/initvesa.o sys/vesa/drawtxt.o sys/vesa/background.o \
66 sys/vesa/alphatbl.o sys/vesa/screencpy.o sys/vesa/fmtpixel.o \
67 sys/vesa/i915resolution.o \
69 pci/cfgtype.o pci/scan.o pci/bios.o \
70 pci/readb.o pci/readw.o pci/readl.o \
71 pci/writeb.o pci/writew.o pci/writel.o \
73 zlib/adler32.o zlib/compress.o zlib/crc32.o \
74 zlib/uncompr.o zlib/deflate.o zlib/trees.o zlib/zutil.o \
75 zlib/inflate.o zlib/infback.o zlib/inftrees.o zlib/inffast.o \
77 libpng/png.o libpng/pngset.o libpng/pngget.o libpng/pngrutil.o \
78 libpng/pngtrans.o libpng/pngwutil.o libpng/pngread.o \
79 libpng/pngrio.o libpng/pngwio.o libpng/pngwrite.o \
80 libpng/pngrtran.o libpng/pngwtran.o libpng/pngmem.o \
81 libpng/pngerror.o libpng/pngpread.o \
83 jpeg/tinyjpeg.o jpeg/jidctflt.o jpeg/decode1.o jpeg/decode3.o \
84 jpeg/grey.o jpeg/yuv420p.o \
85 jpeg/rgb24.o jpeg/bgr24.o \
86 jpeg/rgba32.o jpeg/bgra32.o \
88 sys/x86_init_fpu.o math/pow.o math/strtod.o \
90 syslinux/idle.o syslinux/reboot.o \
91 syslinux/features.o syslinux/config.o syslinux/serial.o \
92 syslinux/ipappend.o syslinux/dsinfo.o syslinux/version.o \
93 syslinux/keyboard.o \
95 syslinux/memscan.o \
97 syslinux/addlist.o syslinux/freelist.o syslinux/memmap.o \
98 syslinux/movebits.o syslinux/shuffle.o syslinux/shuffle_pm.o \
99 syslinux/shuffle_rm.o syslinux/zonelist.o \
100 syslinux/dump_mmap.o syslinux/dump_movelist.o \
102 syslinux/run_default.o syslinux/run_command.o \
103 syslinux/cleanup.o syslinux/localboot.o syslinux/runimage.o \
105 syslinux/loadfile.o syslinux/floadfile.o syslinux/zloadfile.o \
107 syslinux/load_linux.o syslinux/initramfs.o \
108 syslinux/initramfs_file.o syslinux/initramfs_loadfile.o \
109 syslinux/initramfs_archive.o \
111 syslinux/pxe_get_cached.o syslinux/pxe_get_nic.o \
112 syslinux/pxe_dns.o \
114 syslinux/adv.o syslinux/advwrite.o syslinux/getadv.o \
115 syslinux/setadv.o \
117 syslinux/video/fontquery.o syslinux/video/forcetext.o \
118 syslinux/video/reportmode.o
120 BINDIR = /usr/bin
121 LIBDIR = /usr/lib
122 DATADIR = /usr/share
123 AUXDIR = $(DATADIR)/syslinux
124 INCDIR = /usr/include
125 COM32DIR = $(AUXDIR)/com32
127 all: libcom32.a
129 libcom32.a : $(LIBOBJS)
130 rm -f $@
131 $(AR) cq $@ $^
132 $(RANLIB) $@
134 tidy dist clean:
135 rm -f sys/vesa/alphatbl.c
136 find . \( -name \*.o -o -name \*.a -o -name .\*.d -o -name \*.tmp \) -print0 | \
137 xargs -0r rm -f
139 spotless: clean
140 rm -f *.a
141 rm -f *~ \#* */*~ */\#*
143 install: all
144 mkdir -m 755 -p $(INSTALLROOT)$(COM32DIR)
145 install -m 644 libcom32.a com32.ld $(INSTALLROOT)$(COM32DIR)
146 -rm -rf $(INSTALLROOT)$(COM32DIR)/include
147 cp -r ../include $(INSTALLROOT)$(COM32DIR)
149 # These files are performance critical, and doesn't compile well with -Os
150 sys/vesa/drawtxt.o: sys/vesa/drawtxt.c
151 $(CC) $(MAKEDEPS) $(CFLAGS) -O3 -c -o $@ $<
153 sys/vesa/alphatbl.c: sys/vesa/alphatbl.pl
154 $(PERL) $< > $@
156 jpeg/jidctflt.o: jpeg/jidctflt.c
157 $(CC) $(MAKEDEPS) $(CFLAGS) -O3 -c -o $@ $<
159 -include .*.d */.*.d */*/.*.d