
2000-02-15 Tor Lillqvist <tml@iki.fi> * libgimp/gimp.def * libgimp/gimpui.def * libgimp/makefile.{cygwin,msc} * app/makefile.{cygwin,msc} * plug-ins/makefile.{cygwin,msc}: Updates. * app/datafiles.c (is_script): New Win32-only function, which tests if a file's extension matches one of the extensions in the PATHEXT environment variable (which the cmd.exe command interpreter also uses). This is to avoid starting applications associated with any random data file the user might have dropped in the plug-ins folder, while still supporting plug-ins written in scripting languages. * app/gimpparasite.c (gimp_parasiterc_save): (Win32:) Cannot rename to an existing file. * plug-ins/Lighting/lighting_image.c * plug-ins/Lighting/lighting_share.c * plug-ins/MapObject/mapobject_preview.c * plug-ins/MapObject/mapobject_shade.c: Use G_PI. * plug-ins/common/gz.c: #ifdef G_OS_WIN32 was used before its potential definition via glib.h. * plug-ins/common/jpeg.c: Also recognize Exif files, which are typically produced by digital cameras. The usually have a .jpg file name extension, and would thus already match this plug-in, but add the magic string just in case. They are loaded just fine by libjpeg even if they don't have the JFIF signature. * plug-ins/common/tiff.c: Set TIFF warning and error handler, so we get to pass libtiff's messages through the normal channels.
175 lines
4.4 KiB
Plaintext
175 lines
4.4 KiB
Plaintext
## Makefile for building the GIMP DLLs and LIBs with gcc -mno-cygwin.
|
|
## Use: make -f makefile.cygwin
|
|
|
|
# Change this to wherever you want to install the DLLs. This directory
|
|
# should be in your PATH. As these DLLs are for the GIMP and its plug-ins
|
|
# only, it probably is best to keep them in the GIMP's bin directory.
|
|
BIN = /gimp/bin
|
|
|
|
# The name of the directory in your %HOME% where the GIMP's personal settings
|
|
# and stuff is saved.
|
|
GIMPDIR = _gimp$(GIMP_VER)
|
|
|
|
OPTIMIZE = -O
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
CC = gcc -mno-cygwin -mpentium -fnative-struct
|
|
|
|
CP = cp
|
|
LD = ld
|
|
DLLTOOL = dlltool
|
|
INSTALL = install
|
|
|
|
GTK_VER = 1.3
|
|
GLIB_VER = 1.3
|
|
GIMP_VER = 1.1
|
|
|
|
GTK = ../../gtk+
|
|
GLIB = ../../glib
|
|
INTL = ../../intl
|
|
|
|
GIMP_VER = 1.1
|
|
|
|
CFLAGS = $(OPTIMIZE) -I.. -I$(GLIB) -I$(GTK)/gdk -I$(GTK) -I$(INTL) -DGIMPDIR=\"$(GIMPDIR)\"
|
|
|
|
all : \
|
|
../config.h \
|
|
libgimpi.a \
|
|
gimp-$(GIMP_VER).dll \
|
|
gimpui-$(GIMP_VER).dll
|
|
|
|
../config.h : ../config.h.win32
|
|
cp ../config.h.win32 ../config.h
|
|
|
|
install : all
|
|
$(INSTALL) gimp-$(GIMP_VER).dll $(BIN)
|
|
$(INSTALL) gimpui-$(GIMP_VER).dll $(BIN)
|
|
|
|
gimpi_OBJECTS = \
|
|
gimpenv.o \
|
|
gimpchainbutton.o \
|
|
gimpcolorbutton.o \
|
|
gimpcolorspace.o \
|
|
gimpdialog.o \
|
|
gimpfileselection.o\
|
|
gimphelpui.o \
|
|
gimpmatrix.o \
|
|
gimppatheditor.o\
|
|
gimpprotocol.o \
|
|
gimpquerybox.o \
|
|
gimpsizeentry.o \
|
|
gimpunitmenu.o \
|
|
gimpvector.o \
|
|
gimpwidgets.o \
|
|
gimpwire.o \
|
|
gserialize.o \
|
|
parasite.o \
|
|
parasiteio.o
|
|
|
|
libgimpi.a : $(gimpi_OBJECTS)
|
|
ar cr libgimpi.a $(gimpi_OBJECTS)
|
|
|
|
gimp_OBJECTS = \
|
|
gimp.o \
|
|
gimpchannel.o \
|
|
gimpcolorspace.o \
|
|
gimpdisplay.o \
|
|
gimpdrawable.o \
|
|
gimpenv.o \
|
|
gimpgradient.o \
|
|
gimphelp.o \
|
|
gimpimage.o \
|
|
gimplayer.o \
|
|
gimpmatrix.o \
|
|
gimppalette.o \
|
|
gimpparasite.o \
|
|
gimppixelrgn.o \
|
|
gimpprotocol.o \
|
|
gimpselection.o \
|
|
gimptile.o \
|
|
gimpunit.o \
|
|
gimpvector.o \
|
|
gimpwire.o \
|
|
gserialize.o \
|
|
parasite.o \
|
|
parasiteio.o
|
|
|
|
gimp-$(GIMP_VER).dll : $(gimp_OBJECTS) gimp.def
|
|
$(GLIB)/build-dll gimp $(GIMP_VER) gimp.def -s $(gimp_OBJECTS) -L $(INTL) -lgnu-intl -L $(GLIB) -lglib-$(GLIB_VER) -luser32
|
|
|
|
# Pass -DLIBGIMP_COMPILATION when compiling gimp_OBJECTS
|
|
|
|
gimp.o : gimp.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION gimp.c
|
|
gimpchannel.o : gimpchannel.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION gimpchannel.c
|
|
gimpdisplay.o : gimpdisplay.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION gimpdisplay.c
|
|
gimpdrawable.o : gimpdrawable.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION gimpdrawable.c
|
|
gimpenv.o : gimpenv.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION gimpenv.c
|
|
gimpgradient.o : gimpgradient.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION gimpgradient.c
|
|
gimpimage.o : gimpimage.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION gimpimage.c
|
|
gimplayer.o : gimplayer.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION gimplayer.c
|
|
gimpmatrix.o : gimpmatrix.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION gimpmatrix.c
|
|
gimppalette.o : gimppalette.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION gimppalette.c
|
|
gimpparasite.o : gimpparasite.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION gimpparasite.c
|
|
gimppixelrgn.o : gimppixelrgn.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION gimppixelrgn.c
|
|
gimpprotocol.o : gimpprotocol.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION gimpprotocol.c
|
|
gimptile.o : gimptile.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION gimptile.c
|
|
gimpunit.o : gimpunit.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION gimpunit.c
|
|
gimpvector.o : gimpvector.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION gimpvector.c
|
|
gimpwire.o : gimpwire.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION gimpwire.c
|
|
gserialize.o : gserialize.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION gserialize.c
|
|
parasite.o : parasite.c
|
|
$(CC) $(CFLAGS) -c -DLIBGIMP_COMPILATION parasite.c
|
|
|
|
gimpui_OBJECTS = \
|
|
gimpmenu.o \
|
|
gimpbrushmenu.o \
|
|
gimpchainbutton.o \
|
|
gimpcolorbutton.o \
|
|
gimpdialog.o \
|
|
gimpexport.o \
|
|
gimpfileselection.o \
|
|
gimphelpui.o \
|
|
gimpgradientmenu.o \
|
|
gimppatternmenu.o \
|
|
gimpquerybox.o \
|
|
gimpsizeentry.o \
|
|
gimpunitmenu.o \
|
|
gimpwidgets.o
|
|
|
|
gimpui-$(GIMP_VER).dll : $(gimpui_OBJECTS) gimpui.def
|
|
$(GLIB)/build-dll gimpui $(GIMP_VER) gimpui.def -s $(gimpui_OBJECTS) -L . -lgimp-$(GIMP_VER) -L $(GTK)/gtk -lgtk-$(GTK_VER) -L $(GTK)/gdk -lgdk-$(GTK_VER) -L $(INTL) -lgnu-intl -L $(GLIB) -lglib-$(GLIB_VER)
|
|
|
|
.SUFFIXES: .c .o .i
|
|
|
|
# General rule for compiling, used by the objects that don't go into
|
|
# gimp-$(GIMP_VER).dll.
|
|
.c.o:
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
.c.i:
|
|
$(CC) $(CFLAGS) -E $< >$@
|
|
|
|
clean:
|
|
-rm *.o *.exe *.dll *.a *.base *.exp
|