
2002-09-06 Hans Breuer <hans@breuer.org> * */*/makefile.msc : updated * libgimptool/makefile.msc : new file, libgimptool is currently build as static lib due to references into app/core * themes/Default/makefile.msc : removed * themes/Default/images/makefile.msc : new file * libgimpwidgets/makefile.msc libgimpwidgets/gimpwidgets.c updated (externals) * app/paint-funcs.c : replaced gccism varibale size array on stack with portable alloca, removed sizeof(buf) check which must fail now. * app/config/gimpconfig.c : get write/close protos on win32 from io.h * app/config/gimprc.c : dito and <string.h> * app/config/gimpscanner.c : <string.h> only * app/core/gimpcontainer.c : workaround for clumsy compilers not supporting vararg macros * app/core/gimpdocumentlist.c app/core/gimpparasitelist.c include <io.h> on win32 * app/widgets/gimpdocumentview.c app/widgets/gimpimagedock.c app/widgets/gimppreview.c : add #ifdef __GNUC__ to avoid breaking on non standard pragma #warning. * app/gui/session.c : include <string.h> * regexrepl/makefile.msc : build as dll * plug-ins/makefile.msc : updated * plug-ins/common/pix.c : open file binary * plug-ins/common/spheredesigner.c : avoid error 'incompatible types' while assigning, use memcpy()
76 lines
2.2 KiB
Plaintext
76 lines
2.2 KiB
Plaintext
## Makefile for building the GIMP DLLs and LIBs with Microsoft C.
|
|
## Use: nmake -f makefile.msc
|
|
|
|
# Change this to wherever you want to install the DLLs. This directory
|
|
# should be in your PATH. As these DLLs are for the GIMP and its plug-ins
|
|
# only, it probably is best to keep them in the GIMP's bin directory.
|
|
BIN = C:\install\gimp\bin
|
|
TOP = ..\..
|
|
!include $(TOP)\glib\build\win32\make.msc
|
|
|
|
GIMP_VER = 1.3
|
|
|
|
# The name of the directory in your %HOME% where the GIMP's personal settings
|
|
# and stuff is saved.
|
|
GIMPDIR = _gimp$(GIMP_VER)
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
INCLUDES = -I..
|
|
# DEFINES = -DG_LOG_DOMAIN=\"LibGimpWidgets\"
|
|
DEPCFLAGS = \
|
|
-FImsvc_recommended_pragmas.h \
|
|
$(GLIB_CFLAGS) $(GTK2_CFLAGS) $(INTL_CFLAGS)
|
|
DEPLIBS = $(GLIB_LIBS) $(GTK2_LIBS) $(INTL_LIBS) \
|
|
$(GTK2)\gdk-pixbuf\gdk_pixbuf-$(GTK_VER).lib
|
|
|
|
all : \
|
|
..\config.h \
|
|
gimpwidgets-$(GIMP_VER).dll
|
|
|
|
..\config.h : ..\config.h.win32
|
|
copy ..\config.h.win32 ..\config.h
|
|
|
|
install : all
|
|
$(INSTALL) gimpmath-$(GIMP_VER).dll $(BIN)
|
|
|
|
OBJECTS = \
|
|
gimpbutton.obj \
|
|
gimpchainbutton.obj \
|
|
gimpcolorarea.obj \
|
|
gimpcolorbutton.obj \
|
|
gimpdialog.obj \
|
|
gimpfileselection.obj \
|
|
gimphelpui.obj \
|
|
gimpoffsetarea.obj \
|
|
gimppatheditor.obj \
|
|
gimppixmap.obj \
|
|
gimpquerybox.obj \
|
|
gimpsizeentry.obj \
|
|
gimpstock.obj \
|
|
gimpunitmenu.obj \
|
|
gimpwidgets.obj \
|
|
gimpwidgetsmarshal.obj \
|
|
libgimp-glue.obj
|
|
|
|
|
|
gimpwidgetsmarshal.h : gimpwidgetsmarshal.list
|
|
$(GLIB)\gobject\glib-genmarshal --prefix=_gimp_widgets_marshal gimpwidgetsmarshal.list --header >gimpwidgetsmarshal.h
|
|
|
|
gimpwidgetsmarshal.c : gimpwidgetsmarshal.list gimpwidgetsmarshal.h
|
|
$(GLIB)\gobject\glib-genmarshal --prefix=_gimp_widgets_marshal gimpwidgetsmarshal.list --body >gimpwidgetsmarshal.c
|
|
|
|
# questionable dependency between libgimpui/libgimpwidgets
|
|
gimpunit.obj : ..\app\gimpunit.c
|
|
$(CC) $(CFLAGS) -GD -c ..\app\gimpunit.c
|
|
|
|
gimpwidgets-$(GIMP_VER).dll : $(OBJECTS) gimpwidgets.def
|
|
$(CC) $(CFLAGS) -LD -Fegimpwidgets-$(GIMP_VER).dll $(OBJECTS) \
|
|
..\libgimpcolor\gimpcolor-$(GIMP_VER).lib \
|
|
$(DEPLIBS) $(LDFLAGS) user32.lib /def:gimpwidgets.def
|
|
|
|
# ..\app\gimp.lib \
|
|
# ..\libgimp\gimpui-$(GIMP_VER).lib ..\libgimp\gimp-$(GIMP_VER).lib \
|