* 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.
57 lines
1.7 KiB
Text
57 lines
1.7 KiB
Text
## Makefile for building gimp modules with gcc -mno-cygwin
|
|
## Use: make -f makefile.cygwin
|
|
|
|
# Change this to wherever you install the gimp.
|
|
GIMP = /gimp
|
|
BIN = $(GIMP)/modules
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
CC = gcc -mno-cygwin -mpentium
|
|
|
|
INSTALL = install
|
|
|
|
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)
|
|
LDFLAGS = -s
|
|
|
|
MODULES = \
|
|
colorsel_gtk-$(GIMP_VER).gcc.dll \
|
|
colorsel_triangle-$(GIMP_VER).gcc.dll \
|
|
colorsel_water-$(GIMP_VER).gcc.dll
|
|
|
|
|
|
all : \
|
|
$(MODULES)
|
|
|
|
install : all
|
|
for m in $(MODULES); do $(INSTALL) $$m $(BIN); done
|
|
|
|
../config.h : ../config.h.win32
|
|
cp ../config.h.win32 $@
|
|
|
|
colorsel_gtk-$(GIMP_VER).gcc.dll : colorsel_gtk.o module.def
|
|
$(GLIB)/build-dll colorsel_gtk $(GIMP_VER).gcc module.def colorsel_gtk.o $(LDFLAGS) -L ../app -lgimp -L $(GTK)/gtk -lgtk-$(GTK_VER).gcc -L $(GLIB) -lgmodule-$(GLIB_VER).gcc -lglib-$(GLIB_VER).gcc
|
|
|
|
colorsel_triangle-$(GIMP_VER).gcc.dll : colorsel_triangle.o module.def
|
|
$(GLIB)/build-dll colorsel_triangle $(GIMP_VER).gcc module.def colorsel_triangle.o $(LDFLAGS) -L ../app -lgimp -L $(GTK)/gtk -lgtk-$(GTK_VER).gcc -L $(GLIB) -lgmodule-$(GLIB_VER).gcc -lglib-$(GLIB_VER).gcc
|
|
|
|
colorsel_water-$(GIMP_VER).gcc.dll : colorsel_water.o module.def
|
|
$(GLIB)/build-dll colorsel_water $(GIMP_VER).gcc module.def colorsel_water.o $(LDFLAGS) -L ../app -lgimp -L $(GTK)/gtk -lgtk-$(GTK_VER).gcc -L $(GTK)/gdk/win32 -lgdk-$(GTK_VER).gcc -L $(GLIB) -lgmodule-$(GLIB_VER).gcc -lglib-$(GLIB_VER).gcc
|
|
|
|
|
|
# General rule for building
|
|
.c.obj:
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
clean:
|
|
-rm *.dll *.a *.o *.exp *.base
|