2000-07-22 23:50:19 +00:00
|
|
|
## Makefile for building the gdk_pixbuf DLL with gcc on Win32
|
|
|
|
## Use: make -f makefile.mingw
|
|
|
|
|
|
|
|
TOP = ../..
|
|
|
|
|
|
|
|
include ../build/win32/make.mingw
|
|
|
|
|
|
|
|
# Possibly override GTK+ version from build/win32/module.defs
|
2000-09-07 19:51:32 +00:00
|
|
|
GDK_PIXBUF_VER = @GDK_PIXBUF_MAJOR@.@GDK_PIXBUF_MINOR@
|
2000-07-22 23:50:19 +00:00
|
|
|
|
|
|
|
OPTIMIZE = -g
|
|
|
|
|
|
|
|
INCLUDES = -I . -I ..
|
2000-10-06 22:01:45 +00:00
|
|
|
DEPCFLAGS = $(GLIB_CFLAGS) $(INTL_CFLAGS)
|
2000-07-22 23:50:19 +00:00
|
|
|
|
|
|
|
all : \
|
|
|
|
../config.h \
|
2000-09-07 19:51:32 +00:00
|
|
|
gdk_pixbuf-$(GDK_PIXBUF_VER).dll \
|
2000-08-01 21:43:56 +00:00
|
|
|
pixbufloader-bmp.dll \
|
|
|
|
pixbufloader-gif.dll \
|
|
|
|
pixbufloader-ico.dll \
|
|
|
|
pixbufloader-jpeg.dll \
|
|
|
|
pixbufloader-png.dll \
|
|
|
|
pixbufloader-pnm.dll \
|
|
|
|
pixbufloader-ras.dll \
|
|
|
|
pixbufloader-tiff.dll \
|
|
|
|
pixbufloader-wbmp.dll \
|
|
|
|
pixbufloader-xpm.dll \
|
2000-10-03 20:00:14 +00:00
|
|
|
make-inline-pixbuf.exe \
|
2000-07-22 23:50:19 +00:00
|
|
|
test-gdk-pixbuf.exe
|
2001-03-19 19:37:59 +00:00
|
|
|
|
2000-07-22 23:50:19 +00:00
|
|
|
gdk_pixbuf_OBJECTS = \
|
|
|
|
gdk-pixbuf.o \
|
|
|
|
gdk-pixbuf-animation.o \
|
|
|
|
gdk-pixbuf-data.o \
|
|
|
|
gdk-pixbuf-io.o \
|
|
|
|
gdk-pixbuf-scale.o \
|
|
|
|
gdk-pixbuf-util.o \
|
|
|
|
pixops/libpixops.a
|
|
|
|
|
|
|
|
../config.h : ../config.h.win32
|
|
|
|
cp $< $@
|
|
|
|
|
2000-09-07 19:51:32 +00:00
|
|
|
gdk_pixbuf-$(GDK_PIXBUF_VER).dll : $(gdk_pixbuf_OBJECTS) gdk_pixbuf.def
|
2000-10-06 22:01:45 +00:00
|
|
|
$(GLIB)/build-dll gdk_pixbuf $(GDK_PIXBUF_VER) gdk_pixbuf.def $(gdk_pixbuf_OBJECTS) -L ../gdk -lgdk-$(GTK_VER) $(GLIB_LIBS) $(INTL_LIBS)
|
2000-07-22 23:50:19 +00:00
|
|
|
|
2001-03-19 19:37:59 +00:00
|
|
|
gdk-pixbuf.o:: gdk-pixbuf-marshal.c
|
|
|
|
|
|
|
|
gdk-pixbuf-marshal.c :
|
|
|
|
$(GLIB_GENMARSHAL) --prefix=gdk_pixbuf_marshal gdk-pixbuf-marshal.list --header >$@
|
|
|
|
|
2000-07-22 23:50:19 +00:00
|
|
|
pixops/libpixops.a :
|
|
|
|
cd pixops && $(MAKE) -f makefile.mingw libpixops.a
|
|
|
|
|
2000-08-01 21:43:56 +00:00
|
|
|
pixbufloader_bmp_OBJECTS = io-bmp.o
|
2000-07-22 23:50:19 +00:00
|
|
|
|
2000-08-01 21:43:56 +00:00
|
|
|
pixbufloader-bmp.dll : $(pixbufloader_bmp_OBJECTS) pixbufloader_bmp.def
|
2000-10-06 22:01:45 +00:00
|
|
|
$(GLIB)/build-dll pixbufloader-bmp - pixbufloader_bmp.def $(pixbufloader_bmp_OBJECTS) -L . -lgdk_pixbuf-$(GDK_PIXBUF_VER) $(GLIB_LIBS) $(INTL_LIBS)
|
2000-07-22 23:50:19 +00:00
|
|
|
|
2000-08-01 21:43:56 +00:00
|
|
|
pixbufloader_gif_OBJECTS = io-gif.o
|
2000-07-22 23:50:19 +00:00
|
|
|
|
2000-08-01 21:43:56 +00:00
|
|
|
pixbufloader-gif.dll : $(pixbufloader_gif_OBJECTS) pixbufloader_gif.def
|
2000-10-06 22:01:45 +00:00
|
|
|
$(GLIB)/build-dll pixbufloader-gif - pixbufloader_gif.def $(pixbufloader_gif_OBJECTS) -L . -lgdk_pixbuf-$(GDK_PIXBUF_VER) $(GLIB_LIBS) $(INTL_LIBS)
|
2000-07-22 23:50:19 +00:00
|
|
|
|
2000-08-01 21:43:56 +00:00
|
|
|
pixbufloader_ico_OBJECTS = io-ico.o
|
|
|
|
|
|
|
|
pixbufloader-ico.dll : $(pixbufloader_ico_OBJECTS) pixbufloader_ico.def
|
2000-10-06 22:01:45 +00:00
|
|
|
$(GLIB)/build-dll pixbufloader-ico - pixbufloader_ico.def $(pixbufloader_ico_OBJECTS) -L . -lgdk_pixbuf-$(GDK_PIXBUF_VER) $(GLIB_LIBS) $(INTL_LIBS)
|
2000-08-01 21:43:56 +00:00
|
|
|
|
|
|
|
pixbufloader_jpeg_OBJECTS = io-jpeg.o
|
2000-07-22 23:50:19 +00:00
|
|
|
|
|
|
|
io-jpeg.o : io-jpeg.c
|
|
|
|
$(CC) $(CFLAGS) $(JPEG_CFLAGS) -c $<
|
|
|
|
|
2000-08-01 21:43:56 +00:00
|
|
|
pixbufloader-jpeg.dll : $(pixbufloader_jpeg_OBJECTS) pixbufloader_jpeg.def
|
2000-10-06 22:01:45 +00:00
|
|
|
$(GLIB)/build-dll pixbufloader-jpeg - pixbufloader_jpeg.def $(pixbufloader_jpeg_OBJECTS) -L . -lgdk_pixbuf-$(GDK_PIXBUF_VER) $(GLIB_LIBS) $(JPEG_LIBS) $(INTL_LIBS)
|
2000-08-01 21:43:56 +00:00
|
|
|
|
|
|
|
pixbufloader_png_OBJECTS = io-png.o
|
|
|
|
|
|
|
|
io-png.o : io-png.c
|
|
|
|
$(CC) $(CFLAGS) $(PNG_CFLAGS) -c $<
|
2000-07-22 23:50:19 +00:00
|
|
|
|
2000-08-01 21:43:56 +00:00
|
|
|
pixbufloader-png.dll : $(pixbufloader_png_OBJECTS) pixbufloader_png.def
|
2000-10-06 22:01:45 +00:00
|
|
|
$(GLIB)/build-dll pixbufloader-png - pixbufloader_png.def $(pixbufloader_png_OBJECTS) -L . -lgdk_pixbuf-$(GDK_PIXBUF_VER) $(GLIB_LIBS) $(PNG_LIBS) $(INTL_LIBS)
|
2000-07-22 23:50:19 +00:00
|
|
|
|
2000-08-01 21:43:56 +00:00
|
|
|
pixbufloader_pnm_OBJECTS = io-pnm.o
|
2000-07-22 23:50:19 +00:00
|
|
|
|
2000-08-01 21:43:56 +00:00
|
|
|
pixbufloader-pnm.dll : $(pixbufloader_pnm_OBJECTS) pixbufloader_pnm.def
|
2000-10-06 22:01:45 +00:00
|
|
|
$(GLIB)/build-dll pixbufloader-pnm - pixbufloader_pnm.def $(pixbufloader_pnm_OBJECTS) -L . -lgdk_pixbuf-$(GDK_PIXBUF_VER) $(GLIB_LIBS) $(INTL_LIBS)
|
2000-07-22 23:50:19 +00:00
|
|
|
|
|
|
|
pixbufloader_ras_OBJECTS = io-ras.o
|
|
|
|
|
2000-08-01 21:43:56 +00:00
|
|
|
pixbufloader-ras.dll : $(pixbufloader_ras_OBJECTS) pixbufloader_ras.def
|
2000-10-06 22:01:45 +00:00
|
|
|
$(GLIB)/build-dll pixbufloader-ras - pixbufloader_ras.def $(pixbufloader_ras_OBJECTS) -L . -lgdk_pixbuf-$(GDK_PIXBUF_VER) $(GLIB_LIBS) $(INTL_LIBS)
|
2000-07-22 23:50:19 +00:00
|
|
|
|
|
|
|
pixbufloader_tiff_OBJECTS = io-tiff.o
|
|
|
|
|
2000-08-01 21:43:56 +00:00
|
|
|
pixbufloader-tiff.dll : $(pixbufloader_tiff_OBJECTS) pixbufloader_tiff.def
|
2000-10-06 22:01:45 +00:00
|
|
|
$(GLIB)/build-dll pixbufloader-tiff - pixbufloader_tiff.def $(pixbufloader_tiff_OBJECTS) -L . -lgdk_pixbuf-$(GDK_PIXBUF_VER) $(GLIB_LIBS) $(TIFF_LIBS) $(JPEG_LIBS) $(ZLIB_LIBS) $(INTL_LIBS)
|
2000-07-22 23:50:19 +00:00
|
|
|
|
|
|
|
io-tiff.o : io-tiff.c
|
|
|
|
$(CC) $(CFLAGS) $(TIFF_CFLAGS) -c $<
|
|
|
|
|
2000-08-01 21:43:56 +00:00
|
|
|
pixbufloader_wbmp_OBJECTS = io-wbmp.o
|
2000-07-22 23:50:19 +00:00
|
|
|
|
2000-08-01 21:43:56 +00:00
|
|
|
pixbufloader-wbmp.dll : $(pixbufloader_wbmp_OBJECTS) pixbufloader_wbmp.def
|
2000-10-06 22:01:45 +00:00
|
|
|
$(GLIB)/build-dll pixbufloader-wbmp - pixbufloader_wbmp.def $(pixbufloader_wbmp_OBJECTS) -L . -lgdk_pixbuf-$(GDK_PIXBUF_VER) $(GLIB_LIBS) $(INTL_LIBS)
|
2000-07-22 23:50:19 +00:00
|
|
|
|
2000-08-01 21:43:56 +00:00
|
|
|
pixbufloader_xpm_OBJECTS = io-xpm.o
|
2000-07-22 23:50:19 +00:00
|
|
|
|
2000-08-01 21:43:56 +00:00
|
|
|
pixbufloader-xpm.dll : $(pixbufloader_xpm_OBJECTS) pixbufloader_xpm.def
|
2000-10-06 22:01:45 +00:00
|
|
|
$(GLIB)/build-dll pixbufloader-xpm - pixbufloader_xpm.def $(pixbufloader_xpm_OBJECTS) -L . -lgdk_pixbuf-$(GDK_PIXBUF_VER) $(GLIB_LIBS) $(INTL_LIBS)
|
2000-07-22 23:50:19 +00:00
|
|
|
|
2000-10-03 20:00:14 +00:00
|
|
|
make-inline-pixbuf.exe : make-inline-pixbuf.o gdk_pixbuf-$(GDK_PIXBUF_VER).dll
|
|
|
|
$(CC) $(CFLAGS) -o $@ make-inline-pixbuf.o -L . -lgdk_pixbuf-$(GDK_PIXBUF_VER) $(GLIB_LIBS)
|
|
|
|
|
2000-09-07 19:51:32 +00:00
|
|
|
test-gdk-pixbuf.exe : test-gdk-pixbuf.o gdk_pixbuf-$(GDK_PIXBUF_VER).dll
|
|
|
|
$(CC) $(CFLAGS) -o $@ test-gdk-pixbuf.o -L . -lgdk_pixbuf-$(GDK_PIXBUF_VER) $(GTK_LIBS) $(GLIB_LIBS)
|
2000-07-22 23:50:19 +00:00
|
|
|
|
2001-03-19 19:37:59 +00:00
|
|
|
ifeq ($(wildcard makefile.mingw.in),makefile.mingw.in)
|
2000-07-22 23:50:19 +00:00
|
|
|
# Hack to get an updated makefile.mingw automatically after updating
|
|
|
|
# makefile.mingw.in. Only for developer use.
|
|
|
|
makefile.mingw: makefile.mingw.in
|
2000-10-03 20:00:14 +00:00
|
|
|
sed -e 's,@GDK_PIXBUF[_]MAJOR@,@GDK_PIXBUF_MAJOR@,' \
|
|
|
|
-e 's,@GDK_PIXBUF[_]MINOR@,@GDK_PIXBUF_MINOR@,' <$< >$@
|
2001-03-19 19:37:59 +00:00
|
|
|
endif
|