2001-05-26 06:04:21 +08:00
|
|
|
# autogenerated from automake.am with automake.py
|
|
|
|
# and slightly modified
|
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
|
|
|
|
2004-02-08 07:01:33 +08:00
|
|
|
PACKAGE = gimp
|
2001-02-07 09:16:18 +08:00
|
|
|
TOP = ..\..
|
2001-05-26 06:04:21 +08:00
|
|
|
PRJ_TOP = ..
|
2004-02-08 07:01:33 +08:00
|
|
|
!include $(TOP)\glib\build\win32\make.msc
|
|
|
|
|
|
|
|
!INCLUDE $(PRJ_TOP)\gimpdefs.msc
|
|
|
|
PKG_VER = $(GIMP_VER)
|
1999-03-07 20:56:03 +08:00
|
|
|
|
2001-05-26 06:04:21 +08:00
|
|
|
top_srcdir = $(PRJ_TOP)
|
|
|
|
top_builddir = $(PRJ_TOP)
|
|
|
|
includedir = $(PRJ_TOP)
|
|
|
|
LT_RELEASE = $(PKG_VER)
|
2004-02-08 07:01:33 +08:00
|
|
|
|
2003-07-27 01:37:32 +08:00
|
|
|
SUBDIRS = composite paint-funcs base config xcf core file text \
|
2004-11-21 22:22:45 +08:00
|
|
|
dialogs display paint vectors pdb plug-in tools widgets gui \
|
2004-07-12 05:53:17 +08:00
|
|
|
actions menus
|
2001-05-26 06:04:21 +08:00
|
|
|
|
|
|
|
sub-all:
|
|
|
|
for %d in ($(SUBDIRS)) do nmake -nologo -f makefile.msc sub-one THIS=%d
|
|
|
|
|
|
|
|
sub-one:
|
|
|
|
cd $(THIS)
|
2006-09-03 20:39:24 +08:00
|
|
|
nmake -nologo -f makefile.msc $(TARGET)
|
2001-05-26 06:04:21 +08:00
|
|
|
cd ..
|
|
|
|
|
2006-09-03 20:39:24 +08:00
|
|
|
clean :: sub-clean
|
|
|
|
|
|
|
|
sub-clean:
|
|
|
|
for %d in ($(SUBDIRS)) do nmake -nologo -f makefile.msc sub-one THIS=%d TARGET=clean
|
|
|
|
|
2002-03-28 08:10:56 +08:00
|
|
|
LDFLAGS = /link /subsystem:console /machine:ix86 $(LINKDEBUG)
|
|
|
|
|
2004-08-02 04:51:12 +08:00
|
|
|
|
|
|
|
GIMP_CORE_OBJECTS = \
|
|
|
|
widgets/widgets-enums.obj \
|
|
|
|
display/display-enums.obj \
|
|
|
|
display/gimpdisplayoptions.obj \
|
|
|
|
\
|
|
|
|
base/appbase.lib \
|
2003-07-27 01:37:32 +08:00
|
|
|
composite/appcomposite.lib \
|
2004-08-02 04:51:12 +08:00
|
|
|
config/appconfig.lib \
|
|
|
|
core/appcore.lib \
|
|
|
|
file/appfile.lib \
|
2002-02-17 23:55:54 +08:00
|
|
|
paint/apppaint.lib \
|
2001-05-26 06:04:21 +08:00
|
|
|
paint-funcs/apppaint-funcs.lib \
|
|
|
|
pdb/apppdb.lib \
|
2004-08-02 04:51:12 +08:00
|
|
|
plug-in/appplug-in.lib \
|
2003-03-04 02:14:31 +08:00
|
|
|
text/apptext.lib \
|
2004-08-02 04:51:12 +08:00
|
|
|
vectors/appvectors.lib \
|
|
|
|
plug-in/appplug-in.lib \
|
|
|
|
xcf/xcf.lib \
|
|
|
|
|
|
|
|
PKG_LINK = \
|
2001-07-23 06:18:01 +08:00
|
|
|
$(PRJ_TOP)/regexrepl/regexrepl.lib \
|
2002-05-11 07:30:09 +08:00
|
|
|
\
|
2003-12-13 09:35:19 +08:00
|
|
|
$(top_builddir)/libgimpbase/gimpbase-$(LT_RELEASE).lib \
|
2001-05-26 06:04:21 +08:00
|
|
|
$(top_builddir)/libgimpcolor/gimpcolor-$(LT_RELEASE).lib \
|
2005-02-19 08:50:36 +08:00
|
|
|
$(top_builddir)/libgimpconfig/gimpconfig-$(LT_RELEASE).lib \
|
2001-05-26 06:04:21 +08:00
|
|
|
$(top_builddir)/libgimpmath/gimpmath-$(LT_RELEASE).lib \
|
2003-12-13 09:35:19 +08:00
|
|
|
$(top_builddir)/libgimpthumb/gimpthumb-$(LT_RELEASE).lib \
|
2002-12-01 22:53:17 +08:00
|
|
|
$(top_builddir)/libgimpmodule/gimpmodule-$(LT_RELEASE).lib \
|
2001-05-26 06:04:21 +08:00
|
|
|
$(top_builddir)/libgimpwidgets/gimpwidgets-$(LT_RELEASE).lib \
|
2001-07-29 03:40:07 +08:00
|
|
|
$(GLIB_LIBS) \
|
|
|
|
$(GTK2_LIBS) \
|
2001-05-26 06:04:21 +08:00
|
|
|
$(GIMP_THREAD_LIBS) \
|
|
|
|
$(GIMP_MP_LIBS) \
|
2001-10-29 02:45:45 +08:00
|
|
|
$(INTL_LIBS) \
|
2003-05-25 01:00:03 +08:00
|
|
|
$(LIBART_LIBS) \
|
2003-12-13 09:35:19 +08:00
|
|
|
$(PANGOWIN32_LIBS) \
|
|
|
|
!IFNDEF PANGO_WIN32_EXTENDED
|
|
|
|
$(PANGOFT2_LIBS) \
|
|
|
|
$(FREETYPE2_LIBS) \
|
|
|
|
$(FONTCONFIG_LIBS) \
|
|
|
|
!ENDIF
|
2003-06-19 17:57:35 +08:00
|
|
|
|
2001-05-26 06:04:21 +08:00
|
|
|
gimp_LDFLAGS = \
|
|
|
|
-export-dynamic -export-symbols $(srcdir)/gimp.sym
|
|
|
|
|
|
|
|
INCLUDES = \
|
2003-06-19 17:57:35 +08:00
|
|
|
-DG_LOG_DOMAIN=\"Gimp\" \
|
|
|
|
-DGIMP_APP_GLUE_COMPILATION \
|
2001-05-26 06:04:21 +08:00
|
|
|
-I$(top_srcdir) \
|
2004-11-21 22:22:45 +08:00
|
|
|
-I$(top_srcdir)/app \
|
2001-07-29 03:40:07 +08:00
|
|
|
$(GTK2_CFLAGS) \
|
2004-07-12 05:53:17 +08:00
|
|
|
!IFNDEF PANGO_WIN32_EXTENDED
|
|
|
|
$(FONTCONFIG_CFLAGS) \
|
|
|
|
$(FREETYPE2_CFLAGS) \
|
|
|
|
!ENDIF
|
2001-05-26 06:04:21 +08:00
|
|
|
-I$(includedir)
|
|
|
|
|
|
|
|
OBJECTS = \
|
2001-07-23 06:18:01 +08:00
|
|
|
main.obj \
|
|
|
|
batch.obj \
|
|
|
|
errors.obj \
|
2004-04-11 23:21:09 +08:00
|
|
|
sanity.obj \
|
2003-11-17 05:20:14 +08:00
|
|
|
units.obj \
|
2005-09-26 03:30:55 +08:00
|
|
|
\
|
|
|
|
actions/appactions.lib \
|
|
|
|
menus/appmenus.lib \
|
|
|
|
tools/apptools.lib \
|
|
|
|
gui/appgui.lib \
|
|
|
|
dialogs/appdialogs.lib \
|
|
|
|
widgets/appwidgets.lib \
|
|
|
|
display/appdisplay.lib \
|
2001-07-23 06:18:01 +08:00
|
|
|
|
2007-03-05 03:04:42 +08:00
|
|
|
app_console.obj : app.c
|
|
|
|
$(CC) $(CFLAGS) -DGIMP_CONSOLE_COMPILATION -GD -c $(PKG_CFLAGS) -Foapp_console.obj app.c
|
2001-05-26 06:04:21 +08:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
makefile.mingw \
|
|
|
|
makefile.mingw.in \
|
|
|
|
makefile.msc \
|
|
|
|
gimp.rc \
|
|
|
|
gimp.sym \
|
2004-11-06 19:39:42 +08:00
|
|
|
fileicon.ico \
|
2001-05-26 06:04:21 +08:00
|
|
|
wilber.ico \
|
|
|
|
arch/i386/mmx/detect_mmx.S \
|
|
|
|
arch/i386/mmx/paint_funcs_mmx.S \
|
|
|
|
detect_mmx.S \
|
|
|
|
regexrepl.c \
|
|
|
|
regexrepl.h
|
|
|
|
|
|
|
|
scriptdata = \
|
|
|
|
|
|
|
|
|
|
|
|
all : \
|
|
|
|
$(PRJ_TOP)\config.h \
|
|
|
|
sub-all \
|
2004-08-02 04:51:12 +08:00
|
|
|
gimp-core-$(PKG_VER).dll \
|
|
|
|
$(PACKAGE).exe \
|
|
|
|
gimp-console.exe
|
2001-05-26 06:04:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
$(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)
|
|
|
|
|
2004-08-02 04:51:12 +08:00
|
|
|
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
|
|
|
|
|
2001-05-26 06:04:21 +08:00
|
|
|
$(PACKAGE)-$(PKG_VER).dll : $(PKG_LINK) $(OBJECTS) $(PACKAGE).def
|
|
|
|
$(CC) $(CFLAGS) -LD -Fe$(PACKAGE)-$(PKG_VER).dll $(OBJECTS) $(PKG_LINK) user32.lib advapi32.lib wsock32.lib $(LDFLAGS) /def:$(PACKAGE).def
|
|
|
|
|
2007-03-05 03:04:42 +08:00
|
|
|
gimp-console.exe : $(OBJECTS) app_console.obj $(PACKAGE).res $(PKG_LINK)
|
|
|
|
$(CC) $(CFLAGS) -Fegimp-console.exe $(PACKAGE).res app_console.obj $(OBJECTS) $(PKG_LINK) \
|
2004-08-02 04:51:12 +08:00
|
|
|
gimp-core-$(PKG_VER).lib \
|
2007-01-14 06:41:21 +08:00
|
|
|
user32.lib advapi32.lib shell32.lib wsock32.lib winspool.lib $(LDFLAGS)
|
2001-05-26 06:04:21 +08:00
|
|
|
|
2007-03-05 03:04:42 +08:00
|
|
|
$(PACKAGE).exe : $(OBJECTS) app.obj $(PACKAGE).res $(PKG_LINK)
|
|
|
|
$(CC) $(CFLAGS) -Fe$(PACKAGE).exe $(PACKAGE).res app.obj $(OBJECTS) \
|
2004-08-02 04:51:12 +08:00
|
|
|
gimp-core-$(PKG_VER).lib \
|
2007-01-14 06:41:21 +08:00
|
|
|
$(PKG_LINK) user32.lib advapi32.lib shell32.lib wsock32.lib winspool.lib $(LDFLAGS)
|
2004-08-02 04:51:12 +08:00
|
|
|
|
2001-05-26 06:04:21 +08:00
|
|
|
.c.obj :
|
|
|
|
$(CC) $(CFLAGS) -GD -c $(PKG_CFLAGS) $<
|