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 \
|
2002-05-11 07:30:09 +08:00
|
|
|
display paint vectors pdb plug-in tools widgets gui
|
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)
|
|
|
|
nmake -nologo -f makefile.msc
|
|
|
|
cd ..
|
|
|
|
|
2002-03-28 08:10:56 +08:00
|
|
|
LDFLAGS = /link /subsystem:console /machine:ix86 $(LINKDEBUG)
|
|
|
|
|
2001-05-26 06:04:21 +08:00
|
|
|
PKG_LINK = \
|
2002-05-11 07:30:09 +08:00
|
|
|
config/appconfig.lib \
|
2003-07-27 01:37:32 +08:00
|
|
|
composite/appcomposite.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 \
|
2002-02-17 23:55:54 +08:00
|
|
|
plug-in/appplug-in.lib \
|
2001-05-26 06:04:21 +08:00
|
|
|
pdb/apppdb.lib \
|
|
|
|
tools/apptools.lib \
|
2003-03-04 02:14:31 +08:00
|
|
|
text/apptext.lib \
|
2001-05-26 06:04:21 +08:00
|
|
|
gui/appgui.lib \
|
|
|
|
widgets/appwidgets.lib \
|
|
|
|
core/appcore.lib \
|
|
|
|
base/appbase.lib \
|
2001-10-29 02:45:45 +08:00
|
|
|
file/appfile.lib \
|
|
|
|
display/appdisplay.lib \
|
2001-07-23 06:18:01 +08:00
|
|
|
xcf/xcf.lib \
|
2002-03-28 08:10:56 +08:00
|
|
|
vectors/appvectors.lib \
|
|
|
|
plug-in/appplug-in.lib \
|
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 \
|
|
|
|
$(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) \
|
|
|
|
-I$(top_srcdir)/intl \
|
2001-07-29 03:40:07 +08:00
|
|
|
$(GTK2_CFLAGS) \
|
2001-05-26 06:04:21 +08:00
|
|
|
-I$(includedir)
|
|
|
|
|
|
|
|
regex_sources = \
|
|
|
|
regexrepl.c regexrepl.h
|
|
|
|
|
|
|
|
mmx_sources = \
|
|
|
|
|
|
|
|
|
|
|
|
OBJECTS = \
|
2001-07-23 06:18:01 +08:00
|
|
|
app_procs.obj \
|
|
|
|
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 \
|
2001-07-23 06:18:01 +08:00
|
|
|
|
2001-05-26 06:04:21 +08:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
makefile.mingw \
|
|
|
|
makefile.mingw.in \
|
|
|
|
makefile.msc \
|
|
|
|
gimp.rc \
|
|
|
|
gimp.sym \
|
|
|
|
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 \
|
|
|
|
$(PACKAGE).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)
|
|
|
|
|
|
|
|
$(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
|
|
|
|
|
2002-03-28 08:10:56 +08:00
|
|
|
$(PACKAGE).exe : $(OBJECTS) $(PACKAGE).def $(PACKAGE).res $(PKG_LINK)
|
2001-05-26 06:04:21 +08:00
|
|
|
$(CC) $(CFLAGS) -Fe$(PACKAGE).exe $(PACKAGE).res $(OBJECTS) $(PKG_LINK) \
|
|
|
|
user32.lib advapi32.lib shell32.lib wsock32.lib winspool.lib $(LDFLAGS) /def:$(PACKAGE).def
|
|
|
|
|
|
|
|
.c.obj :
|
|
|
|
$(CC) $(CFLAGS) -GD -c $(PKG_CFLAGS) $<
|