2001-03-16 Hans Breuer <hans@breuer.org> * app/makefile.msc * app/tools/makefile.msc : adapted to current state of file renaming/restructuring. Probably will break again soon ... * app/context_manager.c : needs register_tools () prototype * app/gimplist.c * app/gimppalette-import.c : #include <string.h> for memcpy, strcmp and friends * app/pdb/fileops_cmds.c : #include <process.h> /* for _getpid() */ (Yes I know that this is not the right place to change it, but hacking pdbgen.pl to get platform specific headers is out of my scope) * app/test_commands.c : explicit casts to (GimpSetDrawableFunc) make it compile even with strict checks turned on. * app/undo.c (undo_pop_paint) : return a value even if the function does nothing at the moment (makes it compile) * libgimp/gimp.def : updated * libgimp/gimpcolorselector.h : include <gmodule.h> to make gimp_color_selector_(un)register prototypes conform to their implementation * libgimp/gimpfeatures.h : reflect 1.3 version * libgimpmath/gimpmatrix.c * libgimpwidgets/gimpdialog.c : more <string.h> inclusion * libgimp/makefile.msc : moved gimpadativesupersample.c to libgimpcolor, which makes it reusable from the core, too. * libgimp/gimp.def : updated * libgimp/gimpproceduraledb.c : #include <string.h> * libgimpcolor/gimpcolor.def * libgimpcolor/makefile.msc : added gimpadaptivesupersample * libgimpmath/gimpmatrix.c : #include <string.h> for memcmp * libgimpwidgets/gimpdialog.c - " - for strcmp
156 lines
3.7 KiB
Text
156 lines
3.7 KiB
Text
## 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)\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 = -DGIMPDIR=\"$(GIMPDIR)\"
|
|
DEPCFLAGS = $(INTL_CFLAGS) $(GLIB_CFLAGS) $(GTK_CFLAGS)
|
|
DEPLIBS = $(GLIB_LIBS) $(INTL_LIBS)
|
|
|
|
# CFLAGS = $(GLIB_CFLAGS)
|
|
|
|
all : \
|
|
..\config.h \
|
|
gimpi.lib \
|
|
gimp-$(GIMP_VER).dll \
|
|
gimpui-$(GIMP_VER).dll
|
|
|
|
..\config.h : ..\config.h.win32
|
|
copy ..\config.h.win32 ..\config.h
|
|
|
|
install : all
|
|
$(INSTALL) gimp-$(GIMP_VER).dll $(BIN)
|
|
$(INSTALL) gimpui-$(GIMP_VER).dll $(BIN)
|
|
|
|
PDB_WRAPPERS_O = \
|
|
gimpbrushes_pdb.obj \
|
|
gimpbrushselect_pdb.obj \
|
|
gimpchannel_pdb.obj \
|
|
gimpchannelops_pdb.obj \
|
|
gimpcolor_pdb.obj \
|
|
gimpconvert_pdb.obj \
|
|
gimpdisplay_pdb.obj \
|
|
gimpdrawable_pdb.obj \
|
|
gimpedit_pdb.obj \
|
|
gimpfileops_pdb.obj \
|
|
gimpfloatingsel_pdb.obj \
|
|
gimpgimprc_pdb.obj \
|
|
gimpgradients_pdb.obj \
|
|
gimpgradientselect_pdb.obj \
|
|
gimpguides_pdb.obj \
|
|
gimphelp_pdb.obj \
|
|
gimpimage_pdb.obj \
|
|
gimplayer_pdb.obj \
|
|
gimpmessage_pdb.obj \
|
|
gimpmisc_pdb.obj \
|
|
gimppalette_pdb.obj \
|
|
gimpparasite_pdb.obj \
|
|
gimppaths_pdb.obj \
|
|
gimppatterns_pdb.obj \
|
|
gimppatternselect_pdb.obj \
|
|
gimpplugin_pdb.obj \
|
|
gimpproceduraldb_pdb.obj \
|
|
gimpselection_pdb.obj \
|
|
gimptexttool_pdb.obj \
|
|
gimptools_pdb.obj \
|
|
gimpundo_pdb.obj \
|
|
gimpunit_pdb.obj \
|
|
|
|
# used by libgimp and core (?)
|
|
gimpi_OBJECTS = \
|
|
gimpenv.obj \
|
|
gimpparasite.obj \
|
|
gimpparasiteio.obj \
|
|
gimpprotocol.obj \
|
|
gimputils.obj \
|
|
# gimpsignal.obj \
|
|
gimpwire.obj
|
|
|
|
gimpi.lib : $(gimpi_OBJECTS)
|
|
lib /out:gimpi.lib $(gimpi_OBJECTS)
|
|
|
|
gimp_OBJECTS = \
|
|
gimp.obj \
|
|
$(PDB_WRAPPERS_O) \
|
|
$(gimpi_OBJECTS) \
|
|
gimpbilinear.obj \
|
|
gimpchannel.obj \
|
|
gimpdrawable.obj \
|
|
gimpgradientselect.obj \
|
|
gimphelp.obj \
|
|
gimpimage.obj \
|
|
gimplayer.obj \
|
|
gimppixelrgn.obj \
|
|
gimpproceduraldb.obj \
|
|
gimpselection.obj \
|
|
gimptile.obj \
|
|
gimpunit.obj \
|
|
|
|
#? gimpprotocol.obj \
|
|
|
|
gimp-$(GIMP_VER).dll : $(gimp_OBJECTS) gimp.def
|
|
$(CC) $(CFLAGS) -LD -Fegimp-$(GIMP_VER).dll $(gimp_OBJECTS) $(DEPLIBS) ..\libgimpcolor\gimpcolor-$(GIMP_VER).lib $(LDFLAGS) user32.lib /def:gimp.def
|
|
|
|
# Pass -DLIBGIMP_COMPILATION when compiling gimp.c
|
|
|
|
gimp.obj : gimp.c
|
|
$(CC) $(CFLAGS) -GD -c -DLIBGIMP_COMPILATION gimp.c
|
|
|
|
gimpui_OBJECTS = \
|
|
gimpui.obj \
|
|
gimpadaptivesupersample.obj \
|
|
gimpbrushmenu.obj \
|
|
gimpgradientmenu.obj \
|
|
gimpmenu.obj \
|
|
gimppatternmenu.obj \
|
|
gimpexport.obj \
|
|
# gimppatheditor.obj \
|
|
|
|
gimpui-$(GIMP_VER).dll : $(gimpui_OBJECTS) gimpui.def
|
|
$(CC) $(CFLAGS) -LD -Fegimpui-$(GIMP_VER).dll $(gimpui_OBJECTS) \
|
|
gimp-$(GIMP_VER).lib ..\libgimpcolor\gimpcolor-$(GIMP_VER).lib \
|
|
..\libgimpwidgets\gimpwidgets-$(GIMP_VER).lib \
|
|
$(GTK_LIBS) $(INTL_LIBS) $(DEPLIBS) $(LDFLAGS) /def:gimpui.def
|
|
|
|
# gimpwidgets only for gimp_dialog_new
|
|
|
|
gimpmenu.obj : gimpmenu.c
|
|
$(CC) $(CFLAGS) -GD -c gimpmenu.c
|
|
|
|
gimpbrushmenu.obj : gimpbrushmenu.c
|
|
$(CC) $(CFLAGS) -GD -c gimpbrushmenu.c
|
|
|
|
gimpgradientmenu.obj : gimpgradientmenu.c
|
|
$(CC) $(CFLAGS) -GD -c gimpgradientmenu.c
|
|
|
|
gimppatternmenu.obj : gimppatternmenu.c
|
|
$(CC) $(CFLAGS) -GD -c gimppatternmenu.c
|
|
|
|
# General rule for compiling, used by the objects that don't go into
|
|
# gimp-$(GIMP_VER).dll.
|
|
.c.obj:
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
clean::
|
|
del *.exe
|
|
del *.obj
|
|
del *.exp
|
|
del *.err
|
|
del *.map
|