makefile.msc 4.38 KB
Newer Older
1 2 3 4 5
# autogenerated from automake.am with automake.py
TOP = ..\..\..
PRJ_TOP = ..\..
PACKAGE = appcore
PKG_VER = 1.3
6
!INCLUDE $(TOP)\glib\build\win32\make.msc
7 8

PKG_LINK = \
9 10 11 12 13
	$(GLIB_LIBS) $(GTK2)\gdk-pixbuf\gdk_pixbuf-$(GTK2_VER).lib $(INTL_LIBS) \
	$(LIBART_LIBS) $(PANGOFT2_LIBS) \
	\
	..\..\regexrepl\regexrepl.lib \
	\
14
	..\..\libgimpbase\gimpbase-$(PKG_VER).lib \
Hans Breuer's avatar
Hans Breuer committed
15
	..\..\libgimpcolor\gimpcolor-$(PKG_VER).lib \
Hans Breuer's avatar
Hans Breuer committed
16
	..\..\libgimpmath\gimpmath-$(PKG_VER).lib \
17 18 19 20 21 22 23 24 25 26 27 28
	..\..\libgimpmodule\gimpmodule-$(PKG_VER).lib \
	..\..\libgimpwidgets\gimpwidgets-$(PKG_VER).lib \
	\
	..\config\appconfig-$(PKG_VER).lib \
	..\base\appbase-$(PKG_VER).lib \
	..\paint-funcs\apppaint-funcs-$(PKG_VER).lib \
	..\vectors\appvectors.lib \
	..\paint\apppaint.lib \
	..\pdb\apppdb.lib \
	..\plug-in\appplug-in.lib \
	..\file\appfile.lib \
	..\xcf\xcf.lib \
29 30

OBJECTS = \
Hans Breuer's avatar
Hans Breuer committed
31 32
#	..\undo.obj \
	core-enums.obj \
33
	cpercep.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
34
	gimp.obj \
35 36 37
	gimpbrush.obj \
	gimpbrushgenerated.obj \
	gimpbrushpipe.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
38
	gimpbuffer.obj \
39 40 41 42 43 44
	gimpchannel.obj \
	gimpcontainer.obj \
	gimpcontext.obj \
	gimpdata.obj \
	gimpdatafactory.obj \
	gimpdatalist.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
45 46
	gimp-documents.obj \
	gimpdocumentlist.obj \
47
	gimpdrawable.obj \
48 49
	gimpdrawable-blend.obj \
	gimpdrawable-bucket-fill.obj \
50 51 52 53 54 55
	gimpdrawable-desaturate.obj \
	gimpdrawable-equalize.obj \
	gimpdrawable-histogram.obj \
	gimpdrawable-invert.obj \
	gimpdrawable-offset.obj \
	gimpdrawable-preview.obj \
56 57
	gimpdrawable-transform.obj \
	gimpdrawable-transform-utils.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
58
	gimpedit.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
59
	gimpenvirontable.obj \
60
	gimpgradient.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
61
	gimp-gradients.obj \
62
	gimpimage.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
63
	gimpimagemap.obj \
64
	gimpimage-colorhash.obj \
65
	gimpimage-contiguous-region.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
66 67
	gimpimage-convert.obj \
	gimpimage-crop.obj \
68
	gimpimage-duplicate.obj \
69
	gimpimage-guides.obj \
70
	gimpimage-mask.obj \
71
	gimpimage-mask-select.obj \
72
	gimpimage-merge.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
73
	gimpimage-new.obj \
74 75 76 77 78
	gimpimage-pick-color.obj \
	gimpimage-projection.obj \
	gimpimage-qmask.obj \
	gimpimage-resize.obj \
	gimpimage-scale.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
79
	gimpimage-text.obj \
80
	gimpimage-undo.obj \
Hans Breuer's avatar
Hans Breuer committed
81
	gimpimagefile.obj \
Hans Breuer's avatar
Hans Breuer committed
82
	gimpitem.obj \
83
	gimplayer.obj \
Hans Breuer's avatar
Hans Breuer committed
84
	gimplayer-floating-sel.obj \
85 86 87
	gimplayermask.obj \
	gimplist.obj \
	gimpmarshal.obj \
88
	gimpmodules.obj \
89
	gimpobject.obj \
Hans Breuer's avatar
Hans Breuer committed
90
	gimppaintinfo.obj \
91 92
	gimppalette.obj \
	gimppalette-import.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
93
	gimp-parasites.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
94 95
	gimpparasitelist.obj \
	gimppattern.obj \
96
	gimppreviewcache.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
97
	gimpscanconvert.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
98
	gimptext.obj \
99 100 101
	gimptoolinfo.obj \
	gimpundo.obj \
	gimpundostack.obj \
Hans Breuer's avatar
updated  
Hans Breuer committed
102
	gimpunit.obj \
103
	gimpunits.obj \
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
	gimpviewable.obj \

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



INCLUDES = \
Hans Breuer's avatar
Hans Breuer committed
119
	-FImsvc_recommended_pragmas.h \
120 121
	-I$(PRJ_TOP) \
	-I$(PRJ_TOP)/app \
Hans Breuer's avatar
updated  
Hans Breuer committed
122
	$(GTK2_CFLAGS) $(FREETYPE2_CFLAGS) \
Hans Breuer's avatar
Hans Breuer committed
123 124 125 126 127
	$(LIBART_CFLAGS) \

DEFINES = \
	-DGIMP_COMPILATION \
	-DG_LOG_DOMAIN=\"Gimp-Core\"
128 129 130

all : \
	$(PRJ_TOP)\config.h \
Hans Breuer's avatar
Hans Breuer committed
131 132
	gimpmarshal.h \
	gimpmarshal.c \
133
	$(PACKAGE).lib \
134
!IFDEF DLLGIMP
135
	$(PACKAGE)-$(PKG_VER).dll
136
!ENDIF
137

Hans Breuer's avatar
Hans Breuer committed
138 139 140
gimpmarshal.h : gimpmarshal.list
	echo #ifndef __GIMP_MARSHAL_H__ > xgen-gmh
	echo #define __GIMP_MARSHAL_H__ >> xgen-gmh
141
	$(GLIB)\gobject\glib-genmarshal --nostdinc --prefix=gimp_marshal gimpmarshal.list --header >> xgen-gmh
Hans Breuer's avatar
Hans Breuer committed
142 143 144 145 146 147 148
	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
149
	$(GLIB)\gobject\glib-genmarshal --nostdinc --prefix=gimp_marshal gimpmarshal.list --body >> xgen-gmc
Hans Breuer's avatar
Hans Breuer committed
150
	copy xgen-gmc gimpmarshal.c
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166

$(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

Hans Breuer's avatar
updated  
Hans Breuer committed
167 168 169
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

170 171
.c.obj :
	$(CC) $(CFLAGS) -GD -c $(PKG_CFLAGS) $<
Hans Breuer's avatar
Hans Breuer committed
172 173 174 175

clean ::
	del gimpmarshal.c
	del gimpmarshal.h