1999-03-07 20:56:03 +08:00
|
|
|
## Makefile for building gimp.exe with Microsoft C
|
|
|
|
## Use: nmake -f makefile.msc
|
|
|
|
|
|
|
|
# Change this to wherever you want to install gimp.exe.
|
Check for mmap.
* configure.in: Check for mmap.
* app/makefile.msc: Depend on gimpi.lib.
* app/app_procs.c (app_init): Fix gccism: Allocate filenames (an
array with non-constant size) dynamically.
* app/{datafiles,fileops,general,install,module_db,temp_buf}.c:
Include glib.h before standard headers, because of certain obscure
details related to compiling with gcc on Win32.
(If you really want to know: glib.h defines he names of POSIXish
(but non-ANSI) functions as prefixed with underscore, because
that's how they are named in the msvcrt runtime C library we want
to use. However, defining stat as _stat causes some problems if
done after including the mingw32 <sys/stat.h>. So, it's easiest to
include <glib.h> early.)
* app/main.c: Use _stdcall and __argc, __argv with MSC, but
__attribute__((stdcall)) and _argc, _argv with gcc. Don't print
the "Passed serialization test" message on Win32. (It would open
up an otherwise unnecessary console window.)
* app/paint_funcs.c (gaussian_blur_region): Don't use variable sum
until initialized.
* app/{bezier_select,paths_dialog}.c: Include config.h and define
rint() if necessary.
* app/plug_in.c: Use _spawnv, not spawnv, on Win32 and OS/2.
1999-05-29 01:47:17 +08:00
|
|
|
BIN = C:\gimp\bin
|
|
|
|
|
|
|
|
# Full optimization:
|
|
|
|
#OPTIMIZE = -Ox
|
|
|
|
# Debugging:
|
|
|
|
OPTIMIZE = -Zi
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Nothing much configurable below
|
|
|
|
|
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
|
|
|
# cl -? describes the options
|
Check for mmap.
* configure.in: Check for mmap.
* app/makefile.msc: Depend on gimpi.lib.
* app/app_procs.c (app_init): Fix gccism: Allocate filenames (an
array with non-constant size) dynamically.
* app/{datafiles,fileops,general,install,module_db,temp_buf}.c:
Include glib.h before standard headers, because of certain obscure
details related to compiling with gcc on Win32.
(If you really want to know: glib.h defines he names of POSIXish
(but non-ANSI) functions as prefixed with underscore, because
that's how they are named in the msvcrt runtime C library we want
to use. However, defining stat as _stat causes some problems if
done after including the mingw32 <sys/stat.h>. So, it's easiest to
include <glib.h> early.)
* app/main.c: Use _stdcall and __argc, __argv with MSC, but
__attribute__((stdcall)) and _argc, _argv with gcc. Don't print
the "Passed serialization test" message on Win32. (It would open
up an otherwise unnecessary console window.)
* app/paint_funcs.c (gaussian_blur_region): Don't use variable sum
until initialized.
* app/{bezier_select,paths_dialog}.c: Include config.h and define
rint() if necessary.
* app/plug_in.c: Use _spawnv, not spawnv, on Win32 and OS/2.
1999-05-29 01:47:17 +08:00
|
|
|
CC = cl -GA -G5 -GF $(OPTIMIZE) -W3 -MD -nologo
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
# Change to /subsystem:console when debugging
|
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
|
|
|
LDFLAGS = /link /subsystem:windows /machine:ix86 /debug
|
1999-03-07 20:56:03 +08:00
|
|
|
INSTALL = copy
|
|
|
|
TOUCH = copy makefile.msc+nul
|
|
|
|
|
|
|
|
GIMP_VER = 1.1
|
|
|
|
GTK_VER = 1.3
|
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
|
|
|
GLIB_VER = 1.3
|
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
|
|
|
GTK = ..\..\gtk+
|
|
|
|
GLIB = ..\..\glib
|
1999-03-07 20:56:03 +08:00
|
|
|
GMODULE = $(GLIB)\gmodule
|
|
|
|
|
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
|
|
|
CFLAGS = -DREGEX_MALLOC -DHAVE_CONFIG_H -I. -I.. -I$(GLIB) -I$(GMODULE) -I$(GTK)\gdk\win32 -I$(GTK)
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
GCG = ..\tools\gcg\gcg -I. -I ..\tools\gcg\gh
|
|
|
|
|
|
|
|
all : \
|
|
|
|
..\config.h \
|
|
|
|
gimpim.lib \
|
|
|
|
colormap_dialog.c \
|
|
|
|
gimp.exe
|
|
|
|
$(TOUCH) all
|
|
|
|
|
|
|
|
install : gimp.exe
|
|
|
|
$(INSTALL) gimp.exe $(BIN)
|
|
|
|
$(TOUCH) install
|
|
|
|
|
|
|
|
..\config.h : ..\config.h.win32
|
|
|
|
copy ..\config.h.win32 ..\config.h
|
|
|
|
|
|
|
|
gimpim_OBJECTS = \
|
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
|
|
|
gimpdrawable.obj\
|
1999-03-07 20:56:03 +08:00
|
|
|
gimpimage.obj \
|
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
|
|
|
gimpobject.obj \
|
1999-03-07 20:56:03 +08:00
|
|
|
gimpset.obj \
|
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
|
|
|
gimpsignal.obj
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
gimpim.lib : $(gimpim_OBJECTS)
|
|
|
|
lib /out:gimpim.lib $(gimpim_OBJECTS)
|
|
|
|
|
|
|
|
gimp_OBJECTS = \
|
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
|
|
|
about_dialog.obj \
|
|
|
|
actionarea.obj \
|
|
|
|
airbrush.obj \
|
|
|
|
app_procs.obj \
|
|
|
|
asupsample.obj \
|
|
|
|
batch.obj \
|
|
|
|
bezier_select.obj \
|
|
|
|
blend.obj \
|
|
|
|
blob.obj \
|
|
|
|
boundary.obj \
|
|
|
|
brightness_contrast.obj \
|
|
|
|
brush_edit.obj \
|
|
|
|
brush_select.obj \
|
|
|
|
brush_select_cmds.obj \
|
|
|
|
brushes_cmds.obj \
|
|
|
|
bucket_fill.obj \
|
|
|
|
buildmenu.obj \
|
|
|
|
by_color_select.obj \
|
|
|
|
channel.obj \
|
|
|
|
channel_cmds.obj \
|
|
|
|
channels_dialog.obj \
|
|
|
|
channel_ops.obj \
|
|
|
|
channel_ops_cmds.obj \
|
|
|
|
clone.obj \
|
|
|
|
color_area.obj \
|
|
|
|
color_balance.obj \
|
|
|
|
color_cmds.obj \
|
|
|
|
color_notebook.obj \
|
|
|
|
color_panel.obj \
|
|
|
|
color_picker.obj \
|
|
|
|
color_select.obj \
|
|
|
|
color_transfer.obj \
|
|
|
|
colormaps.obj \
|
|
|
|
colormap_dialog.obj \
|
|
|
|
commands.obj \
|
|
|
|
convert.obj \
|
|
|
|
convert_cmds.obj \
|
|
|
|
convolve.obj \
|
|
|
|
crop.obj \
|
|
|
|
cursorutil.obj \
|
|
|
|
curves.obj \
|
|
|
|
datafiles.obj \
|
|
|
|
desaturate.obj \
|
|
|
|
devices.obj \
|
|
|
|
dialog_handler.obj \
|
|
|
|
disp_callbacks.obj \
|
|
|
|
docindex.obj \
|
|
|
|
docindexif.obj \
|
|
|
|
draw_core.obj \
|
|
|
|
drawable.obj \
|
|
|
|
drawable_cmds.obj \
|
|
|
|
edit_cmds.obj \
|
|
|
|
edit_selection.obj \
|
|
|
|
ellipse_select.obj \
|
|
|
|
eraser.obj \
|
|
|
|
errorconsole.obj \
|
|
|
|
errors.obj \
|
|
|
|
equalize.obj \
|
|
|
|
fileops.obj \
|
|
|
|
fileops_cmds.obj \
|
|
|
|
flip_tool.obj \
|
|
|
|
floating_sel.obj \
|
|
|
|
floating_sel_cmds.obj \
|
|
|
|
file_new_dialog.obj \
|
|
|
|
frac.obj \
|
|
|
|
free_select.obj \
|
|
|
|
fuzzy_select.obj \
|
|
|
|
gdisplay.obj \
|
|
|
|
gdisplay_cmds.obj \
|
|
|
|
gdisplay_ops.obj \
|
|
|
|
general.obj \
|
|
|
|
gimage.obj \
|
|
|
|
gimage_cmds.obj \
|
|
|
|
gimage_mask.obj \
|
|
|
|
gimage_mask_cmds.obj \
|
|
|
|
gimpbrush.obj \
|
|
|
|
gimpbrushgenerated.obj \
|
|
|
|
gimpbrushlist.obj \
|
|
|
|
gimphistogram.obj \
|
|
|
|
gimplist.obj \
|
|
|
|
gimplut.obj \
|
|
|
|
gimpparasite.obj \
|
|
|
|
gimpprogress.obj \
|
|
|
|
gimprc.obj \
|
|
|
|
gimprc_cmds.obj \
|
|
|
|
gimpunit.obj \
|
|
|
|
global_edit.obj \
|
|
|
|
gradient.obj \
|
|
|
|
gradient_cmds.obj \
|
|
|
|
gradient_select.obj \
|
|
|
|
gradient_select_cmds.obj \
|
|
|
|
guides_cmds.obj \
|
|
|
|
gximage.obj \
|
|
|
|
histogramwidget.obj \
|
|
|
|
histogram_tool.obj \
|
|
|
|
hue_saturation.obj \
|
|
|
|
image_map.obj \
|
|
|
|
image_render.obj \
|
|
|
|
info_dialog.obj \
|
|
|
|
info_window.obj \
|
|
|
|
ink.obj \
|
|
|
|
install.obj \
|
|
|
|
interface.obj \
|
|
|
|
interface_cmds.obj \
|
|
|
|
internal_procs.obj \
|
|
|
|
invert.obj \
|
|
|
|
iscissors.obj \
|
|
|
|
layer.obj \
|
|
|
|
layer_cmds.obj \
|
|
|
|
layer_select.obj \
|
|
|
|
layers_dialog.obj \
|
|
|
|
levels.obj \
|
|
|
|
lut_funcs.obj \
|
|
|
|
magnify.obj \
|
|
|
|
main.obj \
|
|
|
|
menus.obj \
|
|
|
|
misc_cmds.obj \
|
|
|
|
module_db.obj \
|
|
|
|
move.obj \
|
|
|
|
ops_buttons.obj \
|
|
|
|
palette.obj \
|
|
|
|
palette_cmds.obj \
|
|
|
|
palette_select.obj \
|
|
|
|
paint_core.obj \
|
|
|
|
paint_funcs.obj \
|
|
|
|
paintbrush.obj \
|
|
|
|
parasite_cmds.obj \
|
|
|
|
parasitelist.obj \
|
|
|
|
paths_cmds.obj \
|
|
|
|
paths_dialog.obj \
|
|
|
|
pattern_select.obj \
|
|
|
|
pattern_select_cmds.obj \
|
|
|
|
patterns.obj \
|
|
|
|
patterns_cmds.obj \
|
|
|
|
pencil.obj \
|
|
|
|
perspective_tool.obj \
|
|
|
|
pixel_processor.obj \
|
|
|
|
pixel_region.obj \
|
|
|
|
plug_in.obj \
|
|
|
|
plug_in_cmds.obj \
|
|
|
|
posterize.obj \
|
|
|
|
preferences_dialog.obj \
|
|
|
|
procedural_db.obj \
|
|
|
|
procedural_db_cmds.obj \
|
|
|
|
rect_select.obj \
|
|
|
|
regex.obj \
|
|
|
|
resize.obj \
|
|
|
|
rotate_tool.obj \
|
|
|
|
scale.obj \
|
|
|
|
scale_tool.obj \
|
|
|
|
scroll.obj \
|
|
|
|
selection.obj \
|
|
|
|
session.obj \
|
|
|
|
shear_tool.obj \
|
|
|
|
temp_buf.obj \
|
|
|
|
text_tool.obj \
|
|
|
|
text_tool_cmds.obj \
|
|
|
|
threshold.obj \
|
|
|
|
tile.obj \
|
|
|
|
tile_cache.obj \
|
|
|
|
tile_manager.obj \
|
|
|
|
tile_swap.obj \
|
|
|
|
tips_dialog.obj \
|
|
|
|
tool_options.obj \
|
|
|
|
tools.obj \
|
|
|
|
tools_cmds.obj \
|
|
|
|
transform_core.obj \
|
|
|
|
transform_tool.obj \
|
|
|
|
undo.obj \
|
|
|
|
undo_cmds.obj \
|
|
|
|
unit_cmds.obj \
|
|
|
|
vector2d.obj \
|
1999-03-07 20:56:03 +08:00
|
|
|
xcf.obj
|
|
|
|
|
|
|
|
.SUFFIXES: .gc
|
|
|
|
|
|
|
|
.gc.c:
|
|
|
|
$(GCG) -o $@ $<
|
|
|
|
|
|
|
|
gimp.res : gimp.rc wilber.ico
|
|
|
|
rc -r -fo gimp.res gimp.rc
|
|
|
|
|
Check for mmap.
* configure.in: Check for mmap.
* app/makefile.msc: Depend on gimpi.lib.
* app/app_procs.c (app_init): Fix gccism: Allocate filenames (an
array with non-constant size) dynamically.
* app/{datafiles,fileops,general,install,module_db,temp_buf}.c:
Include glib.h before standard headers, because of certain obscure
details related to compiling with gcc on Win32.
(If you really want to know: glib.h defines he names of POSIXish
(but non-ANSI) functions as prefixed with underscore, because
that's how they are named in the msvcrt runtime C library we want
to use. However, defining stat as _stat causes some problems if
done after including the mingw32 <sys/stat.h>. So, it's easiest to
include <glib.h> early.)
* app/main.c: Use _stdcall and __argc, __argv with MSC, but
__attribute__((stdcall)) and _argc, _argv with gcc. Don't print
the "Passed serialization test" message on Win32. (It would open
up an otherwise unnecessary console window.)
* app/paint_funcs.c (gaussian_blur_region): Don't use variable sum
until initialized.
* app/{bezier_select,paths_dialog}.c: Include config.h and define
rint() if necessary.
* app/plug_in.c: Use _spawnv, not spawnv, on Win32 and OS/2.
1999-05-29 01:47:17 +08:00
|
|
|
gimp.exe : ..\config.h $(gimp_OBJECTS) gimpim.lib gimp.def gimp.res ..\libgimp\gimpi.lib
|
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) -Fegimp.exe $(gimp_OBJECTS) gimpim.lib ..\libgimp\gimpi.lib $(GTK)\gtk\gtk-$(GTK_VER).lib $(GTK)\gdk\win32\gdk-$(GTK_VER).lib $(GLIB)\glib-$(GLIB_VER).lib $(GLIB)\gmodule-$(GLIB_VER).lib $(LDFLAGS) gimp.res gdi32.lib user32.lib /def:gimp.def
|
1999-03-07 20:56:03 +08:00
|
|
|
|
|
|
|
# General rule for building $(gimp_OBJECTS)
|
|
|
|
.c.obj:
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
del *.exe
|
|
|
|
del *.lib
|
|
|
|
del *.obj
|
|
|
|
del *.exp
|
|
|
|
del *.err
|
|
|
|
del *.map
|
|
|
|
del *.sym
|
|
|
|
del *.lk1
|
|
|
|
del *.mk1
|
|
|
|
del *.pdb
|
|
|
|
del *.ilk
|