Adding debian version 4.03+dfsg-7.
[syslinux-debian/hramrach.git] / com32 / lib / Makefile
blob2035df22976b72bbe2e0bd70de52bbbbf66cdf4f
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 \
15 getopt.o getopt_long.o \
16 lrand48.o malloc.o stack.o memccpy.o memchr.o memcmp.o \
17 memcpy.o mempcpy.o memmem.o memmove.o memset.o memswap.o \
18 exit.o onexit.o \
19 perror.o printf.o puts.o qsort.o realloc.o seed48.o snprintf.o \
20 sprintf.o srand48.o sscanf.o stack.o strcasecmp.o strcat.o \
21 strchr.o strcmp.o strcpy.o strdup.o strlen.o \
22 strerror.o strnlen.o \
23 strncasecmp.o strncat.o strncmp.o strncpy.o strndup.o \
24 stpcpy.o stpncpy.o \
25 strntoimax.o strntoumax.o strrchr.o strsep.o strspn.o strstr.o \
26 strtoimax.o strtok.o strtol.o strtoll.o strtoul.o strtoull.o \
27 strtoumax.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o \
28 asprintf.o vasprintf.o strlcpy.o strlcat.o \
29 vsscanf.o zalloc.o \
31 lmalloc.o lstrdup.o \
33 dprintf.o vdprintf.o \
35 sys/readdir.o getcwd.o chdir.o fdopendir.o \
37 libgcc/__ashldi3.o libgcc/__udivdi3.o \
38 libgcc/__negdi2.o libgcc/__ashrdi3.o libgcc/__lshrdi3.o \
39 libgcc/__muldi3.o libgcc/__udivmoddi4.o libgcc/__umoddi3.o \
40 libgcc/__divdi3.o libgcc/__moddi3.o \
42 sys/intcall.o sys/farcall.o sys/cfarcall.o sys/zeroregs.o \
43 sys/entry.o sys/exit.o sys/argv.o sys/times.o sys/sleep.o \
44 sys/fileinfo.o sys/opendev.o sys/read.o sys/write.o sys/ftell.o \
45 sys/close.o sys/open.o sys/fileread.o sys/fileclose.o \
46 sys/openmem.o \
47 sys/isatty.o sys/fstat.o \
49 sys/zfile.o sys/zfopen.o \
51 sys/openconsole.o sys/line_input.o \
52 sys/colortable.o sys/screensize.o \
54 sys/stdcon_read.o sys/stdcon_write.o sys/rawcon_read.o \
55 sys/rawcon_write.o sys/err_read.o sys/err_write.o \
56 sys/null_read.o sys/null_write.o sys/serial_write.o \
58 sys/xserial_write.o \
60 sys/ansi.o \
62 sys/libansi.o \
64 sys/gpxe.o \
66 sys/ansicon_write.o sys/ansiserial_write.o \
68 sys/vesacon_write.o sys/vesaserial_write.o \
69 sys/vesa/initvesa.o sys/vesa/drawtxt.o sys/vesa/background.o \
70 sys/vesa/alphatbl.o sys/vesa/screencpy.o sys/vesa/fmtpixel.o \
71 sys/vesa/i915resolution.o \
73 pci/cfgtype.o pci/scan.o pci/bios.o \
74 pci/readb.o pci/readw.o pci/readl.o \
75 pci/writeb.o pci/writew.o pci/writel.o \
77 zlib/adler32.o zlib/compress.o zlib/crc32.o \
78 zlib/uncompr.o zlib/deflate.o zlib/trees.o zlib/zutil.o \
79 zlib/inflate.o zlib/infback.o zlib/inftrees.o zlib/inffast.o \
81 libpng/png.o libpng/pngset.o libpng/pngget.o libpng/pngrutil.o \
82 libpng/pngtrans.o libpng/pngwutil.o libpng/pngread.o \
83 libpng/pngrio.o libpng/pngwio.o libpng/pngwrite.o \
84 libpng/pngrtran.o libpng/pngwtran.o libpng/pngmem.o \
85 libpng/pngerror.o libpng/pngpread.o \
87 jpeg/tinyjpeg.o jpeg/jidctflt.o jpeg/decode1.o jpeg/decode3.o \
88 jpeg/grey.o jpeg/yuv420p.o \
89 jpeg/rgb24.o jpeg/bgr24.o \
90 jpeg/rgba32.o jpeg/bgra32.o \
92 sys/x86_init_fpu.o math/pow.o math/strtod.o \
94 syslinux/idle.o syslinux/reboot.o \
95 syslinux/features.o syslinux/config.o syslinux/serial.o \
96 syslinux/ipappend.o syslinux/dsinfo.o syslinux/version.o \
97 syslinux/keyboard.o \
99 syslinux/memscan.o \
101 syslinux/addlist.o syslinux/freelist.o syslinux/memmap.o \
102 syslinux/movebits.o syslinux/shuffle.o syslinux/shuffle_pm.o \
103 syslinux/shuffle_rm.o syslinux/zonelist.o \
104 syslinux/dump_mmap.o syslinux/dump_movelist.o \
106 syslinux/run_default.o syslinux/run_command.o \
107 syslinux/cleanup.o syslinux/localboot.o syslinux/runimage.o \
109 syslinux/loadfile.o syslinux/floadfile.o syslinux/zloadfile.o \
111 syslinux/load_linux.o syslinux/initramfs.o \
112 syslinux/initramfs_file.o syslinux/initramfs_loadfile.o \
113 syslinux/initramfs_archive.o \
115 syslinux/pxe_get_cached.o syslinux/pxe_get_nic.o \
116 syslinux/pxe_dns.o \
118 syslinux/adv.o syslinux/advwrite.o syslinux/getadv.o \
119 syslinux/setadv.o \
121 syslinux/video/fontquery.o syslinux/video/forcetext.o \
122 syslinux/video/reportmode.o
124 # These are the objects which are also imported into the core
125 LIBCOREOBJS = \
126 memcpy.o mempcpy.o memset.o memcmp.o memmove.o \
127 strlen.o stpcpy.o strcpy.o strcmp.o strlcpy.o strlcat.o \
128 strchr.o strncmp.o strncpy.o \
130 snprintf.o sprintf.o vsnprintf.o \
132 dprintf.o vdprintf.o \
134 zalloc.o strdup.o \
136 sys/intcall.o sys/farcall.o sys/cfarcall.o sys/zeroregs.o \
138 libgcc/__ashldi3.o libgcc/__udivdi3.o \
139 libgcc/__negdi2.o libgcc/__ashrdi3.o libgcc/__lshrdi3.o \
140 libgcc/__muldi3.o libgcc/__udivmoddi4.o libgcc/__umoddi3.o \
141 libgcc/__divdi3.o libgcc/__moddi3.o
143 BINDIR = /usr/bin
144 LIBDIR = /usr/lib
145 DATADIR = /usr/share
146 AUXDIR = $(DATADIR)/syslinux
147 INCDIR = /usr/include
148 COM32DIR = $(AUXDIR)/com32
150 all: libcom32.a libcomcore.a
152 libcom32.a : $(LIBOBJS)
153 rm -f $@
154 $(AR) cq $@ $^
155 $(RANLIB) $@
157 libcomcore.a : $(LIBCOREOBJS)
158 rm -f $@
159 $(AR) cq $@ $^
160 $(RANLIB) $@
162 tidy dist clean:
163 rm -f sys/vesa/alphatbl.c
164 find . \( -name \*.o -o -name \*.a -o -name .\*.d -o -name \*.tmp \) -print0 | \
165 xargs -0r rm -f
167 spotless: clean
168 rm -f *.a
169 rm -f *~ \#* */*~ */\#*
171 install: all
172 mkdir -m 755 -p $(INSTALLROOT)$(COM32DIR)
173 install -m 644 libcom32.a com32.ld $(INSTALLROOT)$(COM32DIR)
174 -rm -rf $(INSTALLROOT)$(COM32DIR)/include
175 cp -r ../include $(INSTALLROOT)$(COM32DIR)
177 # These files are performance critical, and doesn't compile well with -Os
178 sys/vesa/drawtxt.o: sys/vesa/drawtxt.c
179 $(CC) $(MAKEDEPS) $(CFLAGS) -O3 -c -o $@ $<
181 sys/vesa/alphatbl.c: sys/vesa/alphatbl.pl
182 $(PERL) $< > $@
184 jpeg/jidctflt.o: jpeg/jidctflt.c
185 $(CC) $(MAKEDEPS) $(CFLAGS) -O3 -c -o $@ $<
187 -include .*.d */.*.d */*/.*.d