summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libmng/makefiles/makefile.mingwdll
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2009-03-23 09:34:13 (GMT)
committerSimon Hausmann <simon.hausmann@nokia.com>2009-03-23 09:34:13 (GMT)
commit67ad0519fd165acee4a4d2a94fa502e9e4847bd0 (patch)
tree1dbf50b3dff8d5ca7e9344733968c72704eb15ff /src/3rdparty/libmng/makefiles/makefile.mingwdll
downloadQt-67ad0519fd165acee4a4d2a94fa502e9e4847bd0.zip
Qt-67ad0519fd165acee4a4d2a94fa502e9e4847bd0.tar.gz
Qt-67ad0519fd165acee4a4d2a94fa502e9e4847bd0.tar.bz2
Long live Qt!
Diffstat (limited to 'src/3rdparty/libmng/makefiles/makefile.mingwdll')
-rw-r--r--src/3rdparty/libmng/makefiles/makefile.mingwdll158
1 files changed, 158 insertions, 0 deletions
diff --git a/src/3rdparty/libmng/makefiles/makefile.mingwdll b/src/3rdparty/libmng/makefiles/makefile.mingwdll
new file mode 100644
index 0000000..2837218
--- /dev/null
+++ b/src/3rdparty/libmng/makefiles/makefile.mingwdll
@@ -0,0 +1,158 @@
+#
+# For conditions of distribution and use, see copyright notice in libmng.h
+#
+# makefile for libmng - THE MNG library
+# this makefile is for MinGW32, it has been tested with gcc 3.1,
+# binutils 2.12.90 and mingw-runtime 2.0
+#
+# By Benoit Blanchon - benoit.blanchon@laposte.net
+# DLL mods by F. Richter <frichter@gmx.li>
+#
+
+# outputs
+LIBMNG_A = libmng.a
+LIBMNG_DLL = libmng.1.dll
+INSTALL_PREFIX = C:/MinGW/
+# maybe you sould replace with anti-slashes
+
+# default build options
+OPTIONS = -DMNG_BUILD_DLL -DMNG_ACCESS_CHUNKS -DMNG_STORE_CHUNKS
+
+# Where the zlib library and include files are located
+ZLIBLIB=-lz
+#ZLIBLIB=-L../zlib -lz
+#ZLIBINC=-I../zlib
+
+# Where the jpeg library and include files are located
+JPEGLIB=-ljpeg
+#JPEGLIB=-L../jpgsrc -ljpeg
+#JPEGINC=-I../jpgsrc
+
+# Where the lcms library and include files are located
+#LCMSLIB=-llcms
+LCMSLIB=-L../lcms/lib -llcms
+LCMSINC=-I../lcms/source
+
+# file deletion command
+RM=rm -f
+#RM=del
+
+# directory creation command
+MKDIR=mkdir -p
+
+# file copy command
+COPY=cp
+#COPY=copy
+
+# compiler
+CC=gcc
+
+ALIGN=
+# for i386:
+#ALIGN=-malign-loops=2 -malign-functions=2
+
+CFLAGS=$(ZLIBINC) $(JPEGINC) $(LCMSINC) -Wall -O3 -funroll-loops $(OPTIONS) $(ALIGN) -s
+LDFLAGS=-L. -lmng $(ZLIBLIB) $(JPEGLIB) $(LCMSLIB) -lm -s
+
+INCPATH=$(prefix)/include
+LIBPATH=$(prefix)/lib
+
+OBJS = \
+ libmng_callback_xs.o \
+ libmng_chunk_io.o \
+ libmng_chunk_descr.o \
+ libmng_chunk_prc.o \
+ libmng_chunk_xs.o \
+ libmng_cms.o \
+ libmng_display.o \
+ libmng_dither.o \
+ libmng_error.o \
+ libmng_filter.o \
+ libmng_hlapi.o \
+ libmng_jpeg.o \
+ libmng_object_prc.o \
+ libmng_pixels.o \
+ libmng_prop_xs.o \
+ libmng_read.o \
+ libmng_trace.o \
+ libmng_write.o \
+ libmng_zlib.o
+
+.SUFFIXES: .c .o
+
+.c.o:
+ $(CC) -c $(CFLAGS) -o $@ $*.c
+
+all: $(LIBMNG_A)
+
+$(LIBMNG_A): $(LIBMNG_DLL)
+
+$(LIBMNG_DLL) : $(OBJS)
+ dllwrap --implib=$(LIBMNG_A) --dllname=$(LIBMNG_DLL) $(OBJS) $(LDFLAGS)
+
+install : $(LIBMNG_A)
+ $(MKDIR) $(INSTALL_PREFIX)include
+ $(COPY) libmng.h $(INSTALL_PREFIX)include
+ $(COPY) libmng_conf.h $(INSTALL_PREFIX)include
+ $(COPY) libmng_types.h $(INSTALL_PREFIX)include
+ $(MKDIR) $(INSTALL_PREFIX)lib
+ $(COPY) $(LIBMNG_A) $(INSTALL_PREFIX)lib
+
+clean:
+ $(RM) *.o
+
+# DO NOT DELETE THIS LINE -- make depend depends on it.
+
+libmng_hlapi.o : libmng_hlapi.c libmng.h libmng_conf.h libmng_types.h \
+ libmng_data.h libmng_objects.h libmng_object_prc.h \
+ libmng_chunks.h libmng_memory.h libmng_error.h libmng_trace.h libmng_read.h \
+ libmng_write.h libmng_display.h libmng_zlib.h libmng_cms.h libmng_zlib.h
+libmng_callback_xs.o : libmng_callback_xs.c libmng.h \
+ libmng_conf.h libmng_types.h libmng_data.h libmng_error.h libmng_trace.h
+libmng_prop_xs.o : libmng_prop_xs.c libmng.h libmng_conf.h \
+ libmng_types.h libmng_data.h libmng_error.h libmng_trace.h libmng_cms.h
+libmng_chunk_xs.o : libmng_chunk_xs.c libmng.h libmng_conf.h \
+ libmng_types.h libmng_data.h libmng_chunks.h libmng_chunk_prc.h \
+ libmng_error.h libmng_trace.h
+libmng_read.o : libmng_read.c libmng.h libmng_conf.h libmng_types.h \
+ libmng_data.h libmng_objects.h libmng_object_prc.h \
+ libmng_chunks.h libmng_chunk_prc.h libmng_chunk_io.h libmng_memory.h \
+ libmng_error.h libmng_trace.h libmng_read.h libmng_display.h
+libmng_write.o : libmng_write.c libmng.h libmng_conf.h libmng_types.h \
+ libmng_data.h libmng_error.h libmng_trace.h libmng_write.h
+libmng_display.o : libmng_display.c libmng.h libmng_conf.h \
+ libmng_types.h libmng_data.h libmng_objects.h libmng_object_prc.h libmng_memory.h \
+ libmng_error.h libmng_trace.h libmng_zlib.h libmng_cms.h libmng_pixels.h \
+ libmng_display.h
+libmng_object_prc.o : libmng_object_prc.c libmng.h libmng_conf.h \
+ libmng_types.h libmng_data.h libmng_objects.h libmng_object_prc.h libmng_memory.h \
+ libmng_error.h libmng_trace.h libmng_display.h libmng_pixels.h
+libmng_chunk_descr.o : libmng_chunk_descr.c libmng.h libmng_conf.h \
+ libmng_types.h libmng_data.h libmng_chunks.h libmng_chunk_descr.h \
+ libmng_chunk_prc.h libmng_memory.h libmng_error.h libmng_trace.h
+libmng_chunk_prc.o : libmng_chunk_prc.c libmng.h libmng_conf.h \
+ libmng_types.h libmng_data.h libmng_chunks.h libmng_chunk_prc.h libmng_memory.h \
+ libmng_error.h libmng_trace.h
+libmng_chunk_io.o : libmng_chunk_io.c libmng.h libmng_conf.h \
+ libmng_types.h libmng_data.h libmng_objects.h libmng_object_prc.h \
+ libmng_chunks.h libmng_chunk_io.h libmng_chunk_prc.h libmng_memory.h libmng_error.h \
+ libmng_trace.h libmng_display.h libmng_zlib.h libmng_pixels.h
+libmng_error.o : libmng_error.c libmng.h libmng_conf.h libmng_types.h \
+ libmng_data.h libmng_error.h libmng_trace.h
+libmng_trace.o : libmng_trace.c libmng.h libmng_conf.h libmng_types.h \
+ libmng_data.h libmng_error.h libmng_trace.h
+libmng_pixels.o : libmng_pixels.c libmng.h libmng_conf.h libmng_types.h \
+ libmng_data.h libmng_objects.h libmng_memory.h libmng_error.h libmng_trace.h \
+ libmng_cms.h libmng_filter.h libmng_pixels.h
+libmng_filter.o : libmng_filter.c libmng.h libmng_conf.h libmng_types.h \
+ libmng_data.h libmng_error.h libmng_trace.h libmng_filter.h
+libmng_dither.o : libmng_dither.c libmng.h libmng_conf.h libmng_types.h \
+ libmng_data.h libmng_error.h libmng_trace.h libmng_dither.h
+libmng_zlib.o : libmng_zlib.c libmng.h libmng_conf.h libmng_types.h \
+ libmng_data.h libmng_memory.h libmng_error.h libmng_trace.h libmng_pixels.h \
+ libmng_filter.h libmng_zlib.h
+libmng_jpeg.o : libmng_jpeg.c libmng.h libmng_conf.h libmng_types.h \
+ libmng_data.h libmng_memory.h libmng_error.h libmng_trace.h libmng_pixels.h libmng_jpeg.h
+libmng_cms.o : libmng_cms.c libmng.h libmng_conf.h libmng_types.h \
+ libmng_data.h libmng_objects.h libmng_error.h libmng_trace.h libmng_cms.h
+