1999-06-29 01:54:19 +08:00
|
|
|
# Makefile to build the GIMP plug-ins with Microsoft nmake and compiler
|
1999-05-29 09:28:24 +08:00
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
# I don't want to use many hand-written makefiles, so this is quite complex.
|
1999-05-29 09:28:24 +08:00
|
|
|
# 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 = copy
|
|
|
|
|
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.
|
|
|
|
GIMP = C:\install\gimp
|
1999-05-29 09:28:24 +08:00
|
|
|
|
|
|
|
BIN = $(GIMP)\plug-ins
|
|
|
|
|
2001-02-07 09:16:18 +08:00
|
|
|
!IFNDEF GIMPTOP
|
|
|
|
GIMPTOP = ..
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
TOP = ..\$(GIMPTOP)
|
2002-02-17 23:55:54 +08:00
|
|
|
!INCLUDE $(TOP)\glib\build\win32\make.msc
|
2004-02-08 07:01:33 +08:00
|
|
|
!INCLUDE $(GIMPTOP)\gimpdefs.msc
|
2001-02-07 09:16:18 +08:00
|
|
|
|
1999-05-29 09:28:24 +08:00
|
|
|
!IFNDEF LIBRARY
|
|
|
|
!IFNDEF PLUGIN
|
2000-01-05 02:09:51 +08:00
|
|
|
!IFNDEF MODULE
|
1999-05-29 09:28:24 +08:00
|
|
|
|
|
|
|
# This part is used when making from the plug-ins directory
|
|
|
|
|
|
|
|
FROMPLUGINSDIR=YES # Used to bypass other parts below
|
|
|
|
|
|
|
|
# List plug-ins. We must use several lists to work around nmake's limits
|
1999-06-29 01:54:19 +08:00
|
|
|
|
|
|
|
# The COMMON* ones are in the common subdirectory
|
2004-07-12 05:53:17 +08:00
|
|
|
COMMON1 = AlienMap2 ccanalyze CEL channel_mixer CML_explorer align_layers animationplay animoptimize apply_lens autocrop autostretch_hsv blinds blur borderaverage bumpmap c_astretch checkerboard color_enhance colorify colortoalpha compose convmatrix csource cubism curve_bend
|
|
|
|
COMMON2 = decompose deinterlace depthmerge despeckle destripe dicom diffraction displace edge emboss engrave exchange film flarefx fractaltrace
|
2004-08-02 04:51:12 +08:00
|
|
|
COMMON3 = gauss gbr gee gee_zoom gif gifload gih glasstile gqbist gradmap grid gtm guillotine gz header hot illusion iwarp jigsaw jpeg laplace lic
|
2004-07-12 05:53:17 +08:00
|
|
|
COMMON4 = mapcolor max_rgb mblur mosaic newsprint nlfilt noisify normalize nova oilify papertile pat pcx pix pixelize plasma plugindetails png pnm polar postscript psd psd_save psp randomize ripple rotate
|
|
|
|
COMMON5 = sample_colorize scatter_hsv screenshot sel_gauss semiflatten sharpen shift sinus smooth_palette snoise sobel sparkle spheredesigner spread struc sunras svg tga threshold_alpha tiff tile tileit tiler uniteditor unsharp video vinvert vpropagate
|
|
|
|
COMMON6 = warp waves webbrowser whirlpinch winclipboard wind winprint wiredebug xbm xwd zealouscrop
|
2004-03-08 07:13:51 +08:00
|
|
|
|
|
|
|
NOTNOW = wmf
|
2001-02-07 09:16:18 +08:00
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
# These have own subdirectories each
|
2004-07-12 05:53:17 +08:00
|
|
|
SEPARATE = FractalExplorer Lighting MapObject bmp dbbrowser faxg3 fits flame fp gfig gflare gfli gimpressionist helpbrowser ifscompose imagemap maze mosaic pagecurl rcm sel2path sgi twain winicon winsnap xjt
|
1999-06-29 01:54:19 +08:00
|
|
|
|
|
|
|
# These are unofficial, ie not in the CVS. To build these, you should
|
1999-06-15 06:18:02 +08:00
|
|
|
# get tml's source snapshot and copy this makefile to the
|
1999-07-03 10:27:32 +08:00
|
|
|
# ..\unofficial-plug-ins directory, go there, and do "nmake -f
|
|
|
|
# makefile.msc unofficial".
|
1999-05-29 09:28:24 +08:00
|
|
|
|
2003-11-17 05:20:14 +08:00
|
|
|
UNOFFICIAL = Anamorphose DigitalSignature RGB_Displace gimp_ace guash sel_gauss magiceye psd_save user_filter
|
1999-05-29 09:28:24 +08:00
|
|
|
|
|
|
|
# The main target
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
all : ..\config.h libs-all common-plugins-all separate-plugins-all
|
1999-05-29 09:28:24 +08:00
|
|
|
|
|
|
|
..\config.h : ..\config.h.win32
|
|
|
|
copy ..\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-05-29 09:28:24 +08:00
|
|
|
|
1999-06-15 06:18:02 +08:00
|
|
|
unofficial:
|
1999-06-29 01:54:19 +08:00
|
|
|
for %d in ($(UNOFFICIAL)) do nmake -nologo -f makefile.msc sub-one-separate DIR=%d TARGET=install
|
1999-06-15 06:18:02 +08:00
|
|
|
|
2001-02-07 09:16:18 +08:00
|
|
|
clean :: libs-clean common-plugins-clean separate-plugins-clean
|
1999-05-29 09:28:24 +08:00
|
|
|
|
|
|
|
libs-all :
|
|
|
|
@nmake -nologo -f makefile.msc sub-libs TARGET=all
|
|
|
|
|
|
|
|
libs-install :
|
|
|
|
@nmake -nologo -f makefile.msc sub-libs TARGET=install
|
|
|
|
|
|
|
|
libs-clean :
|
|
|
|
@nmake -nologo -f makefile.msc sub-libs TARGET=clean
|
|
|
|
|
|
|
|
sub-libs:
|
2003-12-13 09:35:19 +08:00
|
|
|
cd libgimpoldpreview
|
|
|
|
nmake -nologo -f ..\makefile.msc GIMPTOP=..\.. LIBRARY=gimpoldpreview OBJECTS="gimpoldpreview.obj" $(TARGET)
|
|
|
|
cd ..
|
|
|
|
cd script-fu\siod
|
|
|
|
nmake -nologo -f ..\..\makefile.msc GIMPTOP=..\..\.. LIBRARY=siod OBJECTS="trace.obj slib.obj sliba.obj regex.obj" $(TARGET)
|
|
|
|
cd ..\..
|
1999-05-29 09:28:24 +08:00
|
|
|
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
common-plugins-all :
|
|
|
|
@nmake -nologo -f makefile.msc sub-common-plugins TARGET=all
|
1999-05-29 09:28:24 +08:00
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
common-plugins-install :
|
|
|
|
@nmake -nologo -f makefile.msc sub-common-plugins TARGET=install
|
1999-05-29 09:28:24 +08:00
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
common-plugins-clean :
|
|
|
|
@nmake -nologo -f makefile.msc sub-common-plugins TARGET=clean
|
1999-05-29 09:28:24 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
sub-common-plugins :
|
|
|
|
for %d in ($(COMMON1)) do nmake -nologo -f makefile.msc sub-one-common DIR=%d TARGET=$(TARGET)
|
|
|
|
for %d in ($(COMMON2)) do nmake -nologo -f makefile.msc sub-one-common DIR=%d TARGET=$(TARGET)
|
|
|
|
for %d in ($(COMMON3)) do nmake -nologo -f makefile.msc sub-one-common DIR=%d TARGET=$(TARGET)
|
|
|
|
for %d in ($(COMMON4)) do nmake -nologo -f makefile.msc sub-one-common DIR=%d TARGET=$(TARGET)
|
|
|
|
for %d in ($(COMMON5)) do nmake -nologo -f makefile.msc sub-one-common DIR=%d TARGET=$(TARGET)
|
2001-02-07 09:16:18 +08:00
|
|
|
for %d in ($(COMMON6)) do nmake -nologo -f makefile.msc sub-one-common DIR=%d TARGET=$(TARGET)
|
1999-05-29 09:28:24 +08:00
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
sub-one-common :
|
|
|
|
@cd common
|
2001-02-07 09:16:18 +08:00
|
|
|
@nmake -nologo -f ..\makefile.msc GIMPTOP=..\.. PLUGIN=$(DIR) EXTRA_$(DIR)=1 $(TARGET)
|
1999-05-29 09:28:24 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
separate-plugins-all :
|
|
|
|
@nmake -nologo -f makefile.msc sub-separate-plugins TARGET=all
|
1999-05-29 09:28:24 +08:00
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
separate-plugins-install :
|
|
|
|
@nmake -nologo -f makefile.msc sub-separate-plugins TARGET=install
|
1999-05-29 09:28:24 +08:00
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
separate-plugins-clean :
|
|
|
|
@nmake -nologo -f makefile.msc sub-separate-plugins TARGET=clean
|
1999-05-29 09:28:24 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
sub-separate-plugins :
|
|
|
|
for %d in ($(SEPARATE)) do nmake -nologo -f makefile.msc sub-one-separate DIR=%d TARGET=$(TARGET)
|
1999-05-29 09:28:24 +08:00
|
|
|
# We must handle script-fu separately because of the dash, sigh
|
|
|
|
@cd script-fu
|
2001-02-07 09:16:18 +08:00
|
|
|
@nmake -nologo -f ..\makefile.msc GIMPTOP=..\.. PLUGIN=script-fu EXTRA_script_fu=1 $(TARGET)
|
1999-05-29 09:28:24 +08:00
|
|
|
@cd ..
|
2003-05-25 01:00:03 +08:00
|
|
|
|
1999-05-29 09:28:24 +08:00
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
sub-one-separate :
|
|
|
|
cd $(DIR)
|
2001-02-07 09:16:18 +08:00
|
|
|
nmake -nologo -f ..\makefile.msc GIMPTOP=..\.. PLUGIN=$(DIR) EXTRA_$(DIR)=1 $(TARGET)
|
1999-05-29 09:28:24 +08:00
|
|
|
|
|
|
|
|
2000-02-04 12:31:18 +08:00
|
|
|
data-install : gimpressionist-data-install guash-data-install
|
1999-07-30 06:07:17 +08:00
|
|
|
-md $(GIMP)\scripts
|
1999-05-29 09:28:24 +08:00
|
|
|
$(INSTALL) script-fu\scripts\*.scm $(GIMP)\scripts
|
|
|
|
$(INSTALL) script-fu\scripts\*.jpg $(GIMP)\scripts
|
|
|
|
$(INSTALL) FractalExplorer\fractalexplorer-examples\* $(GIMP)\fractalexplorer
|
1999-06-15 06:18:02 +08:00
|
|
|
del $(GIMP)\fractalexplorer\Makefile.am
|
1999-05-29 09:28:24 +08:00
|
|
|
|
1999-08-27 07:49:39 +08:00
|
|
|
gimpressionist-data-install :
|
|
|
|
-md $(GIMP)\gimpressionist
|
|
|
|
-md $(GIMP)\gimpressionist\Brushes
|
|
|
|
-md $(GIMP)\gimpressionist\Paper
|
|
|
|
-md $(GIMP)\gimpressionist\Presets
|
|
|
|
$(INSTALL) gimpressionist\Brushes\*.pgm $(GIMP)\gimpressionist\Brushes
|
|
|
|
$(INSTALL) gimpressionist\Brushes\*.ppm $(GIMP)\gimpressionist\Brushes
|
|
|
|
$(INSTALL) gimpressionist\Paper\*.pgm $(GIMP)\gimpressionist\Paper
|
|
|
|
$(INSTALL) gimpressionist\Presets\* $(GIMP)\gimpressionist\Presets
|
|
|
|
del $(GIMP)\gimpressionist\Presets\Makefile.am
|
|
|
|
|
2000-02-04 12:31:18 +08:00
|
|
|
guash-data-install :
|
|
|
|
|
|
|
|
|
1999-05-29 09:28:24 +08:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
2000-01-05 02:09:51 +08:00
|
|
|
!ENDIF
|
1999-05-29 09:28:24 +08:00
|
|
|
|
|
|
|
!IFNDEF FROMPLUGINSDIR
|
|
|
|
|
|
|
|
# This part is used when building individual plug-ins or one of
|
|
|
|
# the libraries.
|
|
|
|
|
1999-07-15 00:02:32 +08:00
|
|
|
# If a plug-in has several object files, or needs extra libraries or
|
|
|
|
# compiler flags, these are in an EXTRA_xxx part.
|
|
|
|
|
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.obj \
|
2003-11-17 05:20:14 +08:00
|
|
|
FractalExplorer.obj
|
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-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_Lighting
|
2004-08-02 04:51:12 +08:00
|
|
|
STOCK_VARS = \
|
|
|
|
stock_intensity_ambient_high images/stock-intensity-ambient-high.png \
|
|
|
|
stock_intensity_ambient_low images/stock-intensity-ambient-low.png \
|
|
|
|
stock_intensity_diffuse_high images/stock-intensity-diffuse-high.png \
|
|
|
|
stock_intensity_diffuse_low images/stock-intensity-diffuse-low.png \
|
|
|
|
stock_reflectivity_diffuse_high images/stock-reflectivity-diffuse-high.png \
|
|
|
|
stock_reflectivity_diffuse_low images/stock-reflectivity-diffuse-low.png \
|
|
|
|
stock_reflectivity_specular_high images/stock-reflectivity-specular-high.png \
|
|
|
|
stock_reflectivity_specular_low images/stock-reflectivity-specular-low.png \
|
|
|
|
stock_reflectivity_highlight_high images/stock-reflectivity-highlight-high.png \
|
|
|
|
stock_reflectivity_highlight_low images/stock-reflectivity-highlight-low.png
|
|
|
|
|
|
|
|
STOCK_IMAGES = \
|
|
|
|
images/stock-intensity-ambient-high.png \
|
|
|
|
images/stock-intensity-ambient-low.png \
|
|
|
|
images/stock-intensity-diffuse-high.png \
|
|
|
|
images/stock-intensity-diffuse-low.png \
|
|
|
|
images/stock-reflectivity-diffuse-high.png \
|
|
|
|
images/stock-reflectivity-diffuse-low.png \
|
|
|
|
images/stock-reflectivity-specular-high.png \
|
|
|
|
images/stock-reflectivity-specular-low.png \
|
|
|
|
images/stock-reflectivity-highlight-high.png \
|
|
|
|
images/stock-reflectivity-highlight-low.png
|
|
|
|
|
|
|
|
images/stock-pixbufs.h: $(STOCK_IMAGES)
|
|
|
|
gdk-pixbuf-csource --rle --build-list $(STOCK_VARS) > images/stock-pixbufs.h
|
|
|
|
|
|
|
|
EXTRA_DEPS = images/stock-pixbufs.h
|
|
|
|
|
1999-05-29 09:28:24 +08:00
|
|
|
OBJECTS = \
|
|
|
|
lighting_apply.obj \
|
|
|
|
lighting_image.obj \
|
|
|
|
lighting_main.obj \
|
|
|
|
lighting_preview.obj \
|
|
|
|
lighting_shade.obj \
|
2004-08-02 04:51:12 +08:00
|
|
|
lighting_stock.obj \
|
1999-05-29 09:28:24 +08:00
|
|
|
lighting_ui.obj
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_MapObject
|
1999-05-29 09:28:24 +08:00
|
|
|
OBJECTS = \
|
|
|
|
arcball.obj \
|
|
|
|
mapobject_apply.obj \
|
|
|
|
mapobject_image.obj \
|
|
|
|
mapobject_main.obj \
|
|
|
|
mapobject_preview.obj \
|
|
|
|
mapobject_shade.obj \
|
|
|
|
mapobject_ui.obj
|
1999-07-15 00:02:32 +08:00
|
|
|
OPTIMIZE =
|
1999-05-29 09:28:24 +08:00
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_bmp
|
1999-05-29 09:28:24 +08:00
|
|
|
OBJECTS = \
|
|
|
|
bmp.obj \
|
|
|
|
bmpread.obj \
|
|
|
|
bmpwrite.obj
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_dbbrowser
|
1999-05-29 09:28:24 +08:00
|
|
|
OBJECTS = \
|
|
|
|
dbbrowser.obj \
|
|
|
|
dbbrowser_utils.obj
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_faxg3
|
1999-05-29 09:28:24 +08:00
|
|
|
OBJECTS = \
|
|
|
|
faxg3.obj \
|
|
|
|
g3.obj \
|
|
|
|
run_tbl.obj
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_fits
|
1999-05-29 09:28:24 +08:00
|
|
|
OBJECTS = \
|
|
|
|
fits.obj \
|
|
|
|
fitsrw.obj
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_flame
|
1999-05-29 09:28:24 +08:00
|
|
|
OBJECTS = \
|
|
|
|
cmap.obj \
|
|
|
|
flame.obj \
|
|
|
|
libifs.obj \
|
|
|
|
rect.obj
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_gfli
|
1999-05-29 09:28:24 +08:00
|
|
|
OBJECTS = \
|
|
|
|
fli.obj \
|
|
|
|
gfli.obj
|
|
|
|
!ENDIF
|
|
|
|
|
2003-03-04 02:14:31 +08:00
|
|
|
!IFDEF EXTRA_gfig
|
|
|
|
STOCK_VARS = \
|
|
|
|
stock_bezier images/stock-bezier.png \
|
|
|
|
stock_circle images/stock-circle.png \
|
|
|
|
stock_copy_object images/stock-copy-object.png \
|
|
|
|
stock_curve images/stock-curve.png \
|
|
|
|
stock_delete_object images/stock-delete-object.png \
|
|
|
|
stock_ellipse images/stock-ellipse.png \
|
|
|
|
stock_line images/stock-line.png \
|
|
|
|
stock_move_object images/stock-move-object.png \
|
|
|
|
stock_move_point images/stock-move-point.png \
|
|
|
|
stock_polygon images/stock-polygon.png \
|
|
|
|
stock_spiral images/stock-spiral.png \
|
|
|
|
stock_star images/stock-star.png \
|
|
|
|
stock_logo images/stock-logo.png
|
|
|
|
|
|
|
|
STOCK_IMAGES = \
|
|
|
|
images/stock-bezier.png \
|
|
|
|
images/stock-circle.png \
|
|
|
|
images/stock-copy-object.png \
|
|
|
|
images/stock-curve.png \
|
|
|
|
images/stock-delete-object.png \
|
|
|
|
images/stock-ellipse.png \
|
|
|
|
images/stock-line.png \
|
|
|
|
images/stock-move-object.png \
|
|
|
|
images/stock-move-point.png \
|
|
|
|
images/stock-polygon.png \
|
|
|
|
images/stock-spiral.png \
|
|
|
|
images/stock-star.png \
|
|
|
|
images/stock-logo.png
|
|
|
|
|
|
|
|
images/gfig-stock-pixbufs.h: $(STOCK_IMAGES)
|
|
|
|
gdk-pixbuf-csource --rle --build-list $(STOCK_VARS) > images/gfig-stock-pixbufs.h
|
|
|
|
|
|
|
|
EXTRA_DEPS = images/gfig-stock-pixbufs.h
|
|
|
|
|
|
|
|
OBJECTS = \
|
|
|
|
gfig.obj \
|
2003-11-17 05:20:14 +08:00
|
|
|
gfig-arc.obj \
|
|
|
|
gfig-bezier.obj \
|
|
|
|
gfig-circle.obj \
|
2004-07-12 05:53:17 +08:00
|
|
|
gfig-dialog.obj \
|
2003-11-17 05:20:14 +08:00
|
|
|
gfig-dobject.obj \
|
|
|
|
gfig-ellipse.obj \
|
2003-12-13 09:35:19 +08:00
|
|
|
gfig-grid.obj \
|
2003-11-17 05:20:14 +08:00
|
|
|
gfig-line.obj \
|
|
|
|
gfig-poly.obj \
|
2003-12-13 09:35:19 +08:00
|
|
|
gfig-preview.obj \
|
2003-11-17 05:20:14 +08:00
|
|
|
gfig-spiral.obj \
|
|
|
|
gfig-star.obj \
|
2004-07-12 05:53:17 +08:00
|
|
|
gfig-style.obj \
|
2003-03-04 02:14:31 +08:00
|
|
|
gfig-stock.obj
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_ifscompose
|
1999-05-29 09:28:24 +08:00
|
|
|
OBJECTS = \
|
|
|
|
ifscompose.obj \
|
1999-07-03 10:27:32 +08:00
|
|
|
ifscompose_storage.obj \
|
1999-05-29 09:28:24 +08:00
|
|
|
ifscompose_utils.obj
|
|
|
|
!ENDIF
|
|
|
|
|
1999-10-26 03:20:41 +08:00
|
|
|
!IFDEF EXTRA_imagemap
|
|
|
|
OBJECTS = \
|
|
|
|
imap_cmd_copy_object.obj \
|
|
|
|
imap_about.obj \
|
|
|
|
imap_browse.obj \
|
|
|
|
imap_cern_lex.obj \
|
|
|
|
imap_cern_parse.obj \
|
|
|
|
imap_circle.obj \
|
|
|
|
imap_cmd_clear.obj \
|
|
|
|
imap_cmd_copy.obj \
|
|
|
|
imap_cmd_create.obj \
|
|
|
|
imap_cmd_cut.obj \
|
|
|
|
imap_cmd_cut_object.obj \
|
|
|
|
imap_cmd_delete.obj \
|
|
|
|
imap_cmd_delete_point.obj \
|
|
|
|
imap_cmd_edit_object.obj \
|
2002-09-07 06:25:19 +08:00
|
|
|
imap_cmd_gimp_guides.obj \
|
1999-10-26 03:20:41 +08:00
|
|
|
imap_cmd_guides.obj \
|
|
|
|
imap_cmd_insert_point.obj \
|
|
|
|
imap_cmd_move.obj \
|
|
|
|
imap_cmd_move_down.obj \
|
|
|
|
imap_cmd_move_sash.obj \
|
|
|
|
imap_cmd_move_selected.obj \
|
|
|
|
imap_cmd_move_to_front.obj \
|
|
|
|
imap_cmd_move_up.obj \
|
|
|
|
imap_cmd_object_down.obj \
|
|
|
|
imap_cmd_object_move.obj \
|
|
|
|
imap_cmd_object_up.obj \
|
|
|
|
imap_cmd_paste.obj \
|
|
|
|
imap_cmd_select.obj \
|
|
|
|
imap_cmd_select_all.obj \
|
|
|
|
imap_cmd_select_next.obj \
|
|
|
|
imap_cmd_select_prev.obj \
|
|
|
|
imap_cmd_select_region.obj \
|
|
|
|
imap_cmd_send_to_back.obj \
|
|
|
|
imap_cmd_unselect.obj \
|
|
|
|
imap_cmd_unselect_all.obj \
|
|
|
|
imap_command.obj \
|
|
|
|
imap_csim_lex.obj \
|
|
|
|
imap_csim_parse.obj \
|
|
|
|
imap_default_dialog.obj \
|
|
|
|
imap_edit_area_info.obj \
|
|
|
|
imap_file.obj \
|
|
|
|
imap_grid.obj \
|
|
|
|
imap_main.obj \
|
|
|
|
imap_menu.obj \
|
|
|
|
imap_menu_funcs.obj \
|
|
|
|
imap_misc.obj \
|
|
|
|
imap_mru.obj \
|
|
|
|
imap_ncsa_lex.obj \
|
|
|
|
imap_ncsa_parse.obj \
|
|
|
|
imap_object.obj \
|
|
|
|
imap_object_popup.obj \
|
|
|
|
imap_polygon.obj \
|
|
|
|
imap_popup.obj \
|
|
|
|
imap_preferences.obj \
|
|
|
|
imap_preview.obj \
|
|
|
|
imap_rectangle.obj \
|
|
|
|
imap_selection.obj \
|
|
|
|
imap_settings.obj \
|
|
|
|
imap_source.obj \
|
|
|
|
imap_statusbar.obj \
|
2002-09-07 06:25:19 +08:00
|
|
|
imap_stock.obj \
|
1999-10-26 03:20:41 +08:00
|
|
|
imap_string.obj \
|
|
|
|
imap_table.obj \
|
|
|
|
imap_toolbar.obj \
|
|
|
|
imap_tools.obj
|
2002-05-11 07:33:26 +08:00
|
|
|
# not changing the source which is lexed
|
|
|
|
EXTRACFLAGS = -FIstring.h -FIstdlib.h
|
1999-10-26 03:20:41 +08:00
|
|
|
!ENDIF
|
|
|
|
|
1999-07-15 00:02:32 +08:00
|
|
|
!IFDEF EXTRA_iwarp
|
|
|
|
OPTIMIZE =
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_jpeg
|
1999-05-29 09:28:24 +08:00
|
|
|
EXTRACFLAGS = -I$(JPEG)
|
|
|
|
EXTRALIBS = $(JPEG)\libjpeg.lib
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_maze
|
1999-05-29 09:28:24 +08:00
|
|
|
OBJECTS = \
|
|
|
|
algorithms.obj \
|
|
|
|
handy.obj \
|
|
|
|
maze.obj \
|
|
|
|
maze_face.obj
|
|
|
|
!ENDIF
|
|
|
|
|
2000-01-05 02:09:51 +08:00
|
|
|
!IFDEF EXTRA_mpeg
|
|
|
|
EXTRACFLAGS = -I$(MPEG)
|
|
|
|
EXTRALIBS = $(MPEG)\release\libmpeg.lib
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_png
|
1999-05-29 09:28:24 +08:00
|
|
|
EXTRACFLAGS = -I$(PNG) -I$(ZLIB)
|
|
|
|
EXTRALIBS = $(PNG)\libpng.lib $(ZLIB)\zlib.lib
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_print
|
|
|
|
OBJECTS = \
|
|
|
|
print.obj \
|
|
|
|
print-escp2.obj \
|
|
|
|
print-pcl.obj \
|
|
|
|
print-ps.obj \
|
|
|
|
print-util.obj
|
|
|
|
!ENDIF
|
|
|
|
|
1999-08-22 03:00:41 +08:00
|
|
|
!IFDEF EXTRA_psp
|
|
|
|
EXTRACFLAGS = -I$(ZLIB)
|
|
|
|
EXTRALIBS = $(ZLIB)\zlib.lib user32.lib
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_rcm
|
1999-06-15 06:18:02 +08:00
|
|
|
OBJECTS = \
|
|
|
|
rcm.obj \
|
|
|
|
rcm_callback.obj \
|
|
|
|
rcm_dialog.obj \
|
|
|
|
rcm_gdk.obj \
|
|
|
|
rcm_misc.obj
|
|
|
|
OPTIMIZE =
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_script_fu
|
1999-05-29 09:28:24 +08:00
|
|
|
OBJECTS = \
|
2001-07-23 06:18:01 +08:00
|
|
|
siod-wrapper.obj \
|
1999-05-29 09:28:24 +08:00
|
|
|
script-fu.obj \
|
|
|
|
script-fu-console.obj \
|
1999-10-03 08:43:05 +08:00
|
|
|
script-fu-constants.obj \
|
1999-05-29 09:28:24 +08:00
|
|
|
script-fu-scripts.obj \
|
2001-07-23 06:18:01 +08:00
|
|
|
script-fu-text-console.obj \
|
1999-07-03 10:27:32 +08:00
|
|
|
..\dbbrowser\dbbrowser_utils.obj
|
2003-12-13 09:35:19 +08:00
|
|
|
EXTRALIBS = ..\..\regexrepl\regexrepl.lib siod\siod.lib kernel32.lib
|
1999-05-29 09:28:24 +08:00
|
|
|
EXTRACFLAGS = -DREGEX_MALLOC
|
|
|
|
HAVE_RESOURCE = YES
|
|
|
|
!ENDIF
|
|
|
|
|
1999-07-15 00:02:32 +08:00
|
|
|
!IFDEF EXTRA_sel2path
|
|
|
|
OBJECTS = \
|
|
|
|
curve.obj \
|
|
|
|
edge.obj \
|
|
|
|
fit.obj \
|
|
|
|
math.obj \
|
|
|
|
pxl-outline.obj \
|
|
|
|
sel2path.obj \
|
|
|
|
sel2path_adv_dialog.obj \
|
|
|
|
spline.obj \
|
|
|
|
vector.obj
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_sgi
|
|
|
|
OBJECTS = \
|
|
|
|
sgi.obj \
|
|
|
|
sgilib.obj
|
|
|
|
!ENDIF
|
|
|
|
|
2003-11-17 05:20:14 +08:00
|
|
|
!IFDEF EXTRA_svg
|
|
|
|
EXTRACFLAGS = $(RSVG_CFLAGS)
|
|
|
|
EXTRALIBS = $(RSVG_LIBS)
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_tiff
|
1999-05-29 09:28:24 +08:00
|
|
|
EXTRACFLAGS = -I$(TIFF)
|
|
|
|
EXTRALIBS = $(TIFF)\libtiff.lib $(JPEG)\libjpeg.lib $(ZLIB)\zlib.lib user32.lib
|
|
|
|
!ENDIF
|
|
|
|
|
1999-07-15 00:02:32 +08:00
|
|
|
!IFDEF EXTRA_gimp_ace
|
|
|
|
EXTRACFLAGS = -DGLACE_GIMP
|
|
|
|
OBJECTS = \
|
|
|
|
gimp_ace.obj \
|
|
|
|
glace.obj \
|
|
|
|
glaceG.obj
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF EXTRA_gimpressionist
|
|
|
|
|
2004-02-08 07:01:33 +08:00
|
|
|
gimpressionist.c: logo-pixbuf.h
|
|
|
|
|
|
|
|
logo-pixbuf.h: logo.png
|
2004-07-12 05:53:17 +08:00
|
|
|
gdk-pixbuf-csource --rle --name=logo_data logo.png > $(@F)
|
2004-02-08 07:01:33 +08:00
|
|
|
|
1999-07-15 00:02:32 +08:00
|
|
|
OBJECTS = \
|
|
|
|
brush.obj \
|
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.obj \
|
1999-07-15 00:02:32 +08:00
|
|
|
general.obj \
|
|
|
|
gimp.obj \
|
1999-07-30 06:07:17 +08:00
|
|
|
gimpressionist.obj \
|
2004-08-02 04:51:12 +08:00
|
|
|
globals.obj \
|
1999-07-30 06:07:17 +08:00
|
|
|
orientation.obj \
|
|
|
|
orientmap.obj \
|
|
|
|
paper.obj \
|
|
|
|
placement.obj \
|
1999-07-15 00:02:32 +08:00
|
|
|
plasma.obj \
|
1999-07-30 06:07:17 +08:00
|
|
|
ppmtool.obj \
|
1999-07-15 00:02:32 +08:00
|
|
|
presets.obj \
|
1999-07-30 06:07:17 +08:00
|
|
|
preview.obj \
|
|
|
|
repaint.obj \
|
|
|
|
size.obj \
|
2004-08-02 04:51:12 +08:00
|
|
|
sizemap.obj \
|
|
|
|
utils.obj
|
1999-07-15 00:02:32 +08:00
|
|
|
!ENDIF
|
|
|
|
|
2003-06-19 17:57:35 +08:00
|
|
|
!IFDEF EXTRA_helpbrowser
|
2003-12-13 09:35:19 +08:00
|
|
|
OBJECTS = \
|
|
|
|
helpbrowser.obj \
|
2004-07-12 05:53:17 +08:00
|
|
|
browser-win32.obj \
|
2003-12-13 09:35:19 +08:00
|
|
|
queue.obj \
|
|
|
|
uri.obj
|
2004-07-12 05:53:17 +08:00
|
|
|
EXTRALIBS = user32.lib shell32.lib
|
2003-06-19 17:57:35 +08:00
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_guash
|
1999-05-29 09:28:24 +08:00
|
|
|
HAVE_RESOURCE = YES
|
|
|
|
!ENDIF
|
|
|
|
|
2000-05-11 03:39:03 +08:00
|
|
|
!IFDEF EXTRA_magiceye
|
|
|
|
OBJECTS = \
|
|
|
|
dialog.obj \
|
|
|
|
magiceye.obj
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +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-05-29 09:28:24 +08:00
|
|
|
OBJECTS = \
|
|
|
|
libyywrap.obj \
|
|
|
|
uf_eval.obj \
|
|
|
|
uf_file.obj \
|
|
|
|
uf_gui.obj \
|
|
|
|
uf_lexer.obj \
|
|
|
|
uf_main.obj \
|
|
|
|
uf_parser.tab.obj
|
|
|
|
!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
|
|
|
|
EXTRACFLAGS = -I$(JPEG)
|
|
|
|
EXTRALIBS = $(JPEG)\libjpeg.lib
|
|
|
|
OBJECTS = \
|
|
|
|
pmosaic.obj \
|
|
|
|
pmsc.obj
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_twain
|
1999-05-29 09:28:24 +08:00
|
|
|
OBJECTS = \
|
|
|
|
tw_func.obj \
|
|
|
|
tw_util.obj \
|
2003-05-25 01:00:03 +08:00
|
|
|
!IFDEF DEBUG
|
2001-07-23 06:18:01 +08:00
|
|
|
tw_dump.obj \
|
2003-05-25 01:00:03 +08:00
|
|
|
!ENDIF
|
2004-08-02 04:51:12 +08:00
|
|
|
tw_win.obj \
|
1999-05-29 09:28:24 +08:00
|
|
|
twain.obj
|
1999-06-15 06:18:02 +08:00
|
|
|
EXTRALIBS = user32.lib
|
1999-05-29 09:28:24 +08:00
|
|
|
!ENDIF
|
|
|
|
|
2000-06-07 05:33:19 +08:00
|
|
|
!IFDEF EXTRA_webbrowser
|
|
|
|
EXTRALIBS = shell32.lib
|
|
|
|
!ENDIF
|
|
|
|
|
1999-08-02 05:42:51 +08:00
|
|
|
!IFDEF EXTRA_winprint
|
|
|
|
EXTRALIBS = user32.lib gdi32.lib comdlg32.lib
|
2003-06-19 17:57:35 +08:00
|
|
|
!ENDIF
|
1999-08-02 05:42:51 +08:00
|
|
|
|
1999-08-17 03:33:35 +08:00
|
|
|
!IFDEF EXTRA_winclipboard
|
|
|
|
EXTRALIBS = user32.lib
|
2003-06-19 17:57:35 +08:00
|
|
|
!ENDIF
|
1999-08-17 03:33:35 +08:00
|
|
|
|
2004-07-12 05:53:17 +08:00
|
|
|
!IFDEF EXTRA_winicon
|
|
|
|
OBJECTS = \
|
|
|
|
icodialog.obj \
|
|
|
|
icoload.obj \
|
|
|
|
icosave.obj \
|
|
|
|
main.obj
|
|
|
|
!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
|
|
|
|
EXTRALIBS = user32.lib gdi32.lib
|
2003-06-19 17:57:35 +08:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF EXTRA_xjt
|
|
|
|
OBJECTS = \
|
|
|
|
xjt.obj \
|
2003-11-17 05:20:14 +08:00
|
|
|
xjpeg.obj
|
2003-06-19 17:57:35 +08:00
|
|
|
EXTRACFLAGS = $(JPEG_CFLAGS)
|
|
|
|
EXTRALIBS = $(JPEG_LIBS)
|
|
|
|
!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
|
|
|
|
2001-02-07 09:16:18 +08:00
|
|
|
PLUGINDIR = $(GIMPTOP)\plug-ins
|
1999-05-29 09:28:24 +08:00
|
|
|
|
|
|
|
!IFNDEF OPTIMIZE
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFNDEF DEBUG
|
1999-06-15 06:18:02 +08:00
|
|
|
OPTIMIZE = -Ox
|
1999-06-29 01:54:19 +08:00
|
|
|
!ELSE
|
|
|
|
OPTIMIZE = -Zi
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFNDEF DEBUG
|
|
|
|
LINKDEBUG =
|
|
|
|
RTL = -MD
|
|
|
|
!ELSE
|
|
|
|
LINKDEBUG = /debug
|
|
|
|
RTL = -MDd
|
1999-05-29 09:28:24 +08:00
|
|
|
!ENDIF
|
1999-06-29 01:54:19 +08:00
|
|
|
|
2004-02-08 07:01:33 +08:00
|
|
|
CC = cl -nologo -G5 -GF $(OPTIMIZE) $(RTL) -W2 -Zm400
|
1999-05-29 09:28:24 +08:00
|
|
|
|
2002-05-11 07:33:26 +08:00
|
|
|
CFLAGS = -FImsvc_recommended_pragmas.h \
|
|
|
|
-DHAVE_CONFIG_H $(EXTRACFLAGS) \
|
2002-03-28 08:10:56 +08:00
|
|
|
-DLOCALEDIR=\"?\" \
|
2003-12-13 09:35:19 +08:00
|
|
|
-I. -I$(GIMPTOP) -I$(PLUGINDIR) -I$(PLUGINDIR)\libgimpoldpreview \
|
|
|
|
$(GTK2_CFLAGS) $(INTL_CFLAGS)
|
1999-05-29 09:28:24 +08:00
|
|
|
|
2001-02-07 09:16:18 +08:00
|
|
|
LDFLAGS = /link /subsystem:console /machine:ix86 $(LINKDEBUG)
|
1999-06-29 01:54:19 +08:00
|
|
|
|
1999-05-29 09:28:24 +08:00
|
|
|
!IFDEF PLUGIN
|
|
|
|
|
|
|
|
# This part is used when building individual plug-ins
|
|
|
|
|
|
|
|
all : $(PLUGIN).exe
|
|
|
|
|
|
|
|
install : all
|
|
|
|
$(INSTALL) $(PLUGIN).exe $(BIN)
|
|
|
|
|
|
|
|
!IFNDEF OBJECTS
|
|
|
|
OBJECTS = $(PLUGIN).obj
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF HAVE_RESOURCE
|
1999-07-03 10:27:32 +08:00
|
|
|
# We have our own resource file (just an icon, usually)
|
1999-05-29 09:28:24 +08:00
|
|
|
RESOURCE = $(PLUGIN).res
|
|
|
|
!ELSE
|
1999-07-03 10:27:32 +08:00
|
|
|
# Use the Wilber icon otherwise. If gimp.exe eventually gets more resources,
|
1999-05-29 09:28:24 +08:00
|
|
|
# this will have to be changed.
|
|
|
|
RESOURCE = ..\..\app\gimp.res
|
|
|
|
!ENDIF
|
|
|
|
|
2003-03-04 02:14:31 +08:00
|
|
|
$(PLUGIN).exe : $(EXTRA_DEPS) $(OBJECTS) $(RESOURCE)
|
2001-02-07 09:16:18 +08:00
|
|
|
$(CC) $(CFLAGS) -Fe$(PLUGIN).exe $(OBJECTS) $(RESOURCE) \
|
|
|
|
..\..\libgimp\gimp-$(GIMP_VER).lib ..\..\libgimp\gimpui-$(GIMP_VER).lib \
|
2001-05-26 06:04:21 +08:00
|
|
|
..\..\libgimpbase\gimpbase-$(GIMP_VER).lib \
|
|
|
|
..\..\libgimpcolor\gimpcolor-$(GIMP_VER).lib \
|
|
|
|
..\..\libgimpmath\gimpmath-$(GIMP_VER).lib \
|
2001-02-07 09:16:18 +08:00
|
|
|
..\..\libgimpwidgets\gimpwidgets-$(GIMP_VER).lib \
|
2003-12-13 09:35:19 +08:00
|
|
|
..\libgimpoldpreview\gimpoldpreview.lib \
|
2001-09-23 03:47:27 +08:00
|
|
|
$(GLIB_LIBS) $(GTK2_LIBS) $(INTL_LIBS) $(EXTRALIBS) $(LDFLAGS)
|
1999-05-29 09:28:24 +08:00
|
|
|
|
|
|
|
$(PLUGIN).res : $(PLUGIN).rc
|
|
|
|
rc -r -fo $(PLUGIN).res $(PLUGIN).rc
|
|
|
|
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF LIBRARY
|
|
|
|
|
|
|
|
# This part is used when building a library
|
|
|
|
|
|
|
|
all : $(LIBRARY).lib
|
|
|
|
|
|
|
|
install : all
|
|
|
|
|
|
|
|
!IFNDEF OBJECTS
|
|
|
|
OBJECTS = $(LIBRARY).obj
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
$(LIBRARY).lib : $(OBJECTS)
|
|
|
|
lib /out:$(LIBRARY).lib $(OBJECTS)
|
|
|
|
|
|
|
|
!ENDIF
|
|
|
|
|
2000-01-05 02:09:51 +08:00
|
|
|
!IFDEF MODULE
|
|
|
|
|
|
|
|
# This part is used when building a module
|
|
|
|
|
|
|
|
# Allow building libraries with specific extensions
|
|
|
|
!IFNDEF MODULE_EXT
|
|
|
|
MODULE_EXT = dll
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
all : $(MODULE).$(MODULE_EXT)
|
|
|
|
|
|
|
|
install : all
|
|
|
|
|
|
|
|
!IFNDEF OBJECTS
|
|
|
|
OBJECTS = $(MODULE).obj
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
$(MODULE).$(MODULE_EXT) : $(OBJECTS) $(MODULE).def
|
2001-02-07 09:16:18 +08:00
|
|
|
$(CC) $(CFLAGS) -LD -Fe$@ $(OBJECTS) $(LDFLAGS) $(EXTRALIBS) \
|
|
|
|
..\..\libgimp\gimp-$(GIMP_VER).lib ..\..\libgimp\gimpui-$(GIMP_VER).lib \
|
2002-09-07 06:25:19 +08:00
|
|
|
..\..\libgimpcolor\gimpcolor-$(GIMP_VER).lib \
|
|
|
|
..\..\libgimpbase\gimpbase-$(GIMP_VER).lib \
|
2001-09-23 03:47:27 +08:00
|
|
|
$(GLIB_LIBS) $(GTK2_LIBS) /def:$(MODULE).def
|
2000-01-05 02:09:51 +08:00
|
|
|
!ENDIF
|
1999-05-29 09:28:24 +08:00
|
|
|
|
|
|
|
.c.obj :
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
2001-02-07 09:16:18 +08:00
|
|
|
clean ::
|
1999-05-29 09:28:24 +08:00
|
|
|
erase *.obj
|
|
|
|
erase *.lib
|
|
|
|
erase *.exp
|
|
|
|
erase *.exe
|
1999-06-15 06:18:02 +08:00
|
|
|
erase *.pdb
|
|
|
|
erase *.ilk
|
1999-05-29 09:28:24 +08:00
|
|
|
|
|
|
|
!ENDIF
|