gimp/app/makefile.msc

169 lines
4.1 KiB
Plaintext
Raw Normal View History

# autogenerated from automake.am with automake.py
# and slightly modified
PACKAGE = gimp
TOP = ..\..
PRJ_TOP = ..
!include $(TOP)\glib\build\win32\make.msc
!INCLUDE $(PRJ_TOP)\gimpdefs.msc
PKG_VER = $(GIMP_VER)
1999-03-07 20:56:03 +08:00
top_srcdir = $(PRJ_TOP)
top_builddir = $(PRJ_TOP)
includedir = $(PRJ_TOP)
LT_RELEASE = $(PKG_VER)
SUBDIRS = composite paint-funcs base config xcf core file text \
dialogs display paint vectors pdb plug-in tools widgets gui \
actions menus gegl
sub-all:
for %d in ($(SUBDIRS)) do nmake -nologo -f makefile.msc sub-one THIS=%d
sub-one:
cd $(THIS)
nmake -nologo -f makefile.msc $(TARGET)
cd ..
clean :: sub-clean
sub-clean:
for %d in ($(SUBDIRS)) do nmake -nologo -f makefile.msc sub-one THIS=%d TARGET=clean
#define GETTEXT_PACKAGE 2001-03-28 Hans Breuer <hans@breuer.org> * config.h.win32 : #define GETTEXT_PACKAGE * makefile.msc : add theme rule * app/makefile.msc : gimp.exe depends on all the libs and general update * app/base/makefile.msc : updated * app/config/gimpconfig-serialize.c : #include <io.h> for win32 * app/config/gimpconfig-types.c : #include <string.h> * app/core/gimpcontext.c app/core/gimpcontainer.c app/core/gimptoolinfo.c : #include <string.h> * app/core/gimpdocuments.c (gimp_documents_save_func) : need to g_strescape() the filename to not make backslashes vanish during de-serialization * app/core/gimpimagefile.c : #define S_ISREG for G_OS_WIN32 * app/core/makefile.msc : add -DGIMP_COMPILATION required for cpercep.c build * app/display/gimpdisplayshell.c : #include <string.h> * app/display/makefile.msc : -FImsvc_recommended_pragmas.h, G_LOG_DOMAIN definition and object file update * app/file/makefile.msc : -FImsvc_recommended_pragmas.h, G_LOG_DOMAIN definition * app/file/file-open.c (file_open_with_proc_and_display) : use absolute filename for gimp_documents_add() * app/gui/channel-commands.c app/gui/colormap-editor-commands.c app/gui/edit-commands.c app/gui/vectors-commands.c : #include <string.h> * app/gui/makefile.msc : updated * app/gui/menus.c : use g_file_test() instead of access() to avoid inclusion <unistd.h> * app/paint/makefile.msc : updated * app/plug-in/plug-in-params.c : #include <string.h> * app/plug-in/makefile.msc : updated * app/plug-in/plug-in-def.h : #include <time.h> for time_t * app/plug-in/plug-in.c : remove definition of S_IFREG * app/plug-in/gap/gap_arr_dialog.c : include <config.h> before including libgimp/libgimp-intl.h * app/tools/makefile.msc : updated * app/vectors/makefile.msc : new file * app/widgets/makefile.msc : updated * libgimp/gimp.def : updated externals * libgimpwidgets/gimpwidgets.def : updated externals * modules/makefile.msc : updated and disabled colorsel_gtk. * plug-in/makefile.msc : don't define GETTEXT_PACKAGE * themes/Default/images/makefile.msc : moved makefile.msc from .. and adapted pathes to images
2002-03-28 08:10:56 +08:00
LDFLAGS = /link /subsystem:console /machine:ix86 $(LINKDEBUG)
GIMP_CORE_OBJECTS = \
widgets/widgets-enums.obj \
display/display-enums.obj \
display/gimpdisplayoptions.obj \
\
gimp-log.obj \
\
base/appbase.lib \
composite/appcomposite.lib \
config/appconfig.lib \
core/appcore.lib \
file/appfile.lib \
gegl/appgegl.lib \
from now on use make.msc from $(TOP)/glib/build/win32; all occurences of 2001-02-17 Hans Breuer <hans@breuer.org> * */*/makefile.msc */makefile.msc : from now on use make.msc from $(TOP)/glib/build/win32; all occurences of DIRENT removed and general update * app/config/makefile.msc app/paint/makefile.msc app/plug-in/makefile.msc themes/Default/makefile.msc : new files * app/base/base.c : ported to GDir usage * app/config/gimpconfig-serialize.c : app/config/gimpconfig-deserialize.c : HAVE_UNISTD_H * app/config/gimpconfig.c : app/config/gimprc.c : HAVE_UNISTD_H, use <io.h> for open() prototype and merged pmode parameter (_S_IREAD | _S_IWRITE) * app/core/cpercep.c : msvc doesn't have cbrt(), provide it via pow(). Also include <glib.h> for painless 'inline' definition. * app/core/gimpdatafiles.c : ported to GDir usage * app/core/gimpimage-convert.c : work around a msvc compiler limitation (can't convert from uint64 to double) * app/file/file-open.c app/file/file-save.c : access() -> _access() for G_OS_WIN32 * app/plug-in/plug-in.c : HAVE_UNISTD_H and <io.h> * libgimpbase/gimpbase.def : updated externals * libgimpbase/gimpenv.c : define WIN32_LEAN_AND_MEAN to avoid clashes with incompatible DATADIR definitions * libgimpcolor/gimpcolor.def : updated externals * lingimpmath/gimpmath.def : updated externals * libgimpwidgets/gimpwidgets.def : updated externals * libgimpwidgets/libgimp-glue.c : adapt to const changes of some prototypes * plug-ins/makefile.msc : disabled gdyntext * plug-ins/gap/iter_ALT/*/*.inc : GimpRunModeType -> GimpRunMode * plug-ins/FractalExplorer/FractalExplorer.c : * plug-ins/gap/gap_lib.c : * plug-ins/gfig/gfig.c : * plug-ins/gflare/gflare.c : * plug-ins/gimpressionist/gimpressionist.c : replaced DIRENT usage with GDir * plug-ins/script-fu/script-fu-scripts.c : #include <windows.h> to get the Sleep() prototype
2002-02-17 23:55:54 +08:00
paint/apppaint.lib \
paint-funcs/apppaint-funcs.lib \
pdb/apppdb.lib \
plug-in/appplug-in.lib \
text/apptext.lib \
vectors/appvectors.lib \
plug-in/appplug-in.lib \
xcf/xcf.lib \
PKG_LINK = \
$(top_builddir)/libgimpbase/gimpbase-$(LT_RELEASE).lib \
$(top_builddir)/libgimpcolor/gimpcolor-$(LT_RELEASE).lib \
$(top_builddir)/libgimpconfig/gimpconfig-$(LT_RELEASE).lib \
$(top_builddir)/libgimpmath/gimpmath-$(LT_RELEASE).lib \
$(top_builddir)/libgimpthumb/gimpthumb-$(LT_RELEASE).lib \
$(top_builddir)/libgimpmodule/gimpmodule-$(LT_RELEASE).lib \
$(top_builddir)/libgimpwidgets/gimpwidgets-$(LT_RELEASE).lib \
$(GLIB_LIBS) $(GTHREAD_LIBS) \
updated for GTK2 build 2001-07-28 Hans Breuer <hans@breuer.org> * */*/makefile.msc : updated for GTK2 build * app/widgets/makefile.msc : (new file) forgot this one last time * plug-ins/common/animationplay.c : reflect that GTK2 has its gdk<x|win32|fb>.h files in the back-end sub directories * plug-ins/common/gif.c : * plug-ins/common/jpeg.c : * plug-ins/dbbrowser/dbbrowser_utils.c : * plug-ins/gap/gap_dbbrowser_utils.c : * plug-ims/gimpressionist/presets.c : * plug-ims/gimpressionist/imap_setting.c : * plug-ims/gimpressionist/imap_source.c : * plug-ims/script-fu/script-fu-console.c : * plug-ims/script-fu/script-fu-scripts.c : #define GTK_ENABLE_BROKEN and include <gtk/gtktext.h> to make them compile/work again * plug-ins/common/spheredesigner.c : gtk_color_selction_set_opacity renamed to gtk_color_selction_set_current_alpha * plug-ins/gflare/gtkmultioptionmenu.c : ported ny removing the virtual draw function and style->xthickness and ythickness via direct access, klass field isn't available anymore * plug-ins/common/nlfilt.c : * plug-ims/gap/gap_movdialog.c : * plug-ims/gimpressionist/gimpressionist.c : gtk_widget_set_default_visible is neither available nor needed anymore * plug-ins/common/plugindetails.c : ported to GtkTextBuffer and reflect gtk_paned api changes * plug-ims/gimpressionist/imap_preview.c : replace GTK_WIDGET(a)->klass access by GTK_WIDGET_GET_CLASS(a) * plug-ims/gimpressionist/imap_selection.c : * plug-ims/gimpressionist/imap_toolbar.c : * plug-ims/gimpressionist/imap_tools.c : gtk_toolbar api changes
2001-07-29 03:40:07 +08:00
$(GTK2_LIBS) \
$(GIMP_THREAD_LIBS) \
$(GIMP_MP_LIBS) \
$(CAIRO_LIBS) \
$(INTL_LIBS) \
$(LIBART_LIBS) \
$(PANGOWIN32_LIBS) \
$(PANGOCAIRO_LIBS) \
$(GEGL_LIBS) $(BABL_LIBS) \
!IFNDEF PANGO_WIN32_EXTENDED
$(PANGOFT2_LIBS) \
$(FREETYPE2_LIBS) \
$(FONTCONFIG_LIBS) \
!ENDIF
gimp_LDFLAGS = \
-export-dynamic -export-symbols $(srcdir)/gimp.sym
INCLUDES = \
-DG_LOG_DOMAIN=\"Gimp\" \
-DGIMP_APP_GLUE_COMPILATION \
-I$(top_srcdir) \
-I$(top_srcdir)/app \
updated for GTK2 build 2001-07-28 Hans Breuer <hans@breuer.org> * */*/makefile.msc : updated for GTK2 build * app/widgets/makefile.msc : (new file) forgot this one last time * plug-ins/common/animationplay.c : reflect that GTK2 has its gdk<x|win32|fb>.h files in the back-end sub directories * plug-ins/common/gif.c : * plug-ins/common/jpeg.c : * plug-ins/dbbrowser/dbbrowser_utils.c : * plug-ins/gap/gap_dbbrowser_utils.c : * plug-ims/gimpressionist/presets.c : * plug-ims/gimpressionist/imap_setting.c : * plug-ims/gimpressionist/imap_source.c : * plug-ims/script-fu/script-fu-console.c : * plug-ims/script-fu/script-fu-scripts.c : #define GTK_ENABLE_BROKEN and include <gtk/gtktext.h> to make them compile/work again * plug-ins/common/spheredesigner.c : gtk_color_selction_set_opacity renamed to gtk_color_selction_set_current_alpha * plug-ins/gflare/gtkmultioptionmenu.c : ported ny removing the virtual draw function and style->xthickness and ythickness via direct access, klass field isn't available anymore * plug-ins/common/nlfilt.c : * plug-ims/gap/gap_movdialog.c : * plug-ims/gimpressionist/gimpressionist.c : gtk_widget_set_default_visible is neither available nor needed anymore * plug-ins/common/plugindetails.c : ported to GtkTextBuffer and reflect gtk_paned api changes * plug-ims/gimpressionist/imap_preview.c : replace GTK_WIDGET(a)->klass access by GTK_WIDGET_GET_CLASS(a) * plug-ims/gimpressionist/imap_selection.c : * plug-ims/gimpressionist/imap_toolbar.c : * plug-ims/gimpressionist/imap_tools.c : gtk_toolbar api changes
2001-07-29 03:40:07 +08:00
$(GTK2_CFLAGS) \
$(GEGL_CFLAGS) \
!IFNDEF PANGO_WIN32_EXTENDED
$(FONTCONFIG_CFLAGS) \
$(FREETYPE2_CFLAGS) \
!ENDIF
-I$(includedir)
OBJECTS = \
main.obj \
batch.obj \
errors.obj \
sanity.obj \
unique.obj \
units.obj \
version.obj \
\
actions/appactions.lib \
menus/appmenus.lib \
tools/apptools.lib \
gui/appgui.lib \
dialogs/appdialogs.lib \
widgets/appwidgets.lib \
display/appdisplay.lib \
app_console.obj : app.c
$(CC) $(CFLAGS) -DGIMP_CONSOLE_COMPILATION -c -Foapp_console.obj app.c
EXTRA_DIST = \
makefile.mingw \
makefile.mingw.in \
makefile.msc \
gimp.rc \
gimp.sym \
fileicon.ico \
wilber.ico \
arch/i386/mmx/detect_mmx.S \
arch/i386/mmx/paint_funcs_mmx.S \
detect_mmx.S
scriptdata = \
all : \
$(PRJ_TOP)\config.h \
sub-all \
gimp-core-$(PKG_VER).dll \
$(PACKAGE).exe \
gimp-console.exe
$(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32
copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h
RESOURCE = $(PACKAGE).res
$(PACKAGE).lib : $(OBJECTS)
lib /out:$(PACKAGE).lib $(OBJECTS)
gimp-core-$(PKG_VER).dll : $(GIMP_CORE_OBJECTS) gimpcore.def
$(CC) $(CFLAGS) -LD -Fegimp-core-$(PKG_VER).dll $(GIMP_CORE_OBJECTS) $(PKG_LINK) user32.lib advapi32.lib wsock32.lib $(LDFLAGS) /def:gimpcore.def
$(PACKAGE)-$(PKG_VER).dll : $(PKG_LINK) $(OBJECTS) $(PACKAGE).def
$(CC) $(CFLAGS) -LD -Fe$(PACKAGE)-$(PKG_VER).dll $(OBJECTS) $(PKG_LINK) \
user32.lib kernel32.lib advapi32.lib wsock32.lib $(LDFLAGS) /def:$(PACKAGE).def
gimp-console.exe : $(OBJECTS) app_console.obj $(PACKAGE).res $(PKG_LINK)
$(CC) $(CFLAGS) -Fegimp-console.exe $(PACKAGE).res app_console.obj $(OBJECTS) $(PKG_LINK) \
gimp-core-$(PKG_VER).lib \
user32.lib kernel32.lib advapi32.lib shell32.lib wsock32.lib winspool.lib $(LDFLAGS)
$(PACKAGE).exe : $(OBJECTS) app.obj $(PACKAGE).res $(PKG_LINK)
$(CC) $(CFLAGS) -Fe$(PACKAGE).exe $(PACKAGE).res app.obj $(OBJECTS) \
gimp-core-$(PKG_VER).lib \
$(PKG_LINK) user32.lib kernel32.lib advapi32.lib shell32.lib wsock32.lib winspool.lib $(LDFLAGS)
.c.obj :
$(CC) $(CFLAGS) -c $<