aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/MCONFIG
diff options
context:
space:
mode:
authorhpa <hpa>2005-01-08 05:58:20 +0000
committerhpa <hpa>2005-01-08 05:58:20 +0000
commita1c7edf3830c1085ffc974163c8feb651f959eed (patch)
treef38597ac334c14d09c2218694a3c8aa34812b9eb /com32/lib/MCONFIG
parent78bb1c8ea571ae83879631b06bd2822d3e6b6b58 (diff)
downloadsyslinux.git-a1c7edf3830c1085ffc974163c8feb651f959eed.tar.gz
syslinux.git-a1c7edf3830c1085ffc974163c8feb651f959eed.tar.xz
syslinux.git-a1c7edf3830c1085ffc974163c8feb651f959eed.zip
Add libpng
Diffstat (limited to 'com32/lib/MCONFIG')
-rw-r--r--com32/lib/MCONFIG12
1 files changed, 10 insertions, 2 deletions
diff --git a/com32/lib/MCONFIG b/com32/lib/MCONFIG
index 50150975..e740ed5e 100644
--- a/com32/lib/MCONFIG
+++ b/com32/lib/MCONFIG
@@ -1,3 +1,6 @@
+# -*- makefile -*-
+# $Id$
+
CC = gcc
LD = ld
INCLUDE = -I.
@@ -8,13 +11,18 @@ PERL = perl
STRIP = strip --strip-all -R .comment -R .note
OBJCOPY = objcopy
+# zlib and libpng configuration flags
+LIBFLAGS = -DDYNAMIC_CRC_TABLE -DPNG_NO_CONSOLE_IO \
+ -DPNG_NO_MNG_FEATURES -DPNG_NO_FLOATING_POINT_SUPPORTED \
+ -DPNG_NO_WRITE_FLUSH -DPNG_NO_WRITE_tIME -DPNG_NO_READ_tIME
+
REQFLAGS = -g -m32 -mregparm=3 -DREGPARM=3 -D__COM32__ -I. -I./sys -I../include
OPTFLAGS = -Os -march=i386 -falign-functions=0 -falign-jumps=0 \
- -falign-labels=0 -DDYNAMIC_CRC_TABLE
+ -falign-labels=0
WARNFLAGS = -W -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline
CFLAGS = -Wp,-MT,$@,-MD,$(dir $@).$(notdir $@).d $(OPTFLAGS) \
- $(REQFLAGS) $(WARNFLAGS)
+ $(REQFLAGS) $(WARNFLAGS) $(LIBFLAGS)
LDFLAGS = -m elf32_i386
.SUFFIXES: .c .o .a .so .lo .i .S .s .ls .ss .lss