gimp/app/makefile.msc
Hans Breuer 787ffe3e93 app/makefile.msc adapted to current state of file renaming/restructuring.
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
2001-03-16 19:14:04 +00:00

242 lines
4.8 KiB
Plaintext

## 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 = ..\..
################################################################
# Nothing much configurable below
!INCLUDE $(TOP)\build\win32\make.msc
# cl -? describes the options
CC = cl -GA -G5 -GF $(OPTIMIZE) -W3 -nologo
LDFLAGS = /link /subsystem:console /machine:ix86 $(LINKDEBUG)
INSTALL = copy
GIMP_VER = 1.3
CFLAGS = -DREGEX_MALLOC -DHAVE_CONFIG_H -I. -I.. $(GLIB_CFLAGS) $(GTK_CFLAGS) $(INTL_CFLAGS)
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 $@
gimpim_OBJECTS = \
gimpdrawable.obj\
gimpimage.obj \
gimpobject.obj \
gimppreviewcache.obj\
# gimpset.obj \
# gimpsignal.obj
gimpim.lib : $(gimpim_OBJECTS)
lib /out:gimpim.lib $(gimpim_OBJECTS)
gimp_OBJECTS = \
about_dialog.obj \
app_procs.obj \
#lgc asupsample.obj \
batch.obj \
boundary.obj \
brush_edit.obj \
brush_scale.obj \
brush_select.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 \
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 \
gimpbrushpreview.obj \
gimpchannel.obj \
gimpconstrainedhwrapbox.obj \
gimpcontainer.obj \
gimpcontainergridview.obj \
gimpcontainerlistview.obj \
gimpcontainerview.obj \
gimpcontext.obj \
# gimpcontextpreview.obj \
gimpdata.obj \
gimpdatalist.obj \
gimpdatafactory.obj \
gimpdatafactoryview.obj \
gimpdnd.obj \
gimpdrawable.obj \
gimpdrawablelistitem.obj \
gimpdrawablelistview.obj \
gimpdrawablepreview.obj \
gimpdrawable-preview.obj \
gimpgradientpreview.obj \
gimphelp.obj \
gimphistogram.obj \
gimpimage.obj \
gimpimagepreview.obj \
gimpimage-undo.obj \
gimplayer.obj \
gimplayerlistitem.obj \
gimplayerlistview.obj \
gimplayermask.obj \
gimplist.obj \
gimplistitem.obj \
gimplut.obj \
gimpmarshal.obj \
gimpobject.obj \
gimppalette.obj \
gimppalettepreview.obj \
gimppalette-import.obj \
gimpparasite.obj \
gimppattern.obj \
gimppatternpreview.obj \
gimppreview.obj \
gimppreviewcache.obj \
gimpprogress.obj \
gimprc.obj \
gimptoolinfopreview.obj \
gimpui.obj \
gimpundo.obj \
gimpundostack.obj \
gimpunit.obj \
gimpviewable.obj \
global_edit.obj \
gimpgradient.obj \
gradient_editor.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 \
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 \
test_commands.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 \
# path_bezier.obj \
# path_curves.obj \
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
# General rule for building $(gimp_OBJECTS)
.c.obj:
$(CC) $(CFLAGS) -c $<
.c.i :
$(CC) $(CFLAGS) -E $< >$@
clean::
del *.exe
del *.lib
del *.obj
del *.exp
del *.err
del *.map
del *.sym
del *.lk1
del *.mk1
del *.pdb
del *.ilk