2001-07-28 Hans Breuer <hans@breuer.org> * */*/makefile.msc : updated for GTK2 build * app/widgets/makefile.msc : (new file) forgot this one last time * plug-ins/common/animationplay.c : reflect that GTK2 has its gdk<x|win32|fb>.h files in the back-end sub directories * plug-ins/common/gif.c : * plug-ins/common/jpeg.c : * plug-ins/dbbrowser/dbbrowser_utils.c : * plug-ins/gap/gap_dbbrowser_utils.c : * plug-ims/gimpressionist/presets.c : * plug-ims/gimpressionist/imap_setting.c : * plug-ims/gimpressionist/imap_source.c : * plug-ims/script-fu/script-fu-console.c : * plug-ims/script-fu/script-fu-scripts.c : #define GTK_ENABLE_BROKEN and include <gtk/gtktext.h> to make them compile/work again * plug-ins/common/spheredesigner.c : gtk_color_selction_set_opacity renamed to gtk_color_selction_set_current_alpha * plug-ins/gflare/gtkmultioptionmenu.c : ported ny removing the virtual draw function and style->xthickness and ythickness via direct access, klass field isn't available anymore * plug-ins/common/nlfilt.c : * plug-ims/gap/gap_movdialog.c : * plug-ims/gimpressionist/gimpressionist.c : gtk_widget_set_default_visible is neither available nor needed anymore * plug-ins/common/plugindetails.c : ported to GtkTextBuffer and reflect gtk_paned api changes * plug-ims/gimpressionist/imap_preview.c : replace GTK_WIDGET(a)->klass access by GTK_WIDGET_GET_CLASS(a) * plug-ims/gimpressionist/imap_selection.c : * plug-ims/gimpressionist/imap_toolbar.c : * plug-ims/gimpressionist/imap_tools.c : gtk_toolbar api changes
84 lines
2.1 KiB
Plaintext
84 lines
2.1 KiB
Plaintext
## Makefile for building gimp modules with Microsoft C
|
|
## Use: nmake -f makefile.msc
|
|
|
|
# Change this to wherever you install gimp.
|
|
# This is what I use as installation target, from where the installer-builder
|
|
# will pick it up.
|
|
GIMP = \install\gimp
|
|
|
|
TOP = ..\..
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
!INCLUDE $(TOP)\build\win32\make.msc
|
|
|
|
GIMP_VER = 1.3
|
|
|
|
INCLUDES = -I..
|
|
DEFINES = -DHAVE_CONFIG_H -DMODULE_COMPILATION
|
|
DEPCFLAGS = $(INTL_CFLAGS) $(GLIB_CFLAGS) $(GTK_CFLAGS)
|
|
DEPLIBS = $(INTL_LIBS) $(GLIB_LIBS) $(GTK_LIBS)
|
|
|
|
BIN = $(GIMP)\modules
|
|
|
|
MODULES = \
|
|
colorsel_gtk-$(GIMP_VER).dll \
|
|
colorsel_triangle-$(GIMP_VER).dll \
|
|
colorsel_water-$(GIMP_VER).dll \
|
|
cdisplay_gamma-$(GIMP_VER).dll \
|
|
cdisplay_highcontrast-$(GIMP_VER).dll
|
|
|
|
|
|
all : \
|
|
$(MODULES)
|
|
|
|
install : all
|
|
for %m in ($(MODULES)) do copy %m $(BIN)
|
|
|
|
..\config.h : ..\config.h.win32
|
|
copy ..\config.h.win32 ..\config.h
|
|
|
|
colorsel_gtk-$(GIMP_VER).dll : colorsel_gtk.obj module.def
|
|
$(CC) $(CFLAGS) -LD -Fe$@ colorsel_gtk.obj $(LDFLAGS) \
|
|
..\app\gimp.lib \
|
|
..\libgimpcolor\gimpcolor-$(GIMP_VER).lib \
|
|
$(DEPLIBS) /def:module.def
|
|
|
|
colorsel_triangle-$(GIMP_VER).dll : colorsel_triangle.obj module.def
|
|
$(CC) $(CFLAGS) -LD -Fe$@ colorsel_triangle.obj $(LDFLAGS) \
|
|
..\app\gimp.lib \
|
|
..\libgimpcolor\gimpcolor-$(GIMP_VER).lib \
|
|
$(DEPLIBS) /def:module.def
|
|
|
|
colorsel_water-$(GIMP_VER).dll : colorsel_water.obj module.def
|
|
$(CC) $(CFLAGS) -LD -Fe$@ colorsel_water.obj $(LDFLAGS) \
|
|
..\app\gimp.lib \
|
|
..\libgimpcolor\gimpcolor-$(GIMP_VER).lib \
|
|
..\libgimpwidgets\gimpwidgets-$(GIMP_VER).lib \
|
|
$(DEPLIBS) /def:module.def
|
|
|
|
cdisplay_gamma-$(GIMP_VER).dll : cdisplay_gamma.obj module.def
|
|
$(CC) $(CFLAGS) -LD -Fe$@ cdisplay_gamma.obj $(LDFLAGS) ..\app\gimp.lib \
|
|
$(DEPLIBS) /def:module.def
|
|
|
|
cdisplay_highcontrast-$(GIMP_VER).dll : cdisplay_highcontrast.obj module.def
|
|
$(CC) $(CFLAGS) -LD -Fe$@ cdisplay_highcontrast.obj $(LDFLAGS) ..\app\gimp.lib \
|
|
$(DEPLIBS) /def:module.def
|
|
|
|
# General rule for building
|
|
.c.obj:
|
|
$(CC) $(CFLAGS) -GD -c $<
|
|
|
|
clean::
|
|
del *.dll
|
|
del *.lib
|
|
del *.obj
|
|
del *.exp
|
|
del *.err
|
|
del *.map
|
|
del *.sym
|
|
del *.pdb
|
|
del *.ilk
|