2000-08-25 01:53:43 +08:00
|
|
|
## WARNING: Outdated.
|
|
|
|
|
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
|
|
|
|
|
|
|
|
!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
|
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-06-29 01:54:19 +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 randomize ripple rotate
|
2000-03-09 02:32:31 +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 waves whirlpinch winclipboard wind winprint wmf xbm xwd zealouscrop
|
1999-06-29 01:54:19 +08:00
|
|
|
|
|
|
|
# These have own subdirectories each
|
2000-05-05 02:41:22 +08:00
|
|
|
SEPARATE = AlienMap AlienMap2 FractalExplorer Lighting MapObject bmp dbbrowser faxg3 fits flame fp gdyntext gfig gflare gfli gimpressionist ifscompose imagemap maze mosaic pagecurl rcm sel2path sgi sinus struc twain webbrowser winsnap
|
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
|
|
|
|
2000-05-11 03:39:03 +08:00
|
|
|
UNOFFICIAL = Anamorphose DigitalSignature RGB_Displace ccanalyze 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
|
|
|
|
1999-06-29 01:54:19 +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:
|
|
|
|
cd libgck\gck
|
2000-03-09 02:32:31 +08:00
|
|
|
nmake -nologo -f ..\..\makefile.msc TOP=..\..\.. LIBRARY=gck OBJECTS="gckcolor.obj" $(TARGET)
|
1999-05-29 09:28:24 +08:00
|
|
|
cd ..\..
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|
1999-05-29 09:28:24 +08:00
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
sub-one-common :
|
|
|
|
@cd common
|
|
|
|
@nmake -nologo -f ..\makefile.msc TOP=..\.. 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
|
1999-06-29 01:54:19 +08:00
|
|
|
@nmake -nologo -f ..\makefile.msc TOP=..\.. PLUGIN=script-fu EXTRA_script_fu=1 $(TARGET)
|
1999-05-29 09:28:24 +08:00
|
|
|
@cd ..
|
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
|
|
|
|
@cd gap
|
|
|
|
@nmake -nologo -f ..\makefile.msc TOP=..\.. PLUGIN=gap_filter EXTRA_gap_filter=1 $(TARGET)
|
|
|
|
@cd ..
|
|
|
|
@cd gap
|
|
|
|
@nmake -nologo -f ..\makefile.msc TOP=..\.. PLUGIN=gap_plugins EXTRA_gap_plugins=1 $(TARGET)
|
|
|
|
@cd ..
|
|
|
|
|
1999-05-29 09:28:24 +08:00
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
sub-one-separate :
|
|
|
|
cd $(DIR)
|
|
|
|
nmake -nologo -f ..\makefile.msc TOP=..\.. 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 \
|
|
|
|
Events.obj \
|
|
|
|
FractalExplorer.obj \
|
2000-03-09 02:32:31 +08:00
|
|
|
Globals.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
|
1999-05-29 09:28:24 +08:00
|
|
|
OBJECTS = \
|
|
|
|
lighting_apply.obj \
|
|
|
|
lighting_image.obj \
|
|
|
|
lighting_main.obj \
|
|
|
|
lighting_preview.obj \
|
|
|
|
lighting_shade.obj \
|
|
|
|
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_fp
|
1999-05-29 09:28:24 +08:00
|
|
|
OBJECTS = \
|
|
|
|
fp.obj \
|
|
|
|
fp_gdk.obj \
|
|
|
|
fp_gtk.obj \
|
|
|
|
fp_misc.obj
|
|
|
|
!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.obj \
|
|
|
|
gap_dbbrowser_utils.obj \
|
|
|
|
gap_filter_foreach.obj \
|
|
|
|
gap_filter_iterators.obj \
|
|
|
|
gap_filter_pdb.obj \
|
|
|
|
gap_filter_codegen.obj \
|
|
|
|
gap_arr_dialog.obj \
|
|
|
|
gap_pdb_calls.obj
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF EXTRA_gap_plugins
|
1999-10-26 03:20:41 +08:00
|
|
|
OBJECTS = \
|
|
|
|
gap_main.obj \
|
|
|
|
gap_mov_exec.obj \
|
|
|
|
gap_range_ops.obj \
|
|
|
|
gap_arr_dialog.obj \
|
|
|
|
gap_mov_dialog.obj \
|
|
|
|
gap_layer_copy.obj \
|
|
|
|
gap_split.obj \
|
|
|
|
gap_resi_dialog.obj \
|
|
|
|
gap_mpege.obj \
|
|
|
|
gap_mod_layer.obj \
|
|
|
|
gap_filter_pdb.obj \
|
|
|
|
gap_filter_codegen.obj \
|
|
|
|
gap_dbbrowser_utils.obj \
|
|
|
|
gap_match.obj \
|
|
|
|
gap_lib.obj \
|
|
|
|
gap_exchange_image.obj \
|
|
|
|
gap_pdb_calls.obj \
|
|
|
|
resize.obj
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_gdyntext
|
1999-05-29 09:28:24 +08:00
|
|
|
OBJECTS = \
|
|
|
|
charmap.obj \
|
|
|
|
charmap_window.obj \
|
|
|
|
font_selection.obj \
|
|
|
|
gdyntext.obj \
|
|
|
|
gdyntext_ui.obj \
|
|
|
|
message_window.obj
|
|
|
|
!ENDIF
|
|
|
|
|
2000-03-09 02:32:31 +08:00
|
|
|
!IFDEF EXTRA_gflare
|
2000-02-04 12:31:18 +08:00
|
|
|
OBJECTS = \
|
|
|
|
asupsample.obj \
|
|
|
|
gflare.obj \
|
|
|
|
gtkmultioptionmenu.obj
|
2000-03-09 02:32:31 +08:00
|
|
|
!ENDIF
|
2000-02-04 12:31:18 +08:00
|
|
|
|
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
|
|
|
|
|
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 \
|
|
|
|
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 \
|
|
|
|
imap_string.obj \
|
|
|
|
imap_table.obj \
|
|
|
|
imap_toolbar.obj \
|
|
|
|
imap_tools.obj
|
|
|
|
!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 = \
|
|
|
|
interp_md5.obj \
|
|
|
|
interp_regex.obj \
|
|
|
|
interp_slib.obj \
|
|
|
|
interp_sliba.obj \
|
|
|
|
interp_trace.obj \
|
|
|
|
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 \
|
1999-07-03 10:27:32 +08:00
|
|
|
regex.obj \
|
|
|
|
..\dbbrowser\dbbrowser_utils.obj
|
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
|
|
|
|
|
|
|
|
!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
|
|
|
|
|
|
|
|
OBJECTS = \
|
1999-07-30 06:07:17 +08:00
|
|
|
about.obj \
|
1999-07-15 00:02:32 +08:00
|
|
|
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 \
|
|
|
|
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 \
|
|
|
|
sizemap.obj
|
1999-07-15 00:02:32 +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 \
|
|
|
|
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
|
|
|
|
!endif
|
|
|
|
|
1999-08-17 03:33:35 +08:00
|
|
|
!IFDEF EXTRA_winclipboard
|
|
|
|
EXTRALIBS = user32.lib
|
|
|
|
!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
|
|
|
|
!endif
|
|
|
|
|
2000-12-25 16:08:08 +08:00
|
|
|
GIMP_VER = 1.2
|
1999-05-29 09:28:24 +08:00
|
|
|
GTK_VER = 1.3
|
|
|
|
GLIB_VER = 1.3
|
|
|
|
|
|
|
|
GTK = $(TOP)\..\gtk+
|
|
|
|
GLIB = $(TOP)\..\glib
|
1999-08-16 12:59:48 +08:00
|
|
|
INTL = $(TOP)\..\intl
|
1999-05-29 09:28:24 +08:00
|
|
|
|
1999-08-22 03:00:41 +08:00
|
|
|
# Location of libpng sources
|
|
|
|
PNG = $(TOP)\..\libpng-1.0.3
|
|
|
|
# Location of tiff-3.4 sources
|
|
|
|
TIFF = $(TOP)\..\tiff-v3.4\libtiff
|
|
|
|
# Location of jpeg-6b sources
|
|
|
|
JPEG = $(TOP)\..\jpeg-6b
|
2000-01-05 02:09:51 +08:00
|
|
|
# and zlib
|
1999-08-22 03:00:41 +08:00
|
|
|
ZLIB = $(TOP)\..\zlib-1.1.3
|
2000-01-05 02:09:51 +08:00
|
|
|
# and libmpeg
|
|
|
|
MPEG = $(TOP)\..\mpeg_lib-1.3.0
|
1999-08-22 03:00:41 +08:00
|
|
|
|
1999-05-29 09:28:24 +08:00
|
|
|
PLUGINDIR = $(TOP)\plug-ins
|
|
|
|
|
|
|
|
!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
|
|
|
|
|
|
|
CC = cl -nologo -G5 -GF $(OPTIMIZE) $(RTL) -W2 -Zm200
|
1999-05-29 09:28:24 +08:00
|
|
|
|
2000-01-02 19:56:56 +08:00
|
|
|
CFLAGS = -DHAVE_CONFIG_H $(EXTRACFLAGS) -I. -I$(TOP) -I$(PLUGINDIR) -I$(PLUGINDIR)\libgck -I$(GLIB) -I$(GTK)\gdk -I$(GTK)\gdk -I$(GTK) -I$(INTL)
|
1999-05-29 09:28:24 +08:00
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
LDFLAGS = /link /subsystem:windows /machine:ix86 $(LINKDEBUG)
|
|
|
|
|
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
|
|
|
|
|
|
|
|
$(PLUGIN).exe : $(OBJECTS) $(RESOURCE)
|
2000-01-27 08:26:22 +08:00
|
|
|
$(CC) $(CFLAGS) -MD -Fe$(PLUGIN).exe $(OBJECTS) $(RESOURCE) $(PLUGINDIR)\libgck\gck\gck.lib ..\..\libgimp\gimp-$(GIMP_VER).lib ..\..\libgimp\gimpui-$(GIMP_VER).lib $(GTK)\gtk\gtk-$(GTK_VER).lib $(GTK)\gdk\gdk-$(GTK_VER).lib $(INTL)\gnu-intl.lib $(GLIB)\glib-$(GLIB_VER).lib $(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
|
|
|
|
$(CC) $(CFLAGS) -LD -Fe$@ $(OBJECTS) $(LDFLAGS) $(EXTRALIBS) ..\..\libgimp\gimp-$(GIMP_VER).lib ..\..\libgimp\gimpui-$(GIMP_VER).lib $(GTK)\gtk\gtk-$(GTK_VER).lib $(GLIB)\gmodule-$(GLIB_VER).lib $(GLIB)\glib-$(GLIB_VER).lib /def:$(MODULE).def
|
|
|
|
!ENDIF
|
1999-05-29 09:28:24 +08:00
|
|
|
|
|
|
|
.c.obj :
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
|
|
|
clean :
|
|
|
|
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
|