# autogenerated from automake.am with automake.py
PACKAGE = appcore
TOP = ..\..\..
PRJ_TOP = ..\..
!include $(TOP)\glib\build\win32\make.msc

!INCLUDE $(PRJ_TOP)\gimpdefs.msc
PKG_VER = $(GIMP_VER)

PKG_LINK = \
	$(GLIB_LIBS) $(GTK_PIXBUF_LIBS) $(INTL_LIBS) $(LIBART_LIBS) \
	$(PANGOWIN32_LIBS) $(GDK_PIXBUF_LIBS) \
#	$(PANGOFT2_LIBS) \
	\
	..\..\regexrepl\regexrepl.lib \
	\
	..\..\libgimpbase\gimpbase-$(PKG_VER).lib \
	..\..\libgimpcolor\gimpcolor-$(PKG_VER).lib \
	..\..\libgimpmath\gimpmath-$(PKG_VER).lib \
	..\..\libgimpmodule\gimpmodule-$(PKG_VER).lib \
	\
	..\config\appconfig-$(PKG_VER).lib \
	..\base\appbase-$(PKG_VER).lib \
	..\paint-funcs\apppaint-funcs-$(PKG_VER).lib \
#	..\vectors\appvectors.lib \
#	..\text\apptext.lib \
#	..\paint\apppaint.lib \
#	..\pdb\apppdb.lib \
#	..\plug-in\appplug-in.lib \
#	..\file\appfile.lib \
#	..\xcf\xcf.lib \

OBJECTS = \
#	..\undo.obj \
	core-enums.obj \
	cpercep.obj \
	gimp.obj \
	gimp-edit.obj \
	gimp-gui.obj \
	gimp-units.obj \
	gimparea.obj \
	gimpbrush.obj \
	gimpbrushgenerated.obj \
	gimpbrushpipe.obj \
	gimpbuffer.obj \
	gimpchannel.obj \
	gimpchannel-combine.obj \
	gimpchannel-select.obj \
	gimpcoords.obj \
	gimpcontainer.obj \
	gimpcontainer-filter.obj \
	gimpcontext.obj \
	gimpdata.obj \
	gimpdatafactory.obj \
	gimp-documents.obj \
	gimpdocumentlist.obj \
	gimpdrawable.obj \
	gimpdrawable-blend.obj \
	gimpdrawable-bucket-fill.obj \
	gimpdrawable-combine.obj \
	gimpdrawable-desaturate.obj \
	gimpdrawable-equalize.obj \
	gimpdrawable-histogram.obj \
	gimpdrawable-invert.obj \
	gimpdrawable-offset.obj \
	gimpdrawable-preview.obj \
	gimpdrawable-stroke.obj \
	gimpdrawable-transform.obj \
	gimpenvirontable.obj \
	gimpgradient.obj \
	gimpgradient-load.obj \
	gimpgradient-save.obj \
	gimpgrid.obj \
	gimp-gradients.obj \
	gimpimage.obj \
	gimpimagemap.obj \
	gimpimage-colorhash.obj \
	gimpimage-colormap.obj \
	gimpimage-contiguous-region.obj \
	gimpimage-convert.obj \
	gimpimage-crop.obj \
	gimpimage-duplicate.obj \
	gimpimage-flip.obj \
	gimpimage-grid.obj \
	gimpimage-guides.obj \
	gimpimage-merge.obj \
	gimpimage-new.obj \
	gimpimage-pick-color.obj \
	gimpimage-preview.obj \
	gimpimage-qmask.obj \
	gimpimage-resize.obj \
	gimpimage-rotate.obj \
	gimpimage-snap.obj \
	gimpimage-scale.obj \
	gimpimage-undo.obj \
	gimpimage-undo-push.obj \
	gimpimagefile.obj \
	gimpitem.obj \
	gimpitem-linked.obj \
	gimpitem-preview.obj \
	gimpitemundo.obj \
	gimplayer.obj \
	gimplayer-floating-sel.obj \
	gimplayermask.obj \
	gimplist.obj \
	gimpprojection.obj \
	gimpprojection-construct.obj \
	gimpmarshal.obj \
	gimp-modules.obj \
	gimpobject.obj \
	gimppaintinfo.obj \
	gimppalette.obj \
	gimppalette-import.obj \
	gimp-parasites.obj \
	gimpparasitelist.obj \
	gimppattern.obj \
	gimppickable.obj \
	gimppreviewcache.obj \
	gimpscanconvert.obj \
	gimpselection.obj \
	gimpstrokeoptions.obj \
	gimptemplate.obj \
	gimptooloptions.obj \
	gimp-transform-utils.obj \
	gimp-templates.obj \
	gimptoolinfo.obj \
	gimpundo.obj \
	gimpundostack.obj \
	gimpunit.obj \
