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
|
|
|
|
|
|
|
|
GIMP = C:\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. 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
|
|
|
|
COMMON1 = CEL CML_explorer align_layers animationplay animoptimize apply_lens autocrop autostretch_hsv blinds blur borderaverage bumpmap c_astretch checkerboard colorify compose convmatrix cubism
|
|
|
|
COMMON2 = decompose deinterlace depthmerge despeckle destripe diffraction displace edge emboss engrave exchange film flarefx fractaltrace
|
1999-07-03 10:27:32 +08:00
|
|
|
COMMON3 = gauss_iir gauss_rle gbr gee gicon gif gifload glasstile gqbist gradmap grid gtm guillotine header hot hrz gz illusion iwarp jigsaw jpeg laplace lic
|
1999-06-29 01:54:19 +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-03 10:27:32 +08:00
|
|
|
COMMON5 = 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-06-29 01:54:19 +08:00
|
|
|
|
|
|
|
# These have own subdirectories each
|
|
|
|
SEPARATE = AlienMap FractalExplorer Lighting MapObject bmp dbbrowser faxg3 fits flame fp gfig gfli ifscompose maze mosaic pagecurl print rcm sgi sinus struc unsharp
|
|
|
|
|
|
|
|
# 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
|
|
|
|
1999-06-15 06:18:02 +08:00
|
|
|
UNOFFICIAL = guash user_filter twain
|
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-06-29 01:54:19 +08:00
|
|
|
install : libs-install common-plugins-install separate-plugins-install scripts-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 megawidget
|
|
|
|
nmake -nologo -f ..\makefile.msc TOP=..\.. LIBRARY=megawidget $(TARGET)
|
|
|
|
cd ..
|
|
|
|
cd gpc
|
|
|
|
nmake -nologo -f ..\makefile.msc TOP=..\.. LIBRARY=gpc $(TARGET)
|
|
|
|
cd ..
|
|
|
|
cd libgck\gck
|
|
|
|
nmake -nologo -f ..\..\makefile.msc TOP=..\..\.. LIBRARY=gck OBJECTS="gckcolor.obj gcklistbox.obj gckmath.obj gckui.obj gckvector.obj" $(TARGET)
|
|
|
|
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 ..
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
scripts-install :
|
|
|
|
$(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
|
|
|
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFNDEF FROMPLUGINSDIR
|
|
|
|
|
|
|
|
# This part is used when building individual plug-ins or one of
|
|
|
|
# the libraries.
|
|
|
|
|
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
|
|
|
|
!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_hsv.obj \
|
|
|
|
fp_misc.obj
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_gdyntext
|
1999-05-29 09:28:24 +08:00
|
|
|
# Doesn't compile yet, though, so not included in list above
|
|
|
|
OBJECTS = \
|
|
|
|
charmap.obj \
|
|
|
|
charmap_window.obj \
|
|
|
|
font_selection.obj \
|
|
|
|
gdyntext.obj \
|
|
|
|
gdyntext_ui.obj \
|
|
|
|
message_window.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
|
|
|
|
|
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-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_jpeg
|
1999-05-29 09:28:24 +08:00
|
|
|
# Location of jpeg-6b sources
|
|
|
|
JPEG = $(TOP)\..\jpeg-6b
|
|
|
|
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
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_png
|
1999-05-29 09:28:24 +08:00
|
|
|
# Location of libpng sources
|
|
|
|
PNG = $(TOP)\..\libpng-1.0.3
|
|
|
|
# And zlib
|
|
|
|
ZLIB = $(TOP)\..\zlib-1.1.3
|
|
|
|
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
|
|
|
|
|
|
|
|
!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 \
|
|
|
|
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-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
|
|
|
# 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 = $(TIFF)\libtiff.lib $(JPEG)\libjpeg.lib $(ZLIB)\zlib.lib user32.lib
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_unsharp
|
|
|
|
OBJECTS = \
|
|
|
|
dialog_f.obj \
|
|
|
|
unsharp.obj
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFDEF EXTRA_guash
|
1999-05-29 09:28:24 +08:00
|
|
|
HAVE_RESOURCE = YES
|
|
|
|
!ENDIF
|
|
|
|
|
1999-06-29 01:54:19 +08:00
|
|
|
!IFDEF EXTRA_user_filter
|
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
|
|
|
|
|
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
|
|
|
|
|
|
|
|
GIMP_VER = 1.1
|
|
|
|
GTK_VER = 1.3
|
|
|
|
GLIB_VER = 1.3
|
|
|
|
|
|
|
|
GTK = $(TOP)\..\gtk+
|
|
|
|
GLIB = $(TOP)\..\glib
|
1999-06-15 06:18:02 +08:00
|
|
|
GETTEXT = $(TOP)\..\gettext-0.10.35
|
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
|
|
|
|
1999-06-15 06:18:02 +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
|
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)
|
1999-06-15 06:18:02 +08:00
|
|
|
$(CC) $(CFLAGS) -MD -Fe$(PLUGIN).exe $(OBJECTS) $(RESOURCE) $(PLUGINDIR)\megawidget\megawidget.lib $(PLUGINDIR)\gpc\gpc.lib $(PLUGINDIR)\libgck\gck\gck.lib ..\..\libgimp\gimp-$(GIMP_VER).lib ..\..\libgimp\gimpui-$(GIMP_VER).lib $(GTK)\gtk\gtk-$(GTK_VER).lib $(GTK)\gdk\win32\gdk-$(GTK_VER).lib $(GETTEXT)\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
|
|
|
|
|
|
|
|
|
|
|
|
.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
|