summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/pixops/makefile.mingw.in
diff options
context:
space:
mode:
Diffstat (limited to 'gdk-pixbuf/pixops/makefile.mingw.in')
-rw-r--r--gdk-pixbuf/pixops/makefile.mingw.in40
1 files changed, 40 insertions, 0 deletions
diff --git a/gdk-pixbuf/pixops/makefile.mingw.in b/gdk-pixbuf/pixops/makefile.mingw.in
new file mode 100644
index 0000000000..42e8fae48a
--- /dev/null
+++ b/gdk-pixbuf/pixops/makefile.mingw.in
@@ -0,0 +1,40 @@
+## Makefile for building libpixops.a with gcc on Win32
+## Use: make -f makefile.mingw
+
+TOP = ../../..
+
+include $(TOP)/build/win32/make.mingw
+
+# Possibly override GTK+ version from build/win32/module.defs
+GTK_VER = @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@
+
+OPTIMIZE = -g
+
+INCLUDES = -I .. -I ../..
+DEPCFLAGS = $(GLIB_CFLAGS) $(PNG_CFLAGS) $(ZLIB_CFLAGS) $(JPEG_CLFAGS) $(TIFF_CFLAGS)
+
+all : \
+ ../../config.h \
+ libpixops.a \
+ timescale.exe
+
+libpixops_OBJECTS = \
+ pixops.o \
+ have_mmx.o \
+ scale_line_22_33_mmx.o \
+ composite_line_22_4a4_mmx.o \
+ composite_line_color_22_4a4_mmx.o
+
+../../config.h : ../../config.h.win32
+ cp $< $@
+
+libpixops.a : $(libpixops_OBJECTS)
+ ar rv $@ $?
+
+timescale.exe : timescale.o libpixops.a
+ $(CC) $(CFLAGS) -o $@ timescale.o libpixops.a $(GLIB_LIBS)
+
+makefile.mingw: makefile.mingw.in
+ sed -e 's,@GTK_MAJOR[_]VERSION@,@GTK_MAJOR_VERSION@,' \
+ -e 's,@GTK_MINOR[_]VERSION@,@GTK_MINOR_VERSION@,' <$< >$@
+