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.
|
|
|
|
|
|
|
|
INSTALL = install
|
|
|
|
|
|
|
|
GIMP = /gimp
|
|
|
|
|
|
|
|
BIN = $(GIMP)/plug-ins
|
|
|
|
|
|
|
|
ifndef LIBRARY
|
|
|
|
ifndef PLUGIN
|
|
|
|
|
|
|
|
# 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
|
1999-07-29 07:47:45 +08:00
|
|
|
COMMON1 = CEL CML_explorer align_layers animationplay animoptimize apply_lens autocrop autostretch_hsv blinds blur 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
|
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
|
|
|
COMMON3 = gauss_iir gauss_rle gbr gee gicon gif gifload glasstile gqbist gradmap grid gtm guillotine gz header hot hrz illusion iwarp jigsaw jpeg laplace lic
|
1999-07-03 10:27:32 +08:00
|
|
|
COMMON4 = mapcolor max_rgb mblur newsprint nlfilt noisify normalize nova oilify palette papertile pat pcx pix pixelize plasma plugindetails png pnm polar ps psd randomize ripple rotate rotators
|
1999-07-29 07:47:45 +08:00
|
|
|
COMMON5 = sample_colorize scatter_hsv semiflatten sharpen shift smooth_palette snoise sobel sparkle spread sunras tga threshold_alpha tiff tile tileit tiler video vinvert vpropagate waves whirlpinch wind wmf xbm xwd zealouscrop
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
# These have own subdirectories each
|
1999-08-02 05:42:51 +08:00
|
|
|
SEPARATE = AlienMap FractalExplorer Lighting MapObject bmp borderaverage dbbrowser faxg3 fits flame fp gfig gfli ifscompose maze mosaic pagecurl rcm sel2path sgi sinus struc unsharp winprint 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".
|
|
|
|
|
1999-07-29 08:23:51 +08:00
|
|
|
UNOFFICIAL = Anamorphose RGB_Displace ccanalyze fuse gimp_ace gimpressionist guash user_filter twain
|
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
|
|
|
|
|
|
|
|
install : libs-install common-plugins-install separate-plugins-install scripts-install
|
|
|
|
|
|
|
|
unofficial:
|
|
|
|
for d in $(UNOFFICIAL); do $(MAKE) -f makefile.cygwin sub-one-separate DIR=$$d TARGET=install; done
|
1999-07-30 06:07:17 +08:00
|
|
|
-mkdir $(GIMP)/gimpressionist $(GIMP)/gimpressionist/Brushes $(GIMP)/gimpressionist/Paper $(GIMP)/gimpressionist/Presets
|
|
|
|
$(INSTALL) gimpressionist/Brushes/* $(GIMP)/gimpressionist/Brushes
|
|
|
|
$(INSTALL) gimpressionist/Paper/* $(GIMP)/gimpressionist/Paper
|
|
|
|
$(INSTALL) gimpressionist/Presets/* $(GIMP)/gimpressionist/Presets
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
clean : libs-clean common-plugins-clean separate-plugins-clean
|
|
|
|
|
|
|
|
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:
|
|
|
|
cd megawidget; $(MAKE) -f ../makefile.cygwin TOP=../.. LIBRARY=megawidget $(TARGET)
|
|
|
|
cd gpc; $(MAKE) -f ../makefile.cygwin TOP=../.. LIBRARY=gpc $(TARGET)
|
|
|
|
cd libgck/gck; $(MAKE) -f ../../makefile.cygwin TOP=../../.. LIBRARY=gck OBJECTS="gckcolor.o gcklistbox.o gckmath.o gckui.o gckvector.o" $(TARGET)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 :
|
|
|
|
cd common; $(MAKE) -f ../makefile.cygwin LIBRARY=PLUGIN=dummy clean
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 :
|
|
|
|
cd common; $(MAKE) -f ../makefile.cygwin TOP=../.. PLUGIN=$(DIR) EXTRA_$(DIR)=1 $(TARGET)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
1999-08-02 05:42:51 +08:00
|
|
|
sub-separate-plugins : sub-script-fu
|
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 :
|
1999-07-03 10:27:32 +08:00
|
|
|
cd script-fu; $(MAKE) -f ../makefile.cygwin TOP=../.. PLUGIN=script-fu EXTRA_script_fu=1 $(TARGET)
|
|
|
|
|
|
|
|
sub-one-separate :
|
|
|
|
cd $(DIR); $(MAKE) -f ../makefile.cygwin TOP=../.. PLUGIN=$(DIR) EXTRA_$(DIR)=1 $(TARGET)
|
|
|
|
|
|
|
|
|
|
|
|
scripts-install :
|
1999-07-30 06:07:17 +08:00
|
|
|
-mkdir $(GIMP)/scripts
|
1999-07-03 10:27:32 +08:00
|
|
|
$(INSTALL) script-fu/scripts/*.scm $(GIMP)/scripts
|
|
|
|
$(INSTALL) script-fu/scripts/*.jpg $(GIMP)/scripts
|
|
|
|
for d in FractalExplorer/fractalexplorer-examples/*; do if [ -f $$d ]; then $(INSTALL) $$d $(GIMP)/fractalexplorer; fi; done
|
|
|
|
rm $(GIMP)/fractalexplorer/Makefile.am
|
|
|
|
|
|
|
|
endif # ifndef PLUGIN
|
|
|
|
endif # ifndef LIBRARY
|
|
|
|
|
|
|
|
ifndef FROMPLUGINSDIR
|
|
|
|
|
|
|
|
# This part is used when building individual plug-ins or one of
|
|
|
|
# the libraries.
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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_hsv.o \
|
|
|
|
fp_misc.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_gdyntext
|
|
|
|
# Doesn't compile yet, though, so not included in list above
|
|
|
|
OBJECTS = \
|
|
|
|
charmap.o \
|
|
|
|
charmap_window.o \
|
|
|
|
font_selection.o \
|
|
|
|
gdyntext.o \
|
|
|
|
gdyntext_ui.o \
|
|
|
|
message_window.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_gfli
|
|
|
|
OBJECTS = \
|
|
|
|
fli.o \
|
|
|
|
gfli.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_ifscompose
|
|
|
|
OBJECTS = \
|
|
|
|
ifscompose.o \
|
|
|
|
ifscompose_storage.o \
|
|
|
|
ifscompose_utils.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_jpeg
|
|
|
|
# Location of jpeg-6b sources
|
|
|
|
JPEG = $(TOP)/../jpeg-6b
|
|
|
|
EXTRACFLAGS = -I$(JPEG)
|
|
|
|
EXTRALIBS = -L $(JPEG) -ljpeg
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_maze
|
|
|
|
OBJECTS = \
|
|
|
|
algorithms.o \
|
|
|
|
handy.o \
|
|
|
|
maze.o \
|
|
|
|
maze_face.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_png
|
|
|
|
# Location of libpng sources
|
|
|
|
PNG = $(TOP)/../libpng-1.0.3
|
|
|
|
# And zlib
|
|
|
|
ZLIB = $(TOP)/../zlib-1.1.3
|
|
|
|
EXTRACFLAGS = -I$(PNG) -I$(ZLIB)
|
|
|
|
EXTRALIBS = -L $(PNG) -lpng -L $(ZLIB) -lz
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_print
|
|
|
|
OBJECTS = \
|
|
|
|
print.o \
|
|
|
|
print-escp2.o \
|
|
|
|
print-pcl.o \
|
|
|
|
print-ps.o \
|
|
|
|
print-util.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_rcm
|
|
|
|
OBJECTS = \
|
|
|
|
rcm.o \
|
|
|
|
rcm_callback.o \
|
|
|
|
rcm_dialog.o \
|
|
|
|
rcm_gdk.o \
|
|
|
|
rcm_misc.o
|
|
|
|
OPTIMIZE =
|
|
|
|
endif
|
|
|
|
|
|
|
|
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 \
|
|
|
|
script-fu-scripts.o \
|
|
|
|
regex.o \
|
|
|
|
../dbbrowser/dbbrowser_utils.o
|
|
|
|
EXTRACFLAGS = -DREGEX_MALLOC
|
|
|
|
HAVE_RESOURCE = YES
|
|
|
|
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
|
|
|
|
# Location of tiff-3.4 sources
|
|
|
|
TIFF = $(TOP)/../tiff-v3.4/libtiff
|
|
|
|
# Location of jpeg-6b sources
|
|
|
|
JPEG = $(TOP)/../jpeg-6b
|
|
|
|
# And zlib
|
|
|
|
ZLIB = $(TOP)/../zlib-1.1.3
|
|
|
|
EXTRACFLAGS = -I$(TIFF)
|
|
|
|
EXTRALIBS = -L $(TIFF) -ltiff -L $(JPEG) -ljpeg -L $(ZLIB) -lz -luser32
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef EXTRA_unsharp
|
|
|
|
OBJECTS = \
|
|
|
|
dialog_f.o \
|
1999-07-15 00:02:32 +08:00
|
|
|
dialog_i.o \
|
1999-07-03 10:27:32 +08:00
|
|
|
unsharp.o
|
|
|
|
endif
|
|
|
|
|
1999-07-15 00:02:32 +08:00
|
|
|
ifdef EXTRA_gimp_ace
|
|
|
|
EXTRACFLAGS = -DGLACE_GIMP
|
|
|
|
OBJECTS = \
|
|
|
|
gimp_ace.o \
|
|
|
|
glace.o \
|
|
|
|
glaceG.o
|
|
|
|
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 \
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
1999-07-03 10:27:32 +08:00
|
|
|
GIMP_VER = 1.1
|
|
|
|
GTK_VER = 1.3
|
|
|
|
GLIB_VER = 1.3
|
|
|
|
|
|
|
|
GTK = $(TOP)/../gtk+
|
|
|
|
GLIB = $(TOP)/../glib
|
|
|
|
GETTEXT = $(TOP)/../gettext-0.10.35
|
|
|
|
|
|
|
|
PLUGINDIR = $(TOP)/plug-ins
|
|
|
|
|
|
|
|
OPTIMIZE = -O
|
|
|
|
|
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
|
|
|
CC = gcc $(OPTIMIZE) -mno-cygwin -mpentium -fnative-struct
|
1999-07-03 10:27:32 +08:00
|
|
|
|
|
|
|
CFLAGS = -DHAVE_CONFIG_H $(EXTRACFLAGS) -I. -I$(TOP) -I$(PLUGINDIR) -I$(PLUGINDIR)/libgck -I$(GLIB) -I$(GTK)/gdk/win32 -I$(GTK) -I$(GETTEXT)/intl
|
|
|
|
|
|
|
|
ifdef PLUGIN
|
|
|
|
|
|
|
|
# This part is used when building individual plug-ins
|
|
|
|
|
|
|
|
all : $(PLUGIN).exe
|
|
|
|
|
|
|
|
install : all
|
|
|
|
$(INSTALL) $(PLUGIN).exe $(BIN)
|
|
|
|
|
|
|
|
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)
|
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
|
|
|
$(CC) $(CFLAGS) -mwindows -s -o $(PLUGIN).exe $(OBJECTS) $(RESOURCE) -L $(PLUGINDIR)/megawidget -lmegawidget -L $(PLUGINDIR)/gpc -lgpc -L $(PLUGINDIR)/libgck/gck -lgck -L ../../libgimp -lgimp-$(GIMP_VER) -lgimpui-$(GIMP_VER) -L $(GTK)/gtk -lgtk-$(GTK_VER) -L $(GTK)/gdk/win32 -lgdk-$(GTK_VER) -L $(GETTEXT)/intl -lgnu-intl -L $(GLIB) -lglib-$(GLIB_VER) $(EXTRALIBS) $(LDFLAGS)
|
|
|
|
|
|
|
|
# Kludge to get the path to the win32 headers
|
|
|
|
WIN32APIHEADERS = $(shell echo "\#include <winver.h>" | $(CC) -M -E - | tail -1 | sed -e 's!/winver.h!!')
|
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
|
|
|
|
|
|
|
|
|
|
|
|
.c.o :
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
|
|
|
clean :
|
|
|
|
-rm *.o *.a *.exe
|
|
|
|
|
|
|
|
endif # ifndef FROMPLUGINSDIR
|