gimp/app/makefile.msc

225 lines
4.4 KiB
Plaintext
Raw Normal View History

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.
# This is what I use as installation target, from where the installer-builder
# will pick it up.
BIN = C:\install\gimp\bin
TOP = ..\..
app/makefile.cygwin app/makefile.msc plug-ins/makefile.cygwin * app/makefile.cygwin * app/makefile.msc * plug-ins/makefile.cygwin * plug-ins/makefile.msc * modules/makefile.cygwin * modules/makefile.msc * tools/gcg/makefile.cygwin: Various updates. GCC-compiled DLL name change. * app/context_manager.c: Include paint_options.h for prototype. * app/gimpimage.c (gimp_image_initialize_projection): Break out of loop as soon as possible. * app/menus.c (menus_last_opened_cmd_callback): Check if referring to entry not in list. * app/module_db.c (valid_module_name): (Win32) Require module DLL names to include name of compiler built with. * app/paths_dialog.c (paths_draw_segment_points): No use to draw lines if we have less that two points. * app/qmask.c: Include stdio.h and floating_sel.h. * libgimp/makefile.cygwin: New file. * libgimp/Makefile.am: Distribute above file. * libgimp/gimp.def: Update. * libgimp/gimpenv.c (gimp_directory): Don't warn about missing home directory on Win32, it is perfectly natural. * plug-ins/sel2path/global.h: Bypass unused declarations, some of which clash with functions in MSVCRT. * plug-ins/sel2path/math.c * modules/colorsel_water.c: Define M_PI if necessary. * plug-ins/sel2path/sel2path.c: Include config.h and glib.h. Define rint() if needed. * plug-ins/sel2path/vector.c: Include glib.h (for hypot() renaming on Win32; In the MS C runtime, as hypot() is non-ANSI, it's called _hypot(), sigh). * plug-ins/sinus/sinus_logo.h: Use indexed format, it is easier on some compilers than the huge string.
1999-07-15 00:02:32 +08:00
################################################################
# Nothing much configurable below
!INCLUDE $(TOP)\build\win32\make.msc
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
# cl -? describes the options
CC = cl -GA -G5 -GF $(OPTIMIZE) -W3 -nologo
1999-03-07 20:56:03 +08:00
LDFLAGS = /link /subsystem:console /machine:ix86 $(LINKDEBUG)
1999-03-07 20:56:03 +08:00
INSTALL = copy
GIMP_VER = 1.3
1999-03-07 20:56:03 +08:00
CFLAGS = -DREGEX_MALLOC -DHAVE_CONFIG_H -I. -I.. $(GLIB_CFLAGS) $(GTK_CFLAGS) $(INTL_CFLAGS)
1999-03-07 20:56:03 +08:00
all : \
..\config.h \
gimpim.lib \
colormap_dialog.c \
gimp.exe
install : gimp.exe
$(INSTALL) gimp.exe $(BIN)
..\config.h : ..\config.h.win32
copy ..\config.h.win32 $@
1999-03-07 20:56:03 +08:00
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 \
gimppreviewcache.obj\
# gimpset.obj \
# gimpsignal.obj
1999-03-07 20:56:03 +08:00
gimpim.lib : $(gimpim_OBJECTS)
lib /out:gimpim.lib $(gimpim_OBJECTS)
gimp_OBJECTS = \
about_dialog.obj \
app_procs.obj \
asupsample.obj \
batch.obj \
boundary.obj \
brush_edit.obj \
brush_scale.obj \
brush_select.obj \
brushes.obj \
channel_ops.obj \
channels_dialog.obj \
color_area.obj \
color_notebook.obj \
color_panel.obj \
color_select.obj \
color_transfer.obj \
colormap_dialog.obj \
colormaps.obj \
commands.obj \
context_manager.obj \
convert.obj \
cursorutil.obj \
datafiles.obj \
desaturate.obj \
devices.obj \
dialog_handler.obj \
disp_callbacks.obj \
docindex.obj \
draw_core.obj \
drawable.obj \
equalize.obj \
errorconsole.obj \
errors.obj \
file_new_dialog.obj \
fileops.obj \
floating_sel.obj \
gdisplay.obj \
gdisplay_ops.obj \
general.obj \
gimage.obj \
gimage_mask.obj \
gimpbrush.obj \
gimpbrushgenerated.obj \
gimpbrushpipe.obj \
gimpchannel.obj \
gimpconstrainedhwrapbox.obj \
gimpcontainer.obj \
gimpcontainergridview.obj \
gimpcontainerlistview.obj \
gimpcontainerview.obj \
gimpcontext.obj \
gimpcontextpreview.obj \
gimpdatalist.obj \
gimpdnd.obj \
gimpdrawable.obj \
gimpdrawablepreview.obj \
gimphelp.obj \
gimphistogram.obj \
gimpimage.obj \
gimplayer.obj \
gimplayermask.obj \
gimplist.obj \
gimplut.obj \
gimpmarshal.obj \
gimpobject.obj \
gimppalette.obj \
gimpparasite.obj \
gimppattern.obj \
gimppreview.obj \
gimppreviewcache.obj \
gimpprogress.obj \
gimprc.obj \
gimpui.obj \
gimpunit.obj \
gimpviewable.obj \
global_edit.obj \
gradient.obj \
gradient_select.obj \
gtkhwrapbox.obj \
gtkvwrapbox.obj \
gtkwrapbox.obj \
gximage.obj \
histogramwidget.obj \
image_map.obj \
image_new.obj \
image_render.obj \
indicator_area.obj \
info_dialog.obj \
info_window.obj \
interface.obj \
invert.obj \
layer_select.obj \
layers_dialog.obj \
lc_dialog.obj \
libgimp_glue.obj \
lut_funcs.obj \
main.obj \
menus.obj \
module_db.obj \
nav_window.obj \
ops_buttons.obj \
paint_funcs.obj \
palette.obj \
palette_import.obj \
palette_select.obj \
parasitelist.obj \
path.obj \
paths_dialog.obj \
pattern_select.obj \
patterns.obj \
pixel_processor.obj \
pixel_region.obj \
plug_in.obj \
preferences_dialog.obj \
qmask.obj \
regexrepl.obj \
resize.obj \
resolution_calibrate.obj \
scale.obj \
scan_convert.obj \
scroll.obj \
selection.obj \
session.obj \
temp_buf.obj \
tile.obj \
tile_cache.obj \
tile_manager.obj \
tile_swap.obj \
tips_dialog.obj \
toolbox.obj \
undo.obj \
undo_history.obj \
user_install.obj \
xcf.obj \
# gdisplay_color.obj \
# gdisplay_color_ui.obj \
# gimpbrushlist.obj \
# path_bezier.obj \
# path_curves.obj \
1999-03-07 20:56:03 +08:00
gimp.res : gimp.rc wilber.ico
rc -r -fo gimp.res gimp.rc
gimp.def: gimp.sym
echo EXPORTS >$@
copy /y $@+gimp.sym $@
gimp.exe : ..\config.h $(gimp_OBJECTS) gimpim.lib gimp.def gimp.res ..\libgimp\gimpi.lib
$(CC) $(CFLAGS) -Fegimp.exe $(gimp_OBJECTS) gimpim.lib ..\libgimp\gimpi.lib \
.\pdb\gimppdb-$(GIMP_VER).lib .\tools\gimptools-$(GIMP_VER).lib \
..\libgimpwidgets\gimpwidgets-$(GIMP_VER).lib \
..\libgimpcolor\gimpcolor-$(GIMP_VER).lib ..\libgimpmath\gimpmath-$(GIMP_VER).lib \
$(GTK_LIBS) $(GLIB_LIBS) $(INTL_LIBS) $(LDFLAGS) gimp.res gdi32.lib user32.lib shell32.lib /def:gimp.def
1999-03-07 20:56:03 +08:00
# General rule for building $(gimp_OBJECTS)
.c.obj:
$(CC) $(CFLAGS) -c $<
.c.i :
$(CC) $(CFLAGS) -E $< >$@
clean::
1999-03-07 20:56:03 +08:00
del *.exe
del *.lib
del *.obj
del *.exp
del *.err
del *.map
del *.sym
del *.lk1
del *.mk1
del *.pdb
del *.ilk