Adding upstream version 3.30~pre4.
[syslinux-debian/hramrach.git] / com32 / lib / Makefile
blobd84b7c60cceb2d2b47ac117166a1dace1d1ca796
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 memmem.o memmove.o memset.o memswap.o exit.o onexit.o \
11 perror.o printf.o puts.o qsort.o realloc.o seed48.o snprintf.o \
12 sprintf.o srand48.o sscanf.o stack.o strcasecmp.o strcat.o \
13 strchr.o strcmp.o strcpy.o strdup.o strerror.o strlen.o \
14 strncasecmp.o strncat.o strncmp.o strncpy.o strndup.o \
15 strntoimax.o strntoumax.o strrchr.o strsep.o strspn.o strstr.o \
16 strtoimax.o strtok.o strtol.o strtoll.o strtoul.o strtoull.o \
17 strtoumax.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o \
18 asprintf.o vasprintf.o strlcpy.o strlcat.o \
19 vsscanf.o \
21 libgcc/__ashldi3.o libgcc/__udivdi3.o \
22 libgcc/__negdi2.o libgcc/__ashrdi3.o libgcc/__lshrdi3.o \
23 libgcc/__muldi3.o libgcc/__udivmoddi4.o libgcc/__umoddi3.o \
24 libgcc/__divdi3.o libgcc/__moddi3.o \
26 sys/intcall.o sys/farcall.o \
27 sys/entry.o sys/exit.o sys/argv.o sys/times.o sys/idle.o \
28 sys/fileinfo.o sys/opendev.o sys/read.o sys/write.o sys/ftell.o \
29 sys/close.o sys/open.o sys/fileread.o sys/fileclose.o \
30 sys/isatty.o sys/fstat.o sys/openconsole.o sys/line_input.o \
31 sys/colortable.o \
33 sys/stdcon_read.o sys/stdcon_write.o sys/rawcon_read.o \
34 sys/rawcon_write.o sys/err_read.o sys/err_write.o \
35 sys/null_read.o sys/null_write.o sys/serial_write.o \
37 sys/xserial_write.o \
39 sys/ansicon_write.o sys/ansiserial_write.o \
41 sys/vesacon_write.o sys/vesaserial_write.o \
42 sys/vesa/initvesa.o sys/vesa/drawtxt.o sys/vesa/background.o \
44 pci/cfgtype.o \
45 pci/readb.o pci/readw.o pci/readl.o pci/readbios.o \
46 pci/writeb.o pci/writew.o pci/writel.o pci/writebios.o \
48 zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/gzio.o \
49 zlib/uncompr.o zlib/deflate.o zlib/trees.o zlib/zutil.o \
50 zlib/inflate.o zlib/infback.o zlib/inftrees.o zlib/inffast.o \
52 libpng/png.o libpng/pngset.o libpng/pngget.o libpng/pngrutil.o \
53 libpng/pngtrans.o libpng/pngwutil.o libpng/pngread.o \
54 libpng/pngrio.o libpng/pngwio.o libpng/pngwrite.o \
55 libpng/pngrtran.o libpng/pngwtran.o libpng/pngmem.o \
56 libpng/pngerror.o libpng/pngpread.o \
58 jpeg/tinyjpeg.o jpeg/jidctflt.o jpeg/decode1.o jpeg/decode3.o \
59 jpeg/rgb24.o jpeg/bgr24.o jpeg/yuv420p.o jpeg/grey.o \
60 jpeg/rgba32.o jpeg/bgra32.o \
62 sys/x86_init_fpu.o math/pow.o math/strtod.o
64 BINDIR = /usr/bin
65 LIBDIR = /usr/lib
66 AUXDIR = $(LIBDIR)/syslinux
67 INCDIR = /usr/include
68 COM32DIR = $(AUXDIR)/com32
70 all: libcom32.a
72 libcom32.a : $(LIBOBJS)
73 rm -f $@
74 $(AR) cq $@ $^
75 $(RANLIB) $@
77 tidy:
78 rm -f *.o .*.d */*.o */.*.d lib/sys/vesa/alphatbl.c
80 clean: tidy
81 rm -f *.a
83 spotless: clean
84 rm -f *~ \#* */*~ */\#*
86 install: all
87 mkdir -m 755 -p $(INSTALLROOT)$(COM32DIR)
88 install -m 644 libcom32.a com32.ld $(INSTALLROOT)$(COM32DIR)
89 -rm -rf $(INSTALLROOT)$(COM32DIR)/include
90 cp -r ../include $(INSTALLROOT)$(COM32DIR)
92 # These files are performance critical, and doesn't compile well with -Os
93 sys/vesa/drawtxt.o: sys/vesa/drawtxt.c
94 $(CC) $(CFLAGS) -O3 -c -o $@ $<
96 jpeg/jidctflt.o: jpeg/jidctflt.c
97 $(CC) $(CFLAGS) -O3 -c -o $@ $<
99 -include .*.d */.*.d