1999-07-03 10:27:32 +08:00
|
|
|
# Makefile to build the GIMP plug-ins with cygwin's make and gcc -mno-cygwin
|
|
|
|
|
|
|
|
# I don't want to use many hand-written makefiles, so this is quite complex.
|
|
|
|
# This same makefile is also included by sub-makes called as subroutines.
|
|
|
|
# Various parts of this file are used when makeing from the plug-ins directory,
|
|
|
|
# and when building individual plug-ins and the three plug-in libraries.
|
|
|
|
|
2000-04-24 04:27:41 +08:00
|
|
|
# This is what I use as installation target, from where the installer-builder
|
|
|
|
# will pick it up.
|
2000-06-07 06:24:53 +08:00
|
|
|
DEST = /install/gimp
|
|
|
|
|
|
|
|
ifndef GIMPTOP
|
|
|
|
GIMPTOP = ..
|
|
|
|
endif
|
1999-07-03 10:27:32 +08:00
|
|
|
|
2000-06-07 06:24:53 +08:00
|
|
|
TOP = ../..
|
|
|
|
|
|
|
|
GIMP_VER = 1.1
|
|
|
|
|
|
|
|
include $(GIMPTOP)/build/win32/make.mingw
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
ifndef LIBRARY
|
|
|
|
ifndef PLUGIN
|
2000-01-05 02:09:51 +08:00
|
|
|
ifndef MODULE
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
# This part is used when making from the plug-ins directory
|
|
|
|
|
|
|
|
FROMPLUGINSDIR=YES # Used to bypass other parts below
|
|
|
|
|
|
|
|
# List plug-ins. Use several lists just so that this makefile looks more like
|
|
|
|
# the one used with Microsoft's nmake, which has silly limits.
|
|
|
|
|
|
|
|
# The COMMON* ones are in the common subdirectory
|
2000-05-05 02:41:22 +08:00
|
|
|
COMMON1 = CEL CML_explorer align_layers animationplay animoptimize apply_lens autocrop autostretch_hsv blinds blur borderaverage bumpmap c_astretch checkerboard colorify compose convmatrix csource cubism curve_bend
|
1999-07-03 10:27:32 +08:00
|
|
|
COMMON2 = decompose deinterlace depthmerge despeckle destripe diffraction displace edge emboss engrave exchange film flarefx fractaltrace
|
1999-08-23 03:02:52 +08:00
|
|
|
COMMON3 = gauss_iir gauss_rle gbr gee gicon gif gifload glasstile gpb gqbist gradmap grid gtm guillotine gz header hot hrz illusion iwarp jigsaw jpeg laplace lic
|
1999-11-14 10:08:07 +08:00
|
|
|
COMMON4 = mapcolor max_rgb mblur newsprint nlfilt noisify normalize nova oilify papertile pat pcx pix pixelize plasma plugindetails png pnm polar ps psd psp randomize ripple rotate
|
2000-07-19 05:49:50 +08:00
|
|
|
COMMON5 = sample_colorize scatter_hsv semiflatten sharpen shift smooth_palette snoise sobel sparkle spheredesigner spread sunras tga threshold_alpha tiff tile tileit tiler unsharp video vinvert vpropagate warp waves whirlpinch winclipboard wind winprint wmf xbm xwd zealouscrop
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
# These have own subdirectories each
|
2000-08-02 14:33:58 +08:00
|
|
|
SEPARATE = AlienMap AlienMap2 FractalExplorer Lighting MapObject bmp dbbrowser faxg3 fits flame fp gfig gflare gfli gimpressionist gdyntext ifscompose imagemap maze mosaic pagecurl rcm sel2path sgi sinus struc twain webbrowser winsnap
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
# These are unofficial, ie not in the CVS. To build these, you should
|
|
|
|
# get tml's source snapshot and copy this makefile to the
|
|
|
|
# ../unofficial-plug-ins directory, go there, and do "make -f
|
|
|
|
# makefile.cygwin unofficial".
|
|
|
|
|
2000-08-02 14:33:58 +08:00
|
|
|
UNOFFICIAL = Anamorphose DigitalSignature RGB_Displace ccanalyze fixer gimp_ace guash homogenizer kaleidoscope logconv sel_gauss magiceye mathmap psd_save resynthesizer user_filter
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
# The main target
|
|
|
|
|
|
|
|
all : ../config.h libs-all common-plugins-all separate-plugins-all
|
|
|
|
|
|
|
|
../config.h : ../config.h.win32
|
|
|
|
cp ../config.h.win32 ../config.h
|
|
|
|
|
1999-08-27 07:49:39 +08:00
|
|
|
install : libs-install common-plugins-install separate-plugins-install data-install
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
unofficial:
|
|
|
|
for d in $(UNOFFICIAL); do $(MAKE) -f makefile.cygwin sub-one-separate DIR=$$d TARGET=install; done
|
|
|
|
|
2000-06-07 06:24:53 +08:00
|
|
|
clean:: libs-clean common-plugins-clean separate-plugins-clean
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
libs-all :
|
|
|
|
$(MAKE) -f makefile.cygwin sub-libs TARGET=all
|
|
|
|
|
|
|
|
libs-install :
|
|
|
|
$(MAKE) -f makefile.cygwin sub-libs TARGET=install
|
|
|
|
|
|
|
|
libs-clean :
|
|
|
|
$(MAKE) -f makefile.cygwin sub-libs TARGET=clean
|
|
|
|
|
|
|
|
sub-libs:
|
2000-07-05 02:50:03 +08:00
|
|
|
cd libgck/gck; $(MAKE) -f ../../makefile.cygwin GIMPTOP=../../.. TOP=../../$(TOP) LIBRARY=gck OBJECTS="gckcolor.o" $(TARGET)
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
common-plugins-all :
|
|
|
|
$(MAKE) -f makefile.cygwin sub-common-plugins TARGET=all
|
|
|
|
|
|
|
|
common-plugins-install :
|
|
|
|
$(MAKE) -f makefile.cygwin sub-common-plugins TARGET=install
|
|
|
|
|
|
|
|
common-plugins-clean :
|
2000-07-05 02:50:03 +08:00
|
|
|
cd common; $(MAKE) -f ../makefile.cygwin GIMPTOP=../.. LIBRARY=PLUGIN=dummy clean
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sub-common-plugins :
|
|
|
|
for d in $(COMMON1) $(COMMON2) $(COMMON3) $(COMMON4) $(COMMON5); do $(MAKE) -f makefile.cygwin sub-one-common DIR=$$d TARGET=$(TARGET); done
|
|
|
|
|
|
|
|
sub-one-common :
|
2000-06-07 06:24:53 +08:00
|
|
|
cd common; $(MAKE) -f ../makefile.cygwin GIMPTOP=../.. TOP=../$(TOP) PLUGIN=$(DIR) EXTRA_$(DIR)=1 $(TARGET)
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
separate-plugins-all :
|
|
|
|
$(MAKE) -f makefile.cygwin sub-separate-plugins TARGET=all
|
|
|
|
|
|
|
|
separate-plugins-install :
|
|
|
|
$(MAKE) -f makefile.cygwin sub-separate-plugins TARGET=install
|
|
|
|
|
|
|
|
separate-plugins-clean :
|
|
|
|
$(MAKE) -f makefile.cygwin sub-separate-plugins TARGET=clean
|
|
|
|
|
Must call gimp_set_remove_handler() to remove the browser_info_update
1999-11-09 Tor Lillqvist <tml@iki.fi>
* app/module_db.c (browser_destroy_callback): Must call
gimp_set_remove_handler() to remove the browser_info_update
handler from the GimpSet 'modules'.
Otherwise if we bring up the module browser, then close it, this
will call browser_destroy_callback(), which will free the
'browser_st' struct. Later when we exit the GIMP, the modules will
be unloaded, which will cause browser_info_update() to be called,
and passed the pointer to the already freed 'browser_st'. Whoopee.
Thanks to Electric Fence for pointing this out.
* app/makefile.{cygwin,msc}: Remove actionarea.
* libgimp/gimp.h: Change declaration of nonexistent function
gimp_layer_attach_new_parasite() to declaration of
gimp_drawable_attach_new_parasite(), which was missing.
* libgimp/gimpui.def
* libgimp/makefile.{cygwin,msc}: Add gimpcolorbutton.
* plug-ins/makefile.{cygwin,msc}: Add gap_filter and gap_plugins.
* plug-ins/common/gz.c: Fix renamed variable in Win32 part.
* plug-ins/gap/gap_lib.c: Use G_DIR_SEPARATOR_S.
* plug-ins/gdyntext/font_selection.c: When compiling with current
CVS GTk+ (i.e., on Win32 most likely) use the gdk_font_list_*
functions instead of Xlib's XListFonts() and XFreeFontNames().
* plug-ins/gdyntext/gdyntext.c: Use G_PI.
* plug-ins/gdyntext/gdyntext_ui.c: Guard inclusion of
unistd.h. Don't unnecessarily include gdkx.h and Xlib.h
* plug-ins/winsnap/winsnap.c: Fix rectangle orientation.
1999-11-10 07:01:31 +08:00
|
|
|
sub-separate-plugins : sub-script-fu sub-gap
|
1999-07-03 10:27:32 +08:00
|
|
|
for d in $(SEPARATE); do $(MAKE) -f makefile.cygwin sub-one-separate DIR=$$d TARGET=$(TARGET); done
|
1999-08-02 05:42:51 +08:00
|
|
|
|
1999-07-03 10:27:32 +08:00
|
|
|
# We must handle script-fu separately because of the dash, sigh
|
1999-08-02 05:42:51 +08:00
|
|
|
sub-script-fu :
|
2000-06-07 06:24:53 +08:00
|
|
|
cd script-fu; $(MAKE) -f ../makefile.cygwin GIMPTOP=../.. TOP=../$(TOP) PLUGIN=script-fu EXTRA_script_fu=1 $(TARGET)
|
1999-07-03 10:27:32 +08:00
|
|
|
|
Must call gimp_set_remove_handler() to remove the browser_info_update
1999-11-09 Tor Lillqvist <tml@iki.fi>
* app/module_db.c (browser_destroy_callback): Must call
gimp_set_remove_handler() to remove the browser_info_update
handler from the GimpSet 'modules'.
Otherwise if we bring up the module browser, then close it, this
will call browser_destroy_callback(), which will free the
'browser_st' struct. Later when we exit the GIMP, the modules will
be unloaded, which will cause browser_info_update() to be called,
and passed the pointer to the already freed 'browser_st'. Whoopee.
Thanks to Electric Fence for pointing this out.
* app/makefile.{cygwin,msc}: Remove actionarea.
* libgimp/gimp.h: Change declaration of nonexistent function
gimp_layer_attach_new_parasite() to declaration of
gimp_drawable_attach_new_parasite(), which was missing.
* libgimp/gimpui.def
* libgimp/makefile.{cygwin,msc}: Add gimpcolorbutton.
* plug-ins/makefile.{cygwin,msc}: Add gap_filter and gap_plugins.
* plug-ins/common/gz.c: Fix renamed variable in Win32 part.
* plug-ins/gap/gap_lib.c: Use G_DIR_SEPARATOR_S.
* plug-ins/gdyntext/font_selection.c: When compiling with current
CVS GTk+ (i.e., on Win32 most likely) use the gdk_font_list_*
functions instead of Xlib's XListFonts() and XFreeFontNames().
* plug-ins/gdyntext/gdyntext.c: Use G_PI.
* plug-ins/gdyntext/gdyntext_ui.c: Guard inclusion of
unistd.h. Don't unnecessarily include gdkx.h and Xlib.h
* plug-ins/winsnap/winsnap.c: Fix rectangle orientation.
1999-11-10 07:01:31 +08:00
|
|
|
# Also GAP is special
|
|
|
|
sub-gap :
|
2000-06-07 06:24:53 +08:00
|
|
|
cd gap; $(MAKE) -f ../makefile.cygwin GIMPTOP=../.. TOP=../$(TOP) PLUGIN=gap_filter EXTRA_gap_filter=1 $(TARGET)
|
|
|
|
cd gap; $(MAKE) -f ../makefile.cygwin GIMPTOP=../.. TOP=../$(TOP) PLUGIN=gap_plugins EXTRA_gap_plugins=1 $(TARGET)
|
Must call gimp_set_remove_handler() to remove the browser_info_update
1999-11-09 Tor Lillqvist <tml@iki.fi>
* app/module_db.c (browser_destroy_callback): Must call
gimp_set_remove_handler() to remove the browser_info_update
handler from the GimpSet 'modules'.
Otherwise if we bring up the module browser, then close it, this
will call browser_destroy_callback(), which will free the
'browser_st' struct. Later when we exit the GIMP, the modules will
be unloaded, which will cause browser_info_update() to be called,
and passed the pointer to the already freed 'browser_st'. Whoopee.
Thanks to Electric Fence for pointing this out.
* app/makefile.{cygwin,msc}: Remove actionarea.
* libgimp/gimp.h: Change declaration of nonexistent function
gimp_layer_attach_new_parasite() to declaration of
gimp_drawable_attach_new_parasite(), which was missing.
* libgimp/gimpui.def
* libgimp/makefile.{cygwin,msc}: Add gimpcolorbutton.
* plug-ins/makefile.{cygwin,msc}: Add gap_filter and gap_plugins.
* plug-ins/common/gz.c: Fix renamed variable in Win32 part.
* plug-ins/gap/gap_lib.c: Use G_DIR_SEPARATOR_S.
* plug-ins/gdyntext/font_selection.c: When compiling with current
CVS GTk+ (i.e., on Win32 most likely) use the gdk_font_list_*
functions instead of Xlib's XListFonts() and XFreeFontNames().
* plug-ins/gdyntext/gdyntext.c: Use G_PI.
* plug-ins/gdyntext/gdyntext_ui.c: Guard inclusion of
unistd.h. Don't unnecessarily include gdkx.h and Xlib.h
* plug-ins/winsnap/winsnap.c: Fix rectangle orientation.
1999-11-10 07:01:31 +08:00
|
|
|
|
|
|
|
|
1999-07-03 10:27:32 +08:00
|
|
|
sub-one-separate :
|
2000-06-07 06:24:53 +08:00
|
|
|
cd $(DIR); $(MAKE) -f ../makefile.cygwin GIMPTOP=../.. TOP=../$(TOP) PLUGIN=$(DIR) EXTRA_$(DIR)=1 $(TARGET)
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
|
2000-02-08 06:41:02 +08:00
|
|
|
data-install : gap-data-install gflare-data-install gimpressionist-data-install guash-data-install script-fu-data-install
|
|
|
|
|
|
|
|
gap-data-install:
|
2000-06-07 06:24:53 +08:00
|
|
|
-mkdir $(DEST)/scripts
|
|
|
|
$(INSTALL) gap/*.scm $(DEST)/scripts
|
2000-02-08 06:41:02 +08:00
|
|
|
|
|
|
|
gflare-data-install:
|
2000-06-07 06:24:53 +08:00
|
|
|
-mkdir $(DEST)/gflare
|
|
|
|
-$(INSTALL) gflare/gflares/* $(DEST)/gflare
|
|
|
|
-rm $(DEST)/gflare/Makefile.am
|
1999-07-03 10:27:32 +08:00
|
|
|
|
1999-08-27 07:49:39 +08:00
|
|
|
gimpressionist-data-install :
|
2000-06-07 06:24:53 +08:00
|
|
|
-mkdir $(DEST)/gimpressionist $(DEST)/gimpressionist/Brushes $(DEST)/gimpressionist/Paper $(DEST)/gimpressionist/Presets
|
|
|
|
$(INSTALL) gimpressionist/Brushes/*.p?m $(DEST)/gimpressionist/Brushes
|
|
|
|
$(INSTALL) gimpressionist/Paper/*.p?m $(DEST)/gimpressionist/Paper
|
|
|
|
-$(INSTALL) gimpressionist/Presets/* $(DEST)/gimpressionist/Presets
|
|
|
|
-rm $(DEST)/gimpressionist/Presets/Makefile.am
|
1999-08-27 07:49:39 +08:00
|
|
|
|
2000-02-08 06:41:02 +08:00
|
|
|
guash-data-install:
|
|
|
|
|
Must call gimp_set_remove_handler() to remove the browser_info_update
1999-11-09 Tor Lillqvist <tml@iki.fi>
* app/module_db.c (browser_destroy_callback): Must call
gimp_set_remove_handler() to remove the browser_info_update
handler from the GimpSet 'modules'.
Otherwise if we bring up the module browser, then close it, this
will call browser_destroy_callback(), which will free the
'browser_st' struct. Later when we exit the GIMP, the modules will
be unloaded, which will cause browser_info_update() to be called,
and passed the pointer to the already freed 'browser_st'. Whoopee.
Thanks to Electric Fence for pointing this out.
* app/makefile.{cygwin,msc}: Remove actionarea.
* libgimp/gimp.h: Change declaration of nonexistent function
gimp_layer_attach_new_parasite() to declaration of
gimp_drawable_attach_new_parasite(), which was missing.
* libgimp/gimpui.def
* libgimp/makefile.{cygwin,msc}: Add gimpcolorbutton.
* plug-ins/makefile.{cygwin,msc}: Add gap_filter and gap_plugins.
* plug-ins/common/gz.c: Fix renamed variable in Win32 part.
* plug-ins/gap/gap_lib.c: Use G_DIR_SEPARATOR_S.
* plug-ins/gdyntext/font_selection.c: When compiling with current
CVS GTk+ (i.e., on Win32 most likely) use the gdk_font_list_*
functions instead of Xlib's XListFonts() and XFreeFontNames().
* plug-ins/gdyntext/gdyntext.c: Use G_PI.
* plug-ins/gdyntext/gdyntext_ui.c: Guard inclusion of
unistd.h. Don't unnecessarily include gdkx.h and Xlib.h
* plug-ins/winsnap/winsnap.c: Fix rectangle orientation.
1999-11-10 07:01:31 +08:00
|
|
|
script-fu-data-install:
|
2000-06-07 06:24:53 +08:00
|
|
|
-mkdir $(DEST)/scripts
|
|
|
|
$(INSTALL) script-fu/scripts/*.scm $(DEST)/scripts
|
|
|
|
rm $(DEST)/scripts/test-sphere.scm
|
|
|
|
$(INSTALL) script-fu/scripts/*.jpg $(DEST)/scripts
|
|
|
|
for d in FractalExplorer/fractalexplorer-examples/*; do if [ -f $$d ]; then $(INSTALL) $$d $(DEST)/fractalexplorer; fi; done
|
|
|
|
rm $(DEST)/fractalexplorer/Makefile.am
|
Must call gimp_set_remove_handler() to remove the browser_info_update
1999-11-09 Tor Lillqvist <tml@iki.fi>
* app/module_db.c (browser_destroy_callback): Must call
gimp_set_remove_handler() to remove the browser_info_update
handler from the GimpSet 'modules'.
Otherwise if we bring up the module browser, then close it, this
will call browser_destroy_callback(), which will free the
'browser_st' struct. Later when we exit the GIMP, the modules will
be unloaded, which will cause browser_info_update() to be called,
and passed the pointer to the already freed 'browser_st'. Whoopee.
Thanks to Electric Fence for pointing this out.
* app/makefile.{cygwin,msc}: Remove actionarea.
* libgimp/gimp.h: Change declaration of nonexistent function
gimp_layer_attach_new_parasite() to declaration of
gimp_drawable_attach_new_parasite(), which was missing.
* libgimp/gimpui.def
* libgimp/makefile.{cygwin,msc}: Add gimpcolorbutton.
* plug-ins/makefile.{cygwin,msc}: Add gap_filter and gap_plugins.
* plug-ins/common/gz.c: Fix renamed variable in Win32 part.
* plug-ins/gap/gap_lib.c: Use G_DIR_SEPARATOR_S.
* plug-ins/gdyntext/font_selection.c: When compiling with current
CVS GTk+ (i.e., on Win32 most likely) use the gdk_font_list_*
functions instead of Xlib's XListFonts() and XFreeFontNames().
* plug-ins/gdyntext/gdyntext.c: Use G_PI.
* plug-ins/gdyntext/gdyntext_ui.c: Guard inclusion of
unistd.h. Don't unnecessarily include gdkx.h and Xlib.h
* plug-ins/winsnap/winsnap.c: Fix rectangle orientation.
1999-11-10 07:01:31 +08:00
|
|
|
|
2000-01-05 02:09:51 +08:00
|
|
|
endif # ifndef MODULE
|
1999-07-03 10:27:32 +08:00
|
|
|
endif # ifndef PLUGIN
|
|
|
|
endif # ifndef LIBRARY
|
|
|
|
|
|
|
|
ifndef FROMPLUGINSDIR
|
|
|
|
|
|
|
|
# This part is used when building individual plug-ins or one of
|
|
|
|
# the libraries.
|
|
|
|
|
Include config.h, guard inclusion of <unistd.h>.
1999-09-14 Tor Lillqvist <tml@iki.fi>
* app/brush_select.c: Include config.h, guard inclusion of
<unistd.h>.
* app/gimpcontextpreview.c: Include config.h, <string.h> and
appenv.h.
* app/xinput_airbrush.c: Include config.h, <stdio.h>, appenv.h and
libgimp/gimpmath.h. Use G_PI.
* app/makefile.{cygwin,msc}: Updates.
* plug-ins/makefile.{cygwin,msc}: Add the unofficial sel_gauss
plug-in. Add new object files for FractalExplorer and
gimpressionist.
* plug-ins/common/iwarp.c (iwarp_deform): Combine two loops over
the same xi, yi area into one. Remove the then actually unused
deform_area_vectors array. Only one element of the array was used
for each x,yi loop.
* plug-ins/common/sparkle.c: Don't include <math.h>,
libgimp/gimpmath.h includes it. Use G_PI.
1999-09-15 05:20:04 +08:00
|
|
|
ifdef EXTRA_FractalExplorer
|
|
|
|
OBJECTS = \
|
|
|
|
Dialogs.o \
|
|
|
|
Events.o \
|
|
|
|
FractalExplorer.o \
|
2000-03-09 02:32:31 +08:00
|
|
|
Globals.o
|
Include config.h, guard inclusion of <unistd.h>.
1999-09-14 Tor Lillqvist <tml@iki.fi>
* app/brush_select.c: Include config.h, guard inclusion of
<unistd.h>.
* app/gimpcontextpreview.c: Include config.h, <string.h> and
appenv.h.
* app/xinput_airbrush.c: Include config.h, <stdio.h>, appenv.h and
libgimp/gimpmath.h. Use G_PI.
* app/makefile.{cygwin,msc}: Updates.
* plug-ins/makefile.{cygwin,msc}: Add the unofficial sel_gauss
plug-in. Add new object files for FractalExplorer and
gimpressionist.
* plug-ins/common/iwarp.c (iwarp_deform): Combine two loops over
the same xi, yi area into one. Remove the then actually unused
deform_area_vectors array. Only one element of the array was used
for each x,yi loop.
* plug-ins/common/sparkle.c: Don't include <math.h>,
libgimp/gimpmath.h includes it. Use G_PI.
1999-09-15 05:20:04 +08:00
|
|
|
endif
|
|
|
|
|
1999-07-03 10:27:32 +08:00
|
|
|
ifdef EXTRA_Lighting
|
|
|
|
OBJECTS = \
|
|
|
|
lighting_apply.o \
|
|
|
|
lighting_image.o \
|
|
|
|
lighting_main.o \
|
|
|
|
lighting_preview.o \
|
|
|
|
lighting_shade.o \
|
|
|
|
lighting_ui.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_MapObject
|
|
|
|
OBJECTS = \
|
|
|
|
arcball.o \
|
|
|
|
mapobject_apply.o \
|
|
|
|
mapobject_image.o \
|
|
|
|
mapobject_main.o \
|
|
|
|
mapobject_preview.o \
|
|
|
|
mapobject_shade.o \
|
|
|
|
mapobject_ui.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_bmp
|
|
|
|
OBJECTS = \
|
|
|
|
bmp.o \
|
|
|
|
bmpread.o \
|
|
|
|
bmpwrite.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_dbbrowser
|
|
|
|
OBJECTS = \
|
|
|
|
dbbrowser.o \
|
|
|
|
dbbrowser_utils.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_faxg3
|
|
|
|
OBJECTS = \
|
|
|
|
faxg3.o \
|
|
|
|
g3.o \
|
|
|
|
run_tbl.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_fits
|
|
|
|
OBJECTS = \
|
|
|
|
fits.o \
|
|
|
|
fitsrw.o
|
|
|
|
endif
|
|
|
|
|
2000-07-19 05:49:50 +08:00
|
|
|
ifdef EXTRA_fixer
|
|
|
|
CXX = c++ -mno-cygwin -mpentium -fnative-struct
|
|
|
|
OBJECTS = \
|
|
|
|
fixer.o
|
|
|
|
EXTRALIBS = -lstdc++
|
|
|
|
.cc.o:
|
|
|
|
$(CXX) $(CFLAGS) -c $< -o $@
|
|
|
|
endif
|
|
|
|
|
1999-07-03 10:27:32 +08:00
|
|
|
ifdef EXTRA_flame
|
|
|
|
OBJECTS = \
|
|
|
|
cmap.o \
|
|
|
|
flame.o \
|
|
|
|
libifs.o \
|
|
|
|
rect.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_fp
|
|
|
|
OBJECTS = \
|
|
|
|
fp.o \
|
|
|
|
fp_gdk.o \
|
|
|
|
fp_gtk.o \
|
|
|
|
fp_misc.o
|
|
|
|
endif
|
|
|
|
|
Must call gimp_set_remove_handler() to remove the browser_info_update
1999-11-09 Tor Lillqvist <tml@iki.fi>
* app/module_db.c (browser_destroy_callback): Must call
gimp_set_remove_handler() to remove the browser_info_update
handler from the GimpSet 'modules'.
Otherwise if we bring up the module browser, then close it, this
will call browser_destroy_callback(), which will free the
'browser_st' struct. Later when we exit the GIMP, the modules will
be unloaded, which will cause browser_info_update() to be called,
and passed the pointer to the already freed 'browser_st'. Whoopee.
Thanks to Electric Fence for pointing this out.
* app/makefile.{cygwin,msc}: Remove actionarea.
* libgimp/gimp.h: Change declaration of nonexistent function
gimp_layer_attach_new_parasite() to declaration of
gimp_drawable_attach_new_parasite(), which was missing.
* libgimp/gimpui.def
* libgimp/makefile.{cygwin,msc}: Add gimpcolorbutton.
* plug-ins/makefile.{cygwin,msc}: Add gap_filter and gap_plugins.
* plug-ins/common/gz.c: Fix renamed variable in Win32 part.
* plug-ins/gap/gap_lib.c: Use G_DIR_SEPARATOR_S.
* plug-ins/gdyntext/font_selection.c: When compiling with current
CVS GTk+ (i.e., on Win32 most likely) use the gdk_font_list_*
functions instead of Xlib's XListFonts() and XFreeFontNames().
* plug-ins/gdyntext/gdyntext.c: Use G_PI.
* plug-ins/gdyntext/gdyntext_ui.c: Guard inclusion of
unistd.h. Don't unnecessarily include gdkx.h and Xlib.h
* plug-ins/winsnap/winsnap.c: Fix rectangle orientation.
1999-11-10 07:01:31 +08:00
|
|
|
ifdef EXTRA_gap_filter
|
|
|
|
OBJECTS = \
|
|
|
|
gap_filter_main.o \
|
|
|
|
gap_dbbrowser_utils.o \
|
|
|
|
gap_filter_foreach.o \
|
|
|
|
gap_filter_iterators.o \
|
|
|
|
gap_filter_pdb.o \
|
|
|
|
gap_filter_codegen.o \
|
|
|
|
gap_arr_dialog.o \
|
|
|
|
gap_pdb_calls.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_gap_plugins
|
1999-10-26 03:20:41 +08:00
|
|
|
OBJECTS = \
|
|
|
|
gap_main.o \
|
|
|
|
gap_mov_exec.o \
|
|
|
|
gap_range_ops.o \
|
|
|
|
gap_arr_dialog.o \
|
|
|
|
gap_mov_dialog.o \
|
|
|
|
gap_layer_copy.o \
|
|
|
|
gap_split.o \
|
|
|
|
gap_resi_dialog.o \
|
|
|
|
gap_mpege.o \
|
|
|
|
gap_mod_layer.o \
|
|
|
|
gap_filter_pdb.o \
|
|
|
|
gap_filter_codegen.o \
|
|
|
|
gap_dbbrowser_utils.o \
|
|
|
|
gap_match.o \
|
|
|
|
gap_lib.o \
|
|
|
|
gap_exchange_image.o \
|
|
|
|
gap_pdb_calls.o \
|
|
|
|
resize.o
|
|
|
|
endif
|
|
|
|
|
1999-07-03 10:27:32 +08:00
|
|
|
ifdef EXTRA_gdyntext
|
|
|
|
OBJECTS = \
|
|
|
|
charmap.o \
|
|
|
|
charmap_window.o \
|
|
|
|
font_selection.o \
|
|
|
|
gdyntext.o \
|
2000-07-19 05:49:50 +08:00
|
|
|
gdyntextcompat.o \
|
1999-07-03 10:27:32 +08:00
|
|
|
gdyntext_ui.o \
|
|
|
|
message_window.o
|
|
|
|
endif
|
|
|
|
|
2000-02-04 12:31:18 +08:00
|
|
|
ifdef EXTRA_gflare
|
|
|
|
OBJECTS = \
|
|
|
|
asupsample.o \
|
|
|
|
gflare.o \
|
|
|
|
gtkmultioptionmenu.o
|
|
|
|
endif
|
|
|
|
|
1999-07-03 10:27:32 +08:00
|
|
|
ifdef EXTRA_gfli
|
|
|
|
OBJECTS = \
|
2000-02-04 12:31:18 +08:00
|
|
|
fli.o \
|
1999-07-03 10:27:32 +08:00
|
|
|
gfli.o
|
|
|
|
endif
|
|
|
|
|
1999-10-03 08:43:05 +08:00
|
|
|
ifdef EXTRA_helpbrowser
|
|
|
|
OBJECTS = \
|
|
|
|
helpbrowser.o \
|
|
|
|
queue.o
|
|
|
|
endif
|
|
|
|
|
2000-07-30 05:32:55 +08:00
|
|
|
ifdef EXTRA_homogenizer
|
|
|
|
CXX = c++ -mno-cygwin -mpentium -fnative-struct
|
|
|
|
OBJECTS = \
|
|
|
|
homogenize.o
|
|
|
|
EXTRALIBS = -lstdc++
|
|
|
|
.cc.o:
|
|
|
|
$(CXX) $(CFLAGS) -c $< -o $@
|
|
|
|
endif
|
|
|
|
|
1999-07-03 10:27:32 +08:00
|
|
|
ifdef EXTRA_ifscompose
|
|
|
|
OBJECTS = \
|
|
|
|
ifscompose.o \
|
|
|
|
ifscompose_storage.o \
|
|
|
|
ifscompose_utils.o
|
|
|
|
endif
|
|
|
|
|
1999-10-26 03:20:41 +08:00
|
|
|
ifdef EXTRA_imagemap
|
|
|
|
OBJECTS = \
|
|
|
|
imap_cmd_copy_object.o \
|
|
|
|
imap_about.o \
|
|
|
|
imap_browse.o \
|
|
|
|
imap_cern_lex.o \
|
|
|
|
imap_cern_parse.o \
|
|
|
|
imap_circle.o \
|
|
|
|
imap_cmd_clear.o \
|
|
|
|
imap_cmd_copy.o \
|
|
|
|
imap_cmd_create.o \
|
|
|
|
imap_cmd_cut.o \
|
|
|
|
imap_cmd_cut_object.o \
|
|
|
|
imap_cmd_delete.o \
|
|
|
|
imap_cmd_delete_point.o \
|
|
|
|
imap_cmd_edit_object.o \
|
|
|
|
imap_cmd_guides.o \
|
|
|
|
imap_cmd_insert_point.o \
|
|
|
|
imap_cmd_move.o \
|
|
|
|
imap_cmd_move_down.o \
|
|
|
|
imap_cmd_move_sash.o \
|
|
|
|
imap_cmd_move_selected.o \
|
|
|
|
imap_cmd_move_to_front.o \
|
|
|
|
imap_cmd_move_up.o \
|
|
|
|
imap_cmd_object_down.o \
|
|
|
|
imap_cmd_object_move.o \
|
|
|
|
imap_cmd_object_up.o \
|
|
|
|
imap_cmd_paste.o \
|
|
|
|
imap_cmd_select.o \
|
|
|
|
imap_cmd_select_all.o \
|
|
|
|
imap_cmd_select_next.o \
|
|
|
|
imap_cmd_select_prev.o \
|
|
|
|
imap_cmd_select_region.o \
|
|
|
|
imap_cmd_send_to_back.o \
|
|
|
|
imap_cmd_unselect.o \
|
|
|
|
imap_cmd_unselect_all.o \
|
|
|
|
imap_command.o \
|
|
|
|
imap_csim_lex.o \
|
|
|
|
imap_csim_parse.o \
|
|
|
|
imap_default_dialog.o \
|
|
|
|
imap_edit_area_info.o \
|
|
|
|
imap_file.o \
|
|
|
|
imap_grid.o \
|
|
|
|
imap_main.o \
|
|
|
|
imap_menu.o \
|
|
|
|
imap_menu_funcs.o \
|
|
|
|
imap_misc.o \
|
|
|
|
imap_mru.o \
|
|
|
|
imap_ncsa_lex.o \
|
|
|
|
imap_ncsa_parse.o \
|
|
|
|
imap_object.o \
|
|
|
|
imap_object_popup.o \
|
|
|
|
imap_polygon.o \
|
|
|
|
imap_popup.o \
|
|
|
|
imap_preferences.o \
|
|
|
|
imap_preview.o \
|
|
|
|
imap_rectangle.o \
|
|
|
|
imap_selection.o \
|
|
|
|
imap_settings.o \
|
|
|
|
imap_source.o \
|
|
|
|
imap_statusbar.o \
|
|
|
|
imap_string.o \
|
|
|
|
imap_table.o \
|
|
|
|
imap_toolbar.o \
|
|
|
|
imap_tools.o
|
|
|
|
endif
|
|
|
|
|
1999-07-03 10:27:32 +08:00
|
|
|
ifdef EXTRA_jpeg
|
2000-07-05 02:50:03 +08:00
|
|
|
EXTRACFLAGS = $(JPEG_CFLAGS)
|
|
|
|
EXTRALIBS = $(JPEG_LIBS)
|
1999-07-03 10:27:32 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_maze
|
|
|
|
OBJECTS = \
|
|
|
|
algorithms.o \
|
|
|
|
handy.o \
|
|
|
|
maze.o \
|
|
|
|
maze_face.o
|
|
|
|
endif
|
|
|
|
|
2000-01-05 02:09:51 +08:00
|
|
|
ifdef EXTRA_mpeg
|
|
|
|
EXTRACFLAGS = -I$(MPEG)
|
|
|
|
EXTRALIBS = -L $(MPEG)/release -lmpeg
|
|
|
|
endif
|
|
|
|
|
1999-07-03 10:27:32 +08:00
|
|
|
ifdef EXTRA_png
|
2000-07-05 02:50:03 +08:00
|
|
|
EXTRACFLAGS = $(PNG_CFLAGS)
|
|
|
|
EXTRALIBS = $(PNG_LIBS)
|
1999-07-03 10:27:32 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_print
|
|
|
|
OBJECTS = \
|
|
|
|
print.o \
|
|
|
|
print-escp2.o \
|
|
|
|
print-pcl.o \
|
|
|
|
print-ps.o \
|
|
|
|
print-util.o
|
|
|
|
endif
|
|
|
|
|
1999-08-22 03:00:41 +08:00
|
|
|
ifdef EXTRA_psp
|
2000-07-05 02:50:03 +08:00
|
|
|
EXTRACFLAGS = $(ZLIB_CFLAGS)
|
|
|
|
EXTRALIBS = $(ZLIB_LIBS)
|
1999-08-22 03:00:41 +08:00
|
|
|
endif
|
|
|
|
|
1999-07-03 10:27:32 +08:00
|
|
|
ifdef EXTRA_rcm
|
|
|
|
OBJECTS = \
|
|
|
|
rcm.o \
|
|
|
|
rcm_callback.o \
|
|
|
|
rcm_dialog.o \
|
|
|
|
rcm_gdk.o \
|
|
|
|
rcm_misc.o
|
|
|
|
OPTIMIZE =
|
|
|
|
endif
|
|
|
|
|
2000-07-19 05:49:50 +08:00
|
|
|
ifdef EXTRA_resynthesizer
|
|
|
|
CXX = c++ -mno-cygwin -mpentium -fnative-struct
|
|
|
|
OBJECTS = \
|
|
|
|
resynth.o
|
|
|
|
EXTRALIBS = -lstdc++
|
|
|
|
.cc.o:
|
|
|
|
$(CXX) $(CFLAGS) -c $< -o $@
|
|
|
|
endif
|
|
|
|
|
1999-07-03 10:27:32 +08:00
|
|
|
ifdef EXTRA_script_fu
|
|
|
|
OBJECTS = \
|
|
|
|
interp_md5.o \
|
|
|
|
interp_regex.o \
|
|
|
|
interp_slib.o \
|
|
|
|
interp_sliba.o \
|
|
|
|
interp_trace.o \
|
|
|
|
script-fu.o \
|
|
|
|
script-fu-console.o \
|
1999-10-03 08:43:05 +08:00
|
|
|
script-fu-constants.o \
|
1999-07-03 10:27:32 +08:00
|
|
|
script-fu-scripts.o \
|
|
|
|
regex.o \
|
1999-10-26 03:20:41 +08:00
|
|
|
dbbrowser_utils.o
|
|
|
|
|
|
|
|
EXTRACFLAGS = -DREGEX_MALLOC -I../dbbrowser
|
1999-07-03 10:27:32 +08:00
|
|
|
HAVE_RESOURCE = YES
|
1999-10-26 03:20:41 +08:00
|
|
|
|
|
|
|
dbbrowser_utils.c : ../dbbrowser/dbbrowser_utils.c
|
|
|
|
cp $< $@
|
1999-07-03 10:27:32 +08:00
|
|
|
endif
|
|
|
|
|
1999-07-15 00:02:32 +08:00
|
|
|
ifdef EXTRA_sel2path
|
|
|
|
OBJECTS = \
|
|
|
|
curve.o \
|
|
|
|
edge.o \
|
|
|
|
fit.o \
|
|
|
|
math.o \
|
|
|
|
pxl-outline.o \
|
|
|
|
sel2path.o \
|
|
|
|
sel2path_adv_dialog.o \
|
|
|
|
spline.o \
|
|
|
|
vector.o
|
|
|
|
endif
|
|
|
|
|
1999-07-03 10:27:32 +08:00
|
|
|
ifdef EXTRA_sgi
|
|
|
|
OBJECTS = \
|
|
|
|
sgi.o \
|
|
|
|
sgilib.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_tiff
|
2000-07-05 02:50:03 +08:00
|
|
|
EXTRACFLAGS = $(TIFF_CFLAGS)
|
|
|
|
EXTRALIBS = $(TIFF_LIBS)
|
1999-07-03 10:27:32 +08:00
|
|
|
endif
|
|
|
|
|
1999-07-15 00:02:32 +08:00
|
|
|
ifdef EXTRA_gimp_ace
|
2000-07-19 05:49:50 +08:00
|
|
|
EXTRACFLAGS = -DGLACE_GIMP -DPLUGIN_NAME=\"gimp_ace\" -DDATA
|
1999-07-15 00:02:32 +08:00
|
|
|
OBJECTS = \
|
2000-07-19 05:49:50 +08:00
|
|
|
src/dialog.o \
|
|
|
|
src/gimp_ace.o \
|
|
|
|
src/glace.o \
|
|
|
|
src/glaceG.o \
|
|
|
|
src/preview.o
|
1999-07-15 00:02:32 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_gimpressionist
|
|
|
|
OBJECTS = \
|
1999-07-30 06:07:17 +08:00
|
|
|
about.o \
|
1999-07-15 00:02:32 +08:00
|
|
|
brush.o \
|
Include config.h, guard inclusion of <unistd.h>.
1999-09-14 Tor Lillqvist <tml@iki.fi>
* app/brush_select.c: Include config.h, guard inclusion of
<unistd.h>.
* app/gimpcontextpreview.c: Include config.h, <string.h> and
appenv.h.
* app/xinput_airbrush.c: Include config.h, <stdio.h>, appenv.h and
libgimp/gimpmath.h. Use G_PI.
* app/makefile.{cygwin,msc}: Updates.
* plug-ins/makefile.{cygwin,msc}: Add the unofficial sel_gauss
plug-in. Add new object files for FractalExplorer and
gimpressionist.
* plug-ins/common/iwarp.c (iwarp_deform): Combine two loops over
the same xi, yi area into one. Remove the then actually unused
deform_area_vectors array. Only one element of the array was used
for each x,yi loop.
* plug-ins/common/sparkle.c: Don't include <math.h>,
libgimp/gimpmath.h includes it. Use G_PI.
1999-09-15 05:20:04 +08:00
|
|
|
color.o \
|
1999-07-15 00:02:32 +08:00
|
|
|
general.o \
|
|
|
|
gimp.o \
|
1999-07-30 06:07:17 +08:00
|
|
|
gimpressionist.o \
|
|
|
|
orientation.o \
|
|
|
|
orientmap.o \
|
|
|
|
paper.o \
|
|
|
|
placement.o \
|
1999-07-15 00:02:32 +08:00
|
|
|
plasma.o \
|
1999-07-30 06:07:17 +08:00
|
|
|
ppmtool.o \
|
1999-07-15 00:02:32 +08:00
|
|
|
presets.o \
|
1999-07-30 06:07:17 +08:00
|
|
|
preview.o \
|
|
|
|
repaint.o \
|
|
|
|
size.o \
|
|
|
|
sizemap.o
|
1999-07-15 00:02:32 +08:00
|
|
|
endif
|
|
|
|
|
1999-07-03 10:27:32 +08:00
|
|
|
ifdef EXTRA_guash
|
|
|
|
HAVE_RESOURCE = YES
|
|
|
|
endif
|
|
|
|
|
2000-04-11 04:47:04 +08:00
|
|
|
ifdef EXTRA_magiceye
|
|
|
|
OBJECTS = \
|
|
|
|
dialog.o \
|
|
|
|
magiceye.o
|
|
|
|
endif
|
|
|
|
|
2000-05-05 02:41:22 +08:00
|
|
|
ifdef EXTRA_mathmap
|
|
|
|
OBJECTS = \
|
|
|
|
builtins.o \
|
|
|
|
builtins_compiler.o \
|
|
|
|
cgen.o \
|
|
|
|
colorwell.o \
|
|
|
|
exprtree.o \
|
|
|
|
internals.o \
|
|
|
|
jump.o \
|
|
|
|
lispreader.o \
|
|
|
|
macros.o \
|
|
|
|
mathmap.o \
|
|
|
|
noise.o \
|
|
|
|
overload.o \
|
|
|
|
parser.o \
|
|
|
|
postfix.o \
|
|
|
|
scanner.o \
|
|
|
|
tags.o \
|
|
|
|
tuples.o \
|
|
|
|
userval.o \
|
|
|
|
vars.o
|
|
|
|
|
|
|
|
EXTRACFLAGS = -Drandom=g_random_int
|
|
|
|
|
|
|
|
parser.c parser.h : parser.y
|
|
|
|
bison -p mm -d parser.y
|
|
|
|
mv parser.tab.c parser.c
|
|
|
|
mv parser.tab.h parser.h
|
|
|
|
|
|
|
|
scanner.c : scanner.fl parser.h
|
|
|
|
flex -Pmm scanner.fl
|
|
|
|
mv lex.mm.c scanner.c
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
1999-07-03 10:27:32 +08:00
|
|
|
ifdef EXTRA_user_filter
|
1999-07-15 00:02:32 +08:00
|
|
|
|
|
|
|
uf_lexer.c : uf_lexer.l
|
|
|
|
flex -Cem -ouf_lexer.c uf_lexer.l
|
|
|
|
uf_parser.tab.c: uf_parser.y
|
|
|
|
bison --defines --verbose uf_parser.y
|
|
|
|
|
1999-07-03 10:27:32 +08:00
|
|
|
OBJECTS = \
|
|
|
|
libyywrap.o \
|
|
|
|
uf_eval.o \
|
|
|
|
uf_file.o \
|
|
|
|
uf_gui.o \
|
|
|
|
uf_lexer.o \
|
|
|
|
uf_main.o \
|
|
|
|
uf_parser.tab.o
|
|
|
|
endif
|
|
|
|
|
app/appenv.h New file. Includes <math.h>. Move G_PI, RINT(), ROUND() etc
1999-09-01 Tor Lillqvist <tml@iki.fi>
* app/appenv.h
* libgimp/gimpmath.h: New file. Includes <math.h>. Move G_PI,
RINT(), ROUND() etc from app/appenv.h here, so plug-ins can
use them, too. Remove some commented-out old stuff in appenv.h.
* libgimp/gimp.h: Include gimpmath.h.
* libgimp/gimp.c (gimp_main): Win32: Don't install signal
handlers, we can't do anything useful in the handler ourselves
anyway (it would be nice to print out a backtrace, but that seems
pretty hard to do, even if not impossible). Let Windows inform the
user about the crash. If the plug-in was compiled with MSVC, and
the user also has it, she is offered a chance to start the
debugger automatically anyway.
* app/*several*.c: Include gimpmath.h for G_PI etc. Don't include
<math.h>, as gimpmath.h includes it.
* plug-ins/*/*many*.c: Include config.h. Don't include <math.h>.
Remove all the duplicated definitions of G_PI and rint(). Use
RINT() instead of rint().
* app/app_procs.[ch]: app_exit() takes a gboolean.
* app/batch.c
* app/commands.c
* app/interface.c: Call app_exit() with FALSE or TRUE.
* app/main.c (on_error): Call gimp_fatal_error. (main): Don't
install any signal handler on Win32 here, either.
* app/errors.c (gimp_fatal_error, gimp_terminate): Win32: Format
the message and call MessageBox with it. g_on_error_query doesn't
do anything useful on Win32, and printf'ing a message to stdout or
stderr doesn't do anything, either, in a windowing application.
1999-09-02 04:30:56 +08:00
|
|
|
ifdef EXTRA_pmosaic
|
2000-07-05 02:50:03 +08:00
|
|
|
EXTRACFLAGS = $(JPEG_CFLAGS)
|
|
|
|
EXTRALIBS = $(JPEG_LIBS)
|
app/appenv.h New file. Includes <math.h>. Move G_PI, RINT(), ROUND() etc
1999-09-01 Tor Lillqvist <tml@iki.fi>
* app/appenv.h
* libgimp/gimpmath.h: New file. Includes <math.h>. Move G_PI,
RINT(), ROUND() etc from app/appenv.h here, so plug-ins can
use them, too. Remove some commented-out old stuff in appenv.h.
* libgimp/gimp.h: Include gimpmath.h.
* libgimp/gimp.c (gimp_main): Win32: Don't install signal
handlers, we can't do anything useful in the handler ourselves
anyway (it would be nice to print out a backtrace, but that seems
pretty hard to do, even if not impossible). Let Windows inform the
user about the crash. If the plug-in was compiled with MSVC, and
the user also has it, she is offered a chance to start the
debugger automatically anyway.
* app/*several*.c: Include gimpmath.h for G_PI etc. Don't include
<math.h>, as gimpmath.h includes it.
* plug-ins/*/*many*.c: Include config.h. Don't include <math.h>.
Remove all the duplicated definitions of G_PI and rint(). Use
RINT() instead of rint().
* app/app_procs.[ch]: app_exit() takes a gboolean.
* app/batch.c
* app/commands.c
* app/interface.c: Call app_exit() with FALSE or TRUE.
* app/main.c (on_error): Call gimp_fatal_error. (main): Don't
install any signal handler on Win32 here, either.
* app/errors.c (gimp_fatal_error, gimp_terminate): Win32: Format
the message and call MessageBox with it. g_on_error_query doesn't
do anything useful on Win32, and printf'ing a message to stdout or
stderr doesn't do anything, either, in a windowing application.
1999-09-02 04:30:56 +08:00
|
|
|
OBJECTS = \
|
|
|
|
pmosaic.o \
|
|
|
|
pmsc.o
|
|
|
|
endif
|
|
|
|
|
1999-07-03 10:27:32 +08:00
|
|
|
ifdef EXTRA_twain
|
|
|
|
OBJECTS = \
|
|
|
|
tw_func.o \
|
|
|
|
tw_util.o \
|
|
|
|
twain.o
|
|
|
|
EXTRALIBS = -luser32
|
|
|
|
endif
|
|
|
|
|
Update gcc instructions. Remove warning about gettext being GPL, as the
* README.win32: Update gcc instructions. Remove warning about
gettext being GPL, as the GIMP is GPL, too, of course, and it
thus doesn't matter.
* user_install.bat: Rename the template user gtkrc to gtkrc_user,
to reduce user confusion.
* app/main.c: Small change for gcc on Win32 compilation.
* */makefile.cygwin
* app/module_db.c: With newest gcc-2.95 -fnative-struct on Win32,
no need to have differently named DLLs (including modules) for
(built by) gcc and MSVC.
* app/module_db.c: Use g_strdup_printf() instead of
strlen(), g_malloc() and g_snprintf()
* libgimp/Makefile.am: No need to distribute gimpfeatures.h.win32,
the suitable gimpfeatures.h is built when making the dist.
* libgimp/gimpfeatures.h.win32: Removed.
* libgimp/makefile.cygwin
* libgimp/makefile.msc: Remove gimpfeatures.h.win32.
* libgimp/gimp.h: Win32 startup code changed a bit.
* plug-ins/makefile.cygwin
* plug-ins/makefile.msc: Add the winsnap unofficial plug-in.
* plug-ins/common/animationplay.c
* plug-ins/common/gz.c: (Win32) Hack aroung WinMain getting
clashing declarations because these guys include gdkx.h (which
includes windows.h), and gimp.h also declares WinMain on its own.
1999-07-22 03:52:20 +08:00
|
|
|
ifdef EXTRA_winsnap
|
|
|
|
HAVE_RESOURCE = YES
|
|
|
|
endif
|
|
|
|
|
2000-06-07 06:24:53 +08:00
|
|
|
PLUGINDIR = $(GIMPTOP)/plug-ins
|
1999-07-03 10:27:32 +08:00
|
|
|
|
2000-06-07 06:24:53 +08:00
|
|
|
DEFINES = -DHAVE_CONFIG_H $(EXTRACFLAGS)
|
|
|
|
INCLUDES = -I . -I $(GIMPTOP) -I $(PLUGINDIR) -I $(PLUGINDIR)/libgck
|
|
|
|
DEPCFLAGS = $(GLIB_CFLAGS) $(GTK_CFLAGS) $(INTL_CFLAGS)
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
ifdef PLUGIN
|
|
|
|
|
|
|
|
# This part is used when building individual plug-ins
|
|
|
|
|
|
|
|
all : $(PLUGIN).exe
|
|
|
|
|
|
|
|
install : all
|
2000-06-07 06:24:53 +08:00
|
|
|
$(INSTALL) $(PLUGIN).exe $(DEST)/plug-ins
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
ifndef OBJECTS
|
|
|
|
OBJECTS = $(PLUGIN).o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef HAVE_RESOURCE
|
|
|
|
# We have our own resource file (just an icon, usually)
|
|
|
|
RESOURCE = $(PLUGIN)res.o
|
|
|
|
else
|
|
|
|
# Use the Wilber icon otherwise. If gimp.exe eventually gets more resources,
|
|
|
|
# this will have to be changed.
|
|
|
|
RESOURCE = ../../app/gimpres.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(PLUGIN).exe : $(OBJECTS) $(RESOURCE)
|
2000-07-19 05:49:50 +08:00
|
|
|
$(CC) $(CFLAGS) -mwindows -o $(PLUGIN).exe $(OBJECTS) $(RESOURCE) -L $(PLUGINDIR)/libgck/gck -lgck -L ../../libgimp -lgimp-$(GIMP_VER) -lgimpui-$(GIMP_VER) $(GTK_LIBS) $(INTL_LIBS) $(GLIB_LIBS) $(EXTRALIBS) $(LDFLAGS)
|
Update gcc instructions. Remove warning about gettext being GPL, as the
* README.win32: Update gcc instructions. Remove warning about
gettext being GPL, as the GIMP is GPL, too, of course, and it
thus doesn't matter.
* user_install.bat: Rename the template user gtkrc to gtkrc_user,
to reduce user confusion.
* app/main.c: Small change for gcc on Win32 compilation.
* */makefile.cygwin
* app/module_db.c: With newest gcc-2.95 -fnative-struct on Win32,
no need to have differently named DLLs (including modules) for
(built by) gcc and MSVC.
* app/module_db.c: Use g_strdup_printf() instead of
strlen(), g_malloc() and g_snprintf()
* libgimp/Makefile.am: No need to distribute gimpfeatures.h.win32,
the suitable gimpfeatures.h is built when making the dist.
* libgimp/gimpfeatures.h.win32: Removed.
* libgimp/makefile.cygwin
* libgimp/makefile.msc: Remove gimpfeatures.h.win32.
* libgimp/gimp.h: Win32 startup code changed a bit.
* plug-ins/makefile.cygwin
* plug-ins/makefile.msc: Add the winsnap unofficial plug-in.
* plug-ins/common/animationplay.c
* plug-ins/common/gz.c: (Win32) Hack aroung WinMain getting
clashing declarations because these guys include gdkx.h (which
includes windows.h), and gimp.h also declares WinMain on its own.
1999-07-22 03:52:20 +08:00
|
|
|
|
|
|
|
# Kludge to get the path to the win32 headers
|
2000-06-07 05:33:19 +08:00
|
|
|
WIN32APIHEADERS=$(shell echo "\#include <winver.h>" | $(CC) -M -E - | tail -1 | sed -e 's![\\/]winver.h!!' | tr -d '\015')
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
$(PLUGIN)res.o : $(PLUGIN).rc
|
Update gcc instructions. Remove warning about gettext being GPL, as the
* README.win32: Update gcc instructions. Remove warning about
gettext being GPL, as the GIMP is GPL, too, of course, and it
thus doesn't matter.
* user_install.bat: Rename the template user gtkrc to gtkrc_user,
to reduce user confusion.
* app/main.c: Small change for gcc on Win32 compilation.
* */makefile.cygwin
* app/module_db.c: With newest gcc-2.95 -fnative-struct on Win32,
no need to have differently named DLLs (including modules) for
(built by) gcc and MSVC.
* app/module_db.c: Use g_strdup_printf() instead of
strlen(), g_malloc() and g_snprintf()
* libgimp/Makefile.am: No need to distribute gimpfeatures.h.win32,
the suitable gimpfeatures.h is built when making the dist.
* libgimp/gimpfeatures.h.win32: Removed.
* libgimp/makefile.cygwin
* libgimp/makefile.msc: Remove gimpfeatures.h.win32.
* libgimp/gimp.h: Win32 startup code changed a bit.
* plug-ins/makefile.cygwin
* plug-ins/makefile.msc: Add the winsnap unofficial plug-in.
* plug-ins/common/animationplay.c
* plug-ins/common/gz.c: (Win32) Hack aroung WinMain getting
clashing declarations because these guys include gdkx.h (which
includes windows.h), and gimp.h also declares WinMain on its own.
1999-07-22 03:52:20 +08:00
|
|
|
windres --include-dir $(WIN32APIHEADERS) $(PLUGIN).rc $(PLUGIN)res.o
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef LIBRARY
|
|
|
|
|
|
|
|
# This part is used when building a library
|
|
|
|
|
|
|
|
all : lib$(LIBRARY).a
|
|
|
|
|
|
|
|
install : all
|
|
|
|
|
|
|
|
ifndef OBJECTS
|
|
|
|
OBJECTS = $(LIBRARY).o
|
|
|
|
endif
|
|
|
|
|
|
|
|
lib$(LIBRARY).a : $(OBJECTS)
|
|
|
|
-rm $@
|
|
|
|
ar rc $@ $(OBJECTS)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2000-01-05 02:09:51 +08:00
|
|
|
ifdef MODULE
|
|
|
|
|
|
|
|
# This part is used when building a module
|
|
|
|
|
|
|
|
# (This doesn't work, the only module so far is pygimp, and only Hans Breuer
|
|
|
|
# builds it, with MSVC.)
|
|
|
|
|
|
|
|
# Allow building libraries with specific extensions
|
|
|
|
ifndef MODULE_EXT
|
|
|
|
MODULE_EXT = dll
|
|
|
|
endif
|
|
|
|
|
|
|
|
all : $(MODULE).$(MODULE_EXT)
|
|
|
|
|
|
|
|
install : all
|
|
|
|
|
|
|
|
ifndef OBJECTS
|
|
|
|
OBJECTS = $(MODULE).o
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(MODULE).$(MODULE_EXT) : $(OBJECTS) $(MODULE).def
|
2000-06-07 06:24:53 +08:00
|
|
|
$(CC) $(CFLAGS) -mwindows -s -o $@ $(OBJECTS) $(LDFLAGS) $(EXTRALIBS) -L ../../libgimp -lgimp-$(GIMP_VER) -lgimpui-$(GIMP_VER) $(GTK_LIBS) $(GLIB_LIBS)
|
2000-01-05 02:09:51 +08:00
|
|
|
endif
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
endif # ifndef FROMPLUGINSDIR
|