Adding upstream version 3.61.
[syslinux-debian/hramrach.git] / com32 / lib / Makefile
blob6540f9fe17739defbb95e7ee8bbcebc7fe6cfd7e
1 # Include configuration rules
2 include MCONFIG
4 LIBOBJS = \
5 abort.o atexit.o atoi.o atol.o atoll.o calloc.o creat.o \
6 ctypes.o errno.o fgetc.o fgets.o fopen.o fprintf.o fputc.o \
7 putchar.o setjmp.o \
8 fputs.o fread2.o fread.o free.o fwrite2.o fwrite.o getopt.o \
9 lrand48.o malloc.o stack.o memccpy.o memchr.o memcmp.o \
10 memcpy.o mempcpy.o memmem.o memmove.o memset.o memswap.o \
11 exit.o onexit.o \
12 perror.o printf.o puts.o qsort.o realloc.o seed48.o snprintf.o \
13 sprintf.o srand48.o sscanf.o stack.o strcasecmp.o strcat.o \
14 strchr.o strcmp.o strcpy.o strdup.o strerror.o strlen.o \
15 strncasecmp.o strncat.o strncmp.o strncpy.o stpncpy.o strndup.o \
16 strntoimax.o strntoumax.o strrchr.o strsep.o strspn.o strstr.o \
17 strtoimax.o strtok.o strtol.o strtoll.o strtoul.o strtoull.o \
18 strtoumax.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o \
19 asprintf.o vasprintf.o strlcpy.o strlcat.o \
20 vsscanf.o \
22 libgcc/__ashldi3.o libgcc/__udivdi3.o \
23 libgcc/__negdi2.o libgcc/__ashrdi3.o libgcc/__lshrdi3.o \
24 libgcc/__muldi3.o libgcc/__udivmoddi4.o libgcc/__umoddi3.o \
25 libgcc/__divdi3.o libgcc/__moddi3.o \
27 sys/intcall.o sys/farcall.o sys/cfarcall.o sys/zeroregs.o \
28 sys/entry.o sys/exit.o sys/argv.o sys/times.o \
29 sys/fileinfo.o sys/opendev.o sys/read.o sys/write.o sys/ftell.o \
30 sys/close.o sys/open.o sys/fileread.o sys/fileclose.o \
31 sys/isatty.o sys/fstat.o sys/openconsole.o sys/line_input.o \
32 sys/colortable.o sys/screensize.o \
34 sys/stdcon_read.o sys/stdcon_write.o sys/rawcon_read.o \
35 sys/rawcon_write.o sys/err_read.o sys/err_write.o \
36 sys/null_read.o sys/null_write.o sys/serial_write.o \
38 sys/xserial_write.o \
40 sys/ansi.o \
42 sys/ansicon_write.o sys/ansiserial_write.o \
44 sys/vesacon_write.o sys/vesaserial_write.o \
45 sys/vesa/initvesa.o sys/vesa/drawtxt.o sys/vesa/background.o \
46 sys/vesa/alphatbl.o \
48 pci/cfgtype.o pci/scan.o \
49 pci/readb.o pci/readw.o pci/readl.o pci/readbios.o \
50 pci/writeb.o pci/writew.o pci/writel.o pci/writebios.o \
52 zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/gzio.o \
53 zlib/uncompr.o zlib/deflate.o zlib/trees.o zlib/zutil.o \
54 zlib/inflate.o zlib/infback.o zlib/inftrees.o zlib/inffast.o \
56 libpng/png.o libpng/pngset.o libpng/pngget.o libpng/pngrutil.o \
57 libpng/pngtrans.o libpng/pngwutil.o libpng/pngread.o \
58 libpng/pngrio.o libpng/pngwio.o libpng/pngwrite.o \
59 libpng/pngrtran.o libpng/pngwtran.o libpng/pngmem.o \
60 libpng/pngerror.o libpng/pngpread.o \
62 jpeg/tinyjpeg.o jpeg/jidctflt.o jpeg/decode1.o jpeg/decode3.o \
63 jpeg/rgb24.o jpeg/bgr24.o jpeg/yuv420p.o jpeg/grey.o \
64 jpeg/rgba32.o jpeg/bgra32.o \
66 sys/x86_init_fpu.o math/pow.o math/strtod.o \
68 syslinux/idle.o syslinux/reboot.o \
69 syslinux/features.o syslinux/config.o syslinux/serial.o \
71 syslinux/addlist.o syslinux/freelist.o syslinux/memmap.o \
72 syslinux/movebits.o syslinux/shuffle.o syslinux/shuffle_pm.o \
73 syslinux/shuffle_rm.o syslinux/zonelist.o \
74 syslinux/dump_mmap.o syslinux/dump_movelist.o \
76 syslinux/run_default.o syslinux/run_command.o \
77 syslinux/cleanup.o syslinux/localboot.o syslinux/runimage.o \
79 syslinux/loadfile.o \
80 syslinux/load_linux.o syslinux/initramfs.o \
81 syslinux/initramfs_file.o syslinux/initramfs_loadfile.o \
82 syslinux/initramfs_archive.o \
84 syslinux/pxe_get_cached.o \
86 syslinux/adv.o syslinux/advwrite.o syslinux/getadv.o \
87 syslinux/setadv.o
89 BINDIR = /usr/bin
90 LIBDIR = /usr/lib
91 AUXDIR = $(LIBDIR)/syslinux
92 INCDIR = /usr/include
93 COM32DIR = $(AUXDIR)/com32
95 all: libcom32.a
97 libcom32.a : $(LIBOBJS)
98 rm -f $@
99 $(AR) cq $@ $^
100 $(RANLIB) $@
102 tidy:
103 rm -f sys/vesa/alphatbl.c
104 find . -name \*.o -print | xargs -r rm -f
105 find . -name .\*.d -print | xargs -r rm -f
107 clean: tidy
108 rm -f *.a
110 spotless: clean
111 rm -f *~ \#* */*~ */\#*
113 install: all
114 mkdir -m 755 -p $(INSTALLROOT)$(COM32DIR)
115 install -m 644 libcom32.a com32.ld $(INSTALLROOT)$(COM32DIR)
116 -rm -rf $(INSTALLROOT)$(COM32DIR)/include
117 cp -r ../include $(INSTALLROOT)$(COM32DIR)
119 # These files are performance critical, and doesn't compile well with -Os
120 sys/vesa/drawtxt.o: sys/vesa/drawtxt.c
121 $(CC) $(CFLAGS) -O3 -c -o $@ $<
123 sys/vesa/alphatbl.c: sys/vesa/alphatbl.pl
124 $(PERL) $< > $@
126 jpeg/jidctflt.o: jpeg/jidctflt.c
127 $(CC) $(CFLAGS) -O3 -c -o $@ $<
129 -include .*.d */.*.d */*/.*.d