* app/makefile.cygwin * app/makefile.msc * plug-ins/makefile.cygwin * plug-ins/makefile.msc * modules/makefile.cygwin * modules/makefile.msc * tools/gcg/makefile.cygwin: Various updates. GCC-compiled DLL name change. * app/context_manager.c: Include paint_options.h for prototype. * app/gimpimage.c (gimp_image_initialize_projection): Break out of loop as soon as possible. * app/menus.c (menus_last_opened_cmd_callback): Check if referring to entry not in list. * app/module_db.c (valid_module_name): (Win32) Require module DLL names to include name of compiler built with. * app/paths_dialog.c (paths_draw_segment_points): No use to draw lines if we have less that two points. * app/qmask.c: Include stdio.h and floating_sel.h. * libgimp/makefile.cygwin: New file. * libgimp/Makefile.am: Distribute above file. * libgimp/gimp.def: Update. * libgimp/gimpenv.c (gimp_directory): Don't warn about missing home directory on Win32, it is perfectly natural. * plug-ins/sel2path/global.h: Bypass unused declarations, some of which clash with functions in MSVCRT. * plug-ins/sel2path/math.c * modules/colorsel_water.c: Define M_PI if necessary. * plug-ins/sel2path/sel2path.c: Include config.h and glib.h. Define rint() if needed. * plug-ins/sel2path/vector.c: Include glib.h (for hypot() renaming on Win32; In the MS C runtime, as hypot() is non-ANSI, it's called _hypot(), sigh). * plug-ins/sinus/sinus_logo.h: Use indexed format, it is easier on some compilers than the huge string.
76 lines
2.0 KiB
Plaintext
76 lines
2.0 KiB
Plaintext
## Makefile for building gimp modules with Microsoft C
|
|
## Use: nmake -f makefile.msc
|
|
|
|
# Change this to wherever you install the gimp.
|
|
GIMP = D:\gimp
|
|
BIN = $(GIMP)\modules
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
!IFNDEF DEBUG
|
|
# Full optimization:
|
|
OPTIMIZE = -Ox -MD
|
|
LINKDEBUG = /subsystem:windows
|
|
!ELSE
|
|
# Debugging:
|
|
OPTIMIZE = -Zi -MDd
|
|
LINKDEBUG = /subsystem:console /debug
|
|
!ENDIF
|
|
|
|
# cl -? describes the options
|
|
CC = cl -G5 -GF $(OPTIMIZE) -W3 -nologo
|
|
|
|
LDFLAGS = /link $(LINKDEBUG)
|
|
INSTALL = copy
|
|
|
|
GIMP_VER = 1.1
|
|
GTK_VER = 1.3
|
|
GLIB_VER = 1.3
|
|
|
|
GLIB = ..\..\glib
|
|
GMODULE = $(GLIB)\gmodule
|
|
GTK = ..\..\gtk+
|
|
|
|
CFLAGS = -DHAVE_CONFIG_H -DMODULE_COMPILATION -I. -I.. -I$(GLIB) -I$(GMODULE) -I$(GTK)\gdk\win32 -I$(GTK)
|
|
|
|
MODULES = \
|
|
colorsel_gtk-$(GIMP_VER).msvc.dll \
|
|
colorsel_triangle-$(GIMP_VER).msvc.dll \
|
|
colorsel_water-$(GIMP_VER).msvc.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).msvc.dll : colorsel_gtk.obj module.def
|
|
$(CC) $(CFLAGS) -LD -Fe$@ colorsel_gtk.obj $(LDFLAGS) ..\app\gimp.lib $(GTK)\gtk\gtk-$(GTK_VER).lib $(GLIB)\gmodule-$(GLIB_VER).lib $(GLIB)\glib-$(GLIB_VER).lib /def:module.def
|
|
|
|
colorsel_triangle-$(GIMP_VER).msvc.dll : colorsel_triangle.obj module.def
|
|
$(CC) $(CFLAGS) -LD -Fe$@ colorsel_triangle.obj $(LDFLAGS) ..\app\gimp.lib $(GTK)\gtk\gtk-$(GTK_VER).lib $(GLIB)\gmodule-$(GLIB_VER).lib $(GLIB)\glib-$(GLIB_VER).lib /def:module.def
|
|
|
|
colorsel_water-$(GIMP_VER).msvc.dll : colorsel_water.obj module.def
|
|
$(CC) $(CFLAGS) -LD -Fe$@ colorsel_water.obj $(LDFLAGS) ..\app\gimp.lib $(GTK)\gtk\gtk-$(GTK_VER).lib $(GTK)\gdk\win32\gdk-$(GTK_VER).lib $(GLIB)\gmodule-$(GLIB_VER).lib $(GLIB)\glib-$(GLIB_VER).lib /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
|