mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 19:43:01 +00:00
de5f8b5f43
2001-03-28 Hans Breuer <hans@breuer.org> * config.h.win32 : #define GETTEXT_PACKAGE * makefile.msc : add theme rule * app/makefile.msc : gimp.exe depends on all the libs and general update * app/base/makefile.msc : updated * app/config/gimpconfig-serialize.c : #include <io.h> for win32 * app/config/gimpconfig-types.c : #include <string.h> * app/core/gimpcontext.c app/core/gimpcontainer.c app/core/gimptoolinfo.c : #include <string.h> * app/core/gimpdocuments.c (gimp_documents_save_func) : need to g_strescape() the filename to not make backslashes vanish during de-serialization * app/core/gimpimagefile.c : #define S_ISREG for G_OS_WIN32 * app/core/makefile.msc : add -DGIMP_COMPILATION required for cpercep.c build * app/display/gimpdisplayshell.c : #include <string.h> * app/display/makefile.msc : -FImsvc_recommended_pragmas.h, G_LOG_DOMAIN definition and object file update * app/file/makefile.msc : -FImsvc_recommended_pragmas.h, G_LOG_DOMAIN definition * app/file/file-open.c (file_open_with_proc_and_display) : use absolute filename for gimp_documents_add() * app/gui/channel-commands.c app/gui/colormap-editor-commands.c app/gui/edit-commands.c app/gui/vectors-commands.c : #include <string.h> * app/gui/makefile.msc : updated * app/gui/menus.c : use g_file_test() instead of access() to avoid inclusion <unistd.h> * app/paint/makefile.msc : updated * app/plug-in/plug-in-params.c : #include <string.h> * app/plug-in/makefile.msc : updated * app/plug-in/plug-in-def.h : #include <time.h> for time_t * app/plug-in/plug-in.c : remove definition of S_IFREG * app/plug-in/gap/gap_arr_dialog.c : include <config.h> before including libgimp/libgimp-intl.h * app/tools/makefile.msc : updated * app/vectors/makefile.msc : new file * app/widgets/makefile.msc : updated * libgimp/gimp.def : updated externals * libgimpwidgets/gimpwidgets.def : updated externals * modules/makefile.msc : updated and disabled colorsel_gtk. * plug-in/makefile.msc : don't define GETTEXT_PACKAGE * themes/Default/images/makefile.msc : moved makefile.msc from .. and adapted pathes to images
91 lines
2.3 KiB
Plaintext
91 lines
2.3 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)\glib\build\win32\make.msc
|
|
|
|
GIMP_VER = 1.3
|
|
|
|
INCLUDES = \
|
|
-FImsvc_recommended_pragmas.h \
|
|
-I..
|
|
|
|
DEFINES = -DHAVE_CONFIG_H -DMODULE_COMPILATION
|
|
DEPCFLAGS = $(INTL_CFLAGS) $(GLIB_CFLAGS) $(GTK2_CFLAGS)
|
|
DEPLIBS = $(INTL_LIBS) $(GLIB_LIBS) $(GTK2_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 \
|
|
..\libgimpbase\gimpbase-$(GIMP_VER).lib \
|
|
..\libgimpwidgets\gimpwidgets-$(GIMP_VER).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 \
|
|
..\libgimpbase\gimpbase-$(GIMP_VER).lib \
|
|
..\libgimpwidgets\gimpwidgets-$(GIMP_VER).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
|