#	gimpunits.obj \
	gimpviewable.obj \
	gimp-utils.obj \

OTHER_FILES = \
	\
	..\floating_sel.obj \
	..\gimpparasite.obj \
	..\parasitelist.obj \
	..\drawable.obj \
	..\datafiles.obj \
	..\undo.obj \
	..\path.obj



INCLUDES = \
	-FImsvc_recommended_pragmas.h \
	-I$(PRJ_TOP) \
	-I$(PRJ_TOP)/app \
	$(GTK2_CFLAGS) \
	$(LIBART_CFLAGS) \

DEFINES = \
	-DGIMP_COMPILATION \
	-DG_LOG_DOMAIN=\"Gimp-Core\"

all : \
	$(PRJ_TOP)\config.h \
	gimpmarshal.h \
	gimpmarshal.c \
	$(PACKAGE).lib \
!IFDEF DLLGIMP
	$(PACKAGE)-$(PKG_VER).dll
!ENDIF

gimpmarshal.h : gimpmarshal.list
	echo #ifndef __GIMP_MARSHAL_H__ > xgen-gmh
	echo #define __GIMP_MARSHAL_H__ >> xgen-gmh
	$(GLIB)\gobject\glib-genmarshal --nostdinc --prefix=gimp_marshal gimpmarshal.list --header >> xgen-gmh
	echo #endif /* __GIMP_MARSHAL_H__ */ >> xgen-gmh
	copy xgen-gmh gimpmarshal.h

gimpmarshal.c : gimpmarshal.h gimpmarshal.list
	echo #include "glib.h" > xgen-gmc
	echo #include "glib-object.h" >> xgen-gmc
	echo #include "gimpmarshal.h" >> xgen-gmc
	$(GLIB)\gobject\glib-genmarshal --nostdinc --prefix=gimp_marshal gimpmarshal.list --body >> xgen-gmc
	copy xgen-gmc gimpmarshal.c

$(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 : $(OBJECTS) $(PACKAGE).def
	$(CC) $(CFLAGS) -LD -Fe$(PACKAGE)-$(PKG_VER).dll $(OBJECTS) $(PKG_LINK) user32.lib advapi32.lib wsock32.lib $(LDFLAGS) /def:$(PACKAGE).def

$(PACKAGE).exe : $(OBJECTS) $(PACKAGE).def $(PACKAGE).res
	$(CC) $(CFLAGS) -Fe$(PACKAGE).exe $(PACKAGE).res $(OBJECTS) $(PKG_LINK) \
	user32.lib advapi32.lib shell32.lib wsock32.lib winspool.lib $(LDFLAGS) /def:$(PACKAGE).def

gimpcore-$(PKG_VER).dll : $(DLLOBJS) gimpcore.def
	$(CC) $(CFLAGS) -LD -Fegimpcore-$(PKG_VER).dll $(DLLOBJS) $(PKG_LINK) user32.lib advapi32.lib wsock32.lib $(LDFLAGS) /def:gimpcore.def

.c.obj :
	$(CC) $(CFLAGS) -GD -c $(PKG_CFLAGS) $<

clean ::
	del gimpmarshal.c
	del gimpmarshal.h