1999-05-29 05:56:04 +08:00
|
|
|
## Makefile for building the GIMP DLLs and LIBs with Microsoft C.
|
1999-03-07 20:56:03 +08:00
|
|
|
## 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.
|
2000-05-05 02:41:22 +08:00
|
|
|
BIN = C:\install\gimp\bin
|
1999-03-07 20:56:03 +08:00
|
|
|
|
2001-02-07 09:16:18 +08:00
|
|
|
TOP = ..\..
|
2002-02-17 23:55:54 +08:00
|
|
|
!INCLUDE $(TOP)\glib\build\win32\make.msc
|
2001-02-07 09:16:18 +08:00
|
|
|
|
|
|
|
GIMP_VER = 1.3
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2001-02-07 09:16:18 +08:00
|
|
|
INCLUDES = -I..
|
|
|
|
DEFINES = -DGIMPDIR=\"$(GIMPDIR)\"
|
2001-07-29 03:40:07 +08:00
|
|
|
DEPCFLAGS = $(INTL_CFLAGS) $(GLIB_CFLAGS) $(GTK2_CFLAGS)
|
2001-02-07 09:16:18 +08:00
|
|
|
DEPLIBS = $(GLIB_LIBS) $(INTL_LIBS)
|
1999-03-07 20:56:03 +08:00
|
|
|
|
2001-02-07 09:16:18 +08:00
|
|
|
# CFLAGS = $(GLIB_CFLAGS)
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
all : \
|
2000-06-07 05:33:19 +08:00
|
|
|
..\config.h \
|
2001-05-26 06:04:21 +08:00
|
|
|
# gimpi.lib \
|
2000-06-07 05:33:19 +08:00
|
|
|
gimp-$(GIMP_VER).dll \
|
1999-03-07 20:56:03 +08:00
|
|
|
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)
|
|
|
|
|
2000-06-07 05:33:19 +08:00
|
|
|
PDB_WRAPPERS_O = \
|
|
|
|
gimpbrushes_pdb.obj \
|
|
|
|
gimpbrushselect_pdb.obj \
|
|
|
|
gimpchannel_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 \
|
2002-02-17 23:55:54 +08:00
|
|
|
gimppainttools_pdb.obj \
|
2000-06-07 05:33:19 +08:00
|
|
|
gimplayer_pdb.obj \
|
|
|
|
gimpmessage_pdb.obj \
|
2001-02-07 09:16:18 +08:00
|
|
|
gimpmisc_pdb.obj \
|
2002-02-17 23:55:54 +08:00
|
|
|
gimpmisctools_pdb.obj \
|
2000-06-07 05:33:19 +08:00
|
|
|
gimppalette_pdb.obj \
|
|
|
|
gimpparasite_pdb.obj \
|
2001-02-07 09:16:18 +08:00
|
|
|
gimppaths_pdb.obj \
|
2000-06-07 05:33:19 +08:00
|
|
|
gimppatterns_pdb.obj \
|
|
|
|
gimppatternselect_pdb.obj \
|
|
|
|
gimpplugin_pdb.obj \
|
|
|
|
gimpproceduraldb_pdb.obj \
|
|
|
|
gimpselection_pdb.obj \
|
2001-10-29 02:45:45 +08:00
|
|
|
gimpselectiontools_pdb.obj \
|
2000-06-07 05:33:19 +08:00
|
|
|
gimptexttool_pdb.obj \
|
2002-02-17 23:55:54 +08:00
|
|
|
gimptransformtools_pdb.obj \
|
2000-06-07 05:33:19 +08:00
|
|
|
gimpundo_pdb.obj \
|
2001-02-07 09:16:18 +08:00
|
|
|
gimpunit_pdb.obj \
|
2000-06-07 05:33:19 +08:00
|
|
|
|
2001-02-07 09:16:18 +08:00
|
|
|
# used by libgimp and core (?)
|
1999-03-07 20:56:03 +08:00
|
|
|
gimpi_OBJECTS = \
|
2000-04-24 04:27:41 +08:00
|
|
|
gimpenv.obj \
|
2000-06-07 05:33:19 +08:00
|
|
|
gimpparasite.obj \
|
|
|
|
gimpparasiteio.obj \
|
2000-04-24 04:27:41 +08:00
|
|
|
gimpprotocol.obj \
|
2001-02-07 09:16:18 +08:00
|
|
|
gimputils.obj \
|
|
|
|
# gimpsignal.obj \
|
2000-06-07 05:33:19 +08:00
|
|
|
gimpwire.obj
|
1999-03-07 20:56:03 +08:00
|
|
|
|
Win32 portability changes:
* config.h.win32, README.win32: Small changes.
* tools/pdbgen/pdb/*.pdb: Include <string.h>.
* app/*_cmds.c: Autogenerated files reflect above changes.
* libgimp/makefile.msc app/makefile.msc: Various updates,
including new object files. Gtk+ directory now should be called
gtk+ (not gtk-plus). Use win32-specific gdk subdir. Glib directory
now should be called just glib.
* libgimp/gimp.def: Updates.
* libgimp/gimpfeatures.h.win32: Made current with
gimpfeatures.h.in.
* libgimp/gimpfileselection.c: Define S_ISDIR and S_ISREG if
necessary.
* tools/pdbgen/pdb/fileops.pdb: Must have a
statement (even an empty one) after a label.
* app/fileops_cmds.c: Autogenerated file reflects above changes.
* app/crop.c: Include <string.h>.
* app/{app_procs,batch,fileops,datafiles,errorconsole,general,
plug_in,temp_buf,tile_swap}.c: Test NATIVE_WIN32, not
_MSC_VER. (NATIVE_WIN32 means we are using the Microsoft C
runtime, even if we might be compiling with gcc.)
* app/fileops.c: Don't include <process.h> here.
* app/fileops.h: Do include <process.h> here.
* app/gimpparasite.c: Include config.h, guard inclusion of
<unistd.h>. (Is the inclusion of unistd.h in source files all over
the place really necessary?)
* app/ink.c: MSC doesn't handle conversion from unsigned __int64
to double, so cast to signed.
* app/lut_funcs.c: Include config.h, and define rint() if necessary.
* app/pixel_processor.c: Include config.h without "..", like in
all the other places. Include <string.h>
* app/text_tool.c: Guard the "POINTS" identifier that clashes with
<windows.h>, sigh.
1999-05-05 05:32:17 +08:00
|
|
|
gimpi.lib : $(gimpi_OBJECTS)
|
|
|
|
lib /out:gimpi.lib $(gimpi_OBJECTS)
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
gimp_OBJECTS = \
|
2000-04-24 04:27:41 +08:00
|
|
|
gimp.obj \
|
2000-06-07 05:33:19 +08:00
|
|
|
$(PDB_WRAPPERS_O) \
|
2001-05-26 06:04:21 +08:00
|
|
|
# $(gimpi_OBJECTS) \
|
2000-06-07 05:33:19 +08:00
|
|
|
gimpchannel.obj \
|
|
|
|
gimpdrawable.obj \
|
|
|
|
gimphelp.obj \
|
|
|
|
gimpimage.obj \
|
|
|
|
gimplayer.obj \
|
2002-12-01 22:53:17 +08:00
|
|
|
gimpmisc.obj \
|
2000-04-24 04:27:41 +08:00
|
|
|
gimppixelrgn.obj \
|
2000-06-07 05:33:19 +08:00
|
|
|
gimpproceduraldb.obj \
|
|
|
|
gimpselection.obj \
|
2000-04-24 04:27:41 +08:00
|
|
|
gimptile.obj \
|
2000-06-07 05:33:19 +08:00
|
|
|
gimpunit.obj \
|
2001-02-07 09:16:18 +08:00
|
|
|
|
|
|
|
#? gimpprotocol.obj \
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
gimp-$(GIMP_VER).dll : $(gimp_OBJECTS) gimp.def
|
2001-05-26 06:04:21 +08:00
|
|
|
$(CC) $(CFLAGS) -LD -Fegimp-$(GIMP_VER).dll $(gimp_OBJECTS) $(DEPLIBS) \
|
|
|
|
..\libgimpcolor\gimpcolor-$(GIMP_VER).lib \
|
|
|
|
..\libgimpbase\gimpbase-$(GIMP_VER).lib \
|
|
|
|
$(LDFLAGS) user32.lib /def:gimp.def
|
1999-03-07 20:56:03 +08:00
|
|
|
|
2000-05-29 07:46:16 +08:00
|
|
|
# Pass -DLIBGIMP_COMPILATION when compiling gimp.c
|
1999-05-29 05:56:04 +08:00
|
|
|
|
1999-03-07 20:56:03 +08:00
|
|
|
gimp.obj : gimp.c
|
Win32 portability changes:
* config.h.win32, README.win32: Small changes.
* tools/pdbgen/pdb/*.pdb: Include <string.h>.
* app/*_cmds.c: Autogenerated files reflect above changes.
* libgimp/makefile.msc app/makefile.msc: Various updates,
including new object files. Gtk+ directory now should be called
gtk+ (not gtk-plus). Use win32-specific gdk subdir. Glib directory
now should be called just glib.
* libgimp/gimp.def: Updates.
* libgimp/gimpfeatures.h.win32: Made current with
gimpfeatures.h.in.
* libgimp/gimpfileselection.c: Define S_ISDIR and S_ISREG if
necessary.
* tools/pdbgen/pdb/fileops.pdb: Must have a
statement (even an empty one) after a label.
* app/fileops_cmds.c: Autogenerated file reflects above changes.
* app/crop.c: Include <string.h>.
* app/{app_procs,batch,fileops,datafiles,errorconsole,general,
plug_in,temp_buf,tile_swap}.c: Test NATIVE_WIN32, not
_MSC_VER. (NATIVE_WIN32 means we are using the Microsoft C
runtime, even if we might be compiling with gcc.)
* app/fileops.c: Don't include <process.h> here.
* app/fileops.h: Do include <process.h> here.
* app/gimpparasite.c: Include config.h, guard inclusion of
<unistd.h>. (Is the inclusion of unistd.h in source files all over
the place really necessary?)
* app/ink.c: MSC doesn't handle conversion from unsigned __int64
to double, so cast to signed.
* app/lut_funcs.c: Include config.h, and define rint() if necessary.
* app/pixel_processor.c: Include config.h without "..", like in
all the other places. Include <string.h>
* app/text_tool.c: Guard the "POINTS" identifier that clashes with
<windows.h>, sigh.
1999-05-05 05:32:17 +08:00
|
|
|
$(CC) $(CFLAGS) -GD -c -DLIBGIMP_COMPILATION gimp.c
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
gimpui_OBJECTS = \
|
2001-02-07 09:16:18 +08:00
|
|
|
gimpui.obj \
|
2000-04-24 04:27:41 +08:00
|
|
|
gimpbrushmenu.obj \
|
2000-06-07 05:33:19 +08:00
|
|
|
gimpgradientmenu.obj \
|
2001-02-07 09:16:18 +08:00
|
|
|
gimpmenu.obj \
|
2000-04-24 04:27:41 +08:00
|
|
|
gimppatternmenu.obj \
|
2001-02-07 09:16:18 +08:00
|
|
|
gimpexport.obj \
|
|
|
|
# gimppatheditor.obj \
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
gimpui-$(GIMP_VER).dll : $(gimpui_OBJECTS) gimpui.def
|
2001-02-07 09:16:18 +08:00
|
|
|
$(CC) $(CFLAGS) -LD -Fegimpui-$(GIMP_VER).dll $(gimpui_OBJECTS) \
|
|
|
|
gimp-$(GIMP_VER).lib ..\libgimpcolor\gimpcolor-$(GIMP_VER).lib \
|
|
|
|
..\libgimpwidgets\gimpwidgets-$(GIMP_VER).lib \
|
2001-05-26 06:04:21 +08:00
|
|
|
..\libgimpbase\gimpbase-$(GIMP_VER).lib \
|
2001-07-29 03:40:07 +08:00
|
|
|
$(GTK2_LIBS) $(INTL_LIBS) $(DEPLIBS) $(LDFLAGS) /def:gimpui.def
|
2001-02-07 09:16:18 +08:00
|
|
|
|
|
|
|
# gimpwidgets only for gimp_dialog_new
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
gimpmenu.obj : gimpmenu.c
|
Win32 portability changes:
* config.h.win32, README.win32: Small changes.
* tools/pdbgen/pdb/*.pdb: Include <string.h>.
* app/*_cmds.c: Autogenerated files reflect above changes.
* libgimp/makefile.msc app/makefile.msc: Various updates,
including new object files. Gtk+ directory now should be called
gtk+ (not gtk-plus). Use win32-specific gdk subdir. Glib directory
now should be called just glib.
* libgimp/gimp.def: Updates.
* libgimp/gimpfeatures.h.win32: Made current with
gimpfeatures.h.in.
* libgimp/gimpfileselection.c: Define S_ISDIR and S_ISREG if
necessary.
* tools/pdbgen/pdb/fileops.pdb: Must have a
statement (even an empty one) after a label.
* app/fileops_cmds.c: Autogenerated file reflects above changes.
* app/crop.c: Include <string.h>.
* app/{app_procs,batch,fileops,datafiles,errorconsole,general,
plug_in,temp_buf,tile_swap}.c: Test NATIVE_WIN32, not
_MSC_VER. (NATIVE_WIN32 means we are using the Microsoft C
runtime, even if we might be compiling with gcc.)
* app/fileops.c: Don't include <process.h> here.
* app/fileops.h: Do include <process.h> here.
* app/gimpparasite.c: Include config.h, guard inclusion of
<unistd.h>. (Is the inclusion of unistd.h in source files all over
the place really necessary?)
* app/ink.c: MSC doesn't handle conversion from unsigned __int64
to double, so cast to signed.
* app/lut_funcs.c: Include config.h, and define rint() if necessary.
* app/pixel_processor.c: Include config.h without "..", like in
all the other places. Include <string.h>
* app/text_tool.c: Guard the "POINTS" identifier that clashes with
<windows.h>, sigh.
1999-05-05 05:32:17 +08:00
|
|
|
$(CC) $(CFLAGS) -GD -c gimpmenu.c
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
gimpbrushmenu.obj : gimpbrushmenu.c
|
Win32 portability changes:
* config.h.win32, README.win32: Small changes.
* tools/pdbgen/pdb/*.pdb: Include <string.h>.
* app/*_cmds.c: Autogenerated files reflect above changes.
* libgimp/makefile.msc app/makefile.msc: Various updates,
including new object files. Gtk+ directory now should be called
gtk+ (not gtk-plus). Use win32-specific gdk subdir. Glib directory
now should be called just glib.
* libgimp/gimp.def: Updates.
* libgimp/gimpfeatures.h.win32: Made current with
gimpfeatures.h.in.
* libgimp/gimpfileselection.c: Define S_ISDIR and S_ISREG if
necessary.
* tools/pdbgen/pdb/fileops.pdb: Must have a
statement (even an empty one) after a label.
* app/fileops_cmds.c: Autogenerated file reflects above changes.
* app/crop.c: Include <string.h>.
* app/{app_procs,batch,fileops,datafiles,errorconsole,general,
plug_in,temp_buf,tile_swap}.c: Test NATIVE_WIN32, not
_MSC_VER. (NATIVE_WIN32 means we are using the Microsoft C
runtime, even if we might be compiling with gcc.)
* app/fileops.c: Don't include <process.h> here.
* app/fileops.h: Do include <process.h> here.
* app/gimpparasite.c: Include config.h, guard inclusion of
<unistd.h>. (Is the inclusion of unistd.h in source files all over
the place really necessary?)
* app/ink.c: MSC doesn't handle conversion from unsigned __int64
to double, so cast to signed.
* app/lut_funcs.c: Include config.h, and define rint() if necessary.
* app/pixel_processor.c: Include config.h without "..", like in
all the other places. Include <string.h>
* app/text_tool.c: Guard the "POINTS" identifier that clashes with
<windows.h>, sigh.
1999-05-05 05:32:17 +08:00
|
|
|
$(CC) $(CFLAGS) -GD -c gimpbrushmenu.c
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
gimpgradientmenu.obj : gimpgradientmenu.c
|
Win32 portability changes:
* config.h.win32, README.win32: Small changes.
* tools/pdbgen/pdb/*.pdb: Include <string.h>.
* app/*_cmds.c: Autogenerated files reflect above changes.
* libgimp/makefile.msc app/makefile.msc: Various updates,
including new object files. Gtk+ directory now should be called
gtk+ (not gtk-plus). Use win32-specific gdk subdir. Glib directory
now should be called just glib.
* libgimp/gimp.def: Updates.
* libgimp/gimpfeatures.h.win32: Made current with
gimpfeatures.h.in.
* libgimp/gimpfileselection.c: Define S_ISDIR and S_ISREG if
necessary.
* tools/pdbgen/pdb/fileops.pdb: Must have a
statement (even an empty one) after a label.
* app/fileops_cmds.c: Autogenerated file reflects above changes.
* app/crop.c: Include <string.h>.
* app/{app_procs,batch,fileops,datafiles,errorconsole,general,
plug_in,temp_buf,tile_swap}.c: Test NATIVE_WIN32, not
_MSC_VER. (NATIVE_WIN32 means we are using the Microsoft C
runtime, even if we might be compiling with gcc.)
* app/fileops.c: Don't include <process.h> here.
* app/fileops.h: Do include <process.h> here.
* app/gimpparasite.c: Include config.h, guard inclusion of
<unistd.h>. (Is the inclusion of unistd.h in source files all over
the place really necessary?)
* app/ink.c: MSC doesn't handle conversion from unsigned __int64
to double, so cast to signed.
* app/lut_funcs.c: Include config.h, and define rint() if necessary.
* app/pixel_processor.c: Include config.h without "..", like in
all the other places. Include <string.h>
* app/text_tool.c: Guard the "POINTS" identifier that clashes with
<windows.h>, sigh.
1999-05-05 05:32:17 +08:00
|
|
|
$(CC) $(CFLAGS) -GD -c gimpgradientmenu.c
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
gimppatternmenu.obj : gimppatternmenu.c
|
Win32 portability changes:
* config.h.win32, README.win32: Small changes.
* tools/pdbgen/pdb/*.pdb: Include <string.h>.
* app/*_cmds.c: Autogenerated files reflect above changes.
* libgimp/makefile.msc app/makefile.msc: Various updates,
including new object files. Gtk+ directory now should be called
gtk+ (not gtk-plus). Use win32-specific gdk subdir. Glib directory
now should be called just glib.
* libgimp/gimp.def: Updates.
* libgimp/gimpfeatures.h.win32: Made current with
gimpfeatures.h.in.
* libgimp/gimpfileselection.c: Define S_ISDIR and S_ISREG if
necessary.
* tools/pdbgen/pdb/fileops.pdb: Must have a
statement (even an empty one) after a label.
* app/fileops_cmds.c: Autogenerated file reflects above changes.
* app/crop.c: Include <string.h>.
* app/{app_procs,batch,fileops,datafiles,errorconsole,general,
plug_in,temp_buf,tile_swap}.c: Test NATIVE_WIN32, not
_MSC_VER. (NATIVE_WIN32 means we are using the Microsoft C
runtime, even if we might be compiling with gcc.)
* app/fileops.c: Don't include <process.h> here.
* app/fileops.h: Do include <process.h> here.
* app/gimpparasite.c: Include config.h, guard inclusion of
<unistd.h>. (Is the inclusion of unistd.h in source files all over
the place really necessary?)
* app/ink.c: MSC doesn't handle conversion from unsigned __int64
to double, so cast to signed.
* app/lut_funcs.c: Include config.h, and define rint() if necessary.
* app/pixel_processor.c: Include config.h without "..", like in
all the other places. Include <string.h>
* app/text_tool.c: Guard the "POINTS" identifier that clashes with
<windows.h>, sigh.
1999-05-05 05:32:17 +08:00
|
|
|
$(CC) $(CFLAGS) -GD -c gimppatternmenu.c
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
# General rule for compiling, used by the objects that don't go into
|
|
|
|
# gimp-$(GIMP_VER).dll.
|
|
|
|
.c.obj:
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
2001-02-07 09:16:18 +08:00
|
|
|
|
|
|
|
clean::
|
1999-03-07 20:56:03 +08:00
|
|
|
del *.exe
|
|
|
|
del *.obj
|
|
|
|
del *.exp
|
|
|
|
del *.err
|
|
|
|
del *.map
|