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

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

PKG_LINK = \
11 12 13
	$(GLIB_LIBS) $(GTK_PIXBUF_LIBS) $(INTL_LIBS) $(LIBART_LIBS) \
	$(PANGOWIN32_LIBS) $(GDK_PIXBUF_LIBS) \
#	$(PANGOFT2_LIBS) \
14 15 16
	\
	..\..\regexrepl\regexrepl.lib \
	\
17
	..\..\libgimpbase\gimpbase-$(PKG_VER).lib \
Hans Breuer's avatar
Hans Breuer committed
18
	..\..\libgimpcolor\gimpcolor-$(PKG_VER).lib \
Hans Breuer's avatar
Hans Breuer committed
19
	..\..\libgimpmath\gimpmath-$(PKG_VER).lib \
20 21 22 23 24
	..\..\libgimpmodule\gimpmodule-$(PKG_VER).lib \
	\
	..\config\appconfig-$(PKG_VER).lib \
	..\base\appbase-$(PKG_VER).lib \
	..\paint-funcs\apppaint-funcs-$(PKG_VER).lib \
25 26 27 28 29 30 31
#	..\vectors\appvectors.lib \
#	..\text\apptext.lib \
#	..\paint\apppaint.lib \
#	..\pdb\apppdb.lib \
#	..\plug-in\appplug-in.lib \
#	..\file\appfile.lib \
#	..\xcf\xcf.lib \
32 33

OBJECTS = \
Hans Breuer's avatar
Hans Breuer committed
34 35
#	..\undo.obj \
	core-enums.obj \
36
	cpercep.obj \
Hans Breuer's avatar
Hans Breuer committed
37
	gimp.obj \
38
	gimp-edit.obj \
39
	gimp-gui.obj \
40
	gimp-units.obj \
41
	gimparea.obj \
42 43 44
	gimpbrush.obj \
	gimpbrushgenerated.obj \
	gimpbrushpipe.obj \
Hans Breuer's avatar
Hans Breuer committed
45
	gimpbuffer.obj \
46
	gimpchannel.obj \
47 48
	gimpchannel-combine.obj \
	gimpchannel-select.obj \
49
	gimpcoords.obj \
50
	gimpcontainer.obj \
51
	gimpcontainer-filter.obj \
52 53 54
	gimpcontext.obj \
	gimpdata.obj \
	gimpdatafactory.obj \
Hans Breuer's avatar
Hans Breuer committed
55 56
	gimp-documents.obj \
	gimpdocumentlist.obj \
57
	gimpdrawable.obj \
58 59
	gimpdrawable-blend.obj \
	gimpdrawable-bucket-fill.obj \
60
	gimpdrawable-combine.obj \
61 62 63 64 65 66
	gimpdrawable-desaturate.obj \
	gimpdrawable-equalize.obj \
	gimpdrawable-histogram.obj \
	gimpdrawable-invert.obj \
	gimpdrawable-offset.obj \
	gimpdrawable-preview.obj \
67
	gimpdrawable-stroke.obj \
68
	gimpdrawable-transform.obj \
Hans Breuer's avatar
Hans Breuer committed
69
	gimpenvirontable.obj \
70
	gimpgradient.obj \
71 72
	gimpgradient-load.obj \
	gimpgradient-save.obj \
73
	gimpgrid.obj \
Hans Breuer's avatar
Hans Breuer committed
74
	gimp-gradients.obj \
75
	gimpimage.obj \
Hans Breuer's avatar
Hans Breuer committed
76
	gimpimagemap.obj \
77
	gimpimage-colorhash.obj \
Hans Breuer's avatar
Hans Breuer committed
78
	gimpimage-colormap.obj \
79
	gimpimage-contiguous-region.obj \
Hans Breuer's avatar
Hans Breuer committed
80 81
	gimpimage-convert.obj \
	gimpimage-crop.obj \
82
	gimpimage-duplicate.obj \
Hans Breuer's avatar
Hans Breuer committed
83
	gimpimage-flip.obj \
84
	gimpimage-grid.obj \
85 86
	gimpimage-guides.obj \
	gimpimage-merge.obj \
Hans Breuer's avatar
Hans Breuer committed
87
	gimpimage-new.obj \
88
	gimpimage-pick-color.obj \
Hans Breuer's avatar
Hans Breuer committed
89
	gimpimage-preview.obj \
90 91
	gimpimage-qmask.obj \
	gimpimage-resize.obj \
Hans Breuer's avatar
Hans Breuer committed
92
	gimpimage-rotate.obj \
93
	gimpimage-snap.obj \
94
	gimpimage-scale.obj \
95
	gimpimage-undo.obj \
96
	gimpimage-undo-push.obj \
Hans Breuer's avatar
Hans Breuer committed
97
	gimpimagefile.obj \
Hans Breuer's avatar
Hans Breuer committed
98
	gimpitem.obj \
Hans Breuer's avatar
Hans Breuer committed
99
	gimpitem-linked.obj \
100
	gimpitem-preview.obj \
Hans Breuer's avatar
Hans Breuer committed
101
	gimpitemundo.obj \
102
	gimplayer.obj \
Hans Breuer's avatar
Hans Breuer committed
103
	gimplayer-floating-sel.obj \
104 105
	gimplayermask.obj \
	gimplist.obj \
106 107
	gimpprojection.obj \
	gimpprojection-construct.obj \
108
	gimpmarshal.obj \
109
	gimp-modules.obj \
110
	gimpobject.obj \
Hans Breuer's avatar
Hans Breuer committed
111
	gimppaintinfo.obj \
112 113
	gimppalette.obj \
	gimppalette-import.obj \
Hans Breuer's avatar
Hans Breuer committed
114
	gimp-parasites.obj \
Hans Breuer's avatar
Hans Breuer committed
115 116
	gimpparasitelist.obj \
	gimppattern.obj \
117
	gimppickable.obj \
118
	gimppreviewcache.obj \
Hans Breuer's avatar
Hans Breuer committed
119
	gimpscanconvert.obj \
120 121
	gimpselection.obj \
	gimpstrokeoptions.obj \
Hans Breuer's avatar
Hans Breuer committed
122
	gimptemplate.obj \
123
	gimptooloptions.obj \
124
	gimp-transform-utils.obj \
Hans Breuer's avatar
Hans Breuer committed
125
	gimp-templates.obj \
126 127 128
	gimptoolinfo.obj \
	gimpundo.obj \
	gimpundostack.obj \
Hans Breuer's avatar
Hans Breuer committed
129
	gimpunit.obj \
130
#	gimpunits.obj \
131
	gimpviewable.obj \
Hans Breuer's avatar
Hans Breuer committed
132
	gimp-utils.obj \
133 134 135 136 137 138 139 140 141 142 143 144 145 146

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
147
	-FImsvc_recommended_pragmas.h \
148 149
	-I$(PRJ_TOP) \
	-I$(PRJ_TOP)/app \
150
	$(GTK2_CFLAGS) \
Hans Breuer's avatar
Hans Breuer committed
151 152 153 154 155
	$(LIBART_CFLAGS) \

DEFINES = \
	-DGIMP_COMPILATION \
	-DG_LOG_DOMAIN=\"Gimp-Core\"
156 157 158

all : \
	$(PRJ_TOP)\config.h \
Hans Breuer's avatar
Hans Breuer committed
159 160
	gimpmarshal.h \
	gimpmarshal.c \
161
	$(PACKAGE).lib \
162
!IFDEF DLLGIMP
163
	$(PACKAGE)-$(PKG_VER).dll
164
!ENDIF
165

Hans Breuer's avatar
Hans Breuer committed
166 167 168
gimpmarshal.h : gimpmarshal.list
	echo #ifndef __GIMP_MARSHAL_H__ > xgen-gmh
	echo #define __GIMP_MARSHAL_H__ >> xgen-gmh
169
	$(GLIB)\gobject\glib-genmarshal --nostdinc --prefix=gimp_marshal gimpmarshal.list --header >> xgen-gmh
Hans Breuer's avatar
Hans Breuer committed
170 171 172 173 174 175 176
	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
177
	$(GLIB)\gobject\glib-genmarshal --nostdinc --prefix=gimp_marshal gimpmarshal.list --body >> xgen-gmc
Hans Breuer's avatar
Hans Breuer committed
178
	copy xgen-gmc gimpmarshal.c
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194

$(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
Hans Breuer committed
195 196 197
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

198 199
.c.obj :
	$(CC) $(CFLAGS) -GD -c $(PKG_CFLAGS) $<
Hans Breuer's avatar
Hans Breuer committed
200 201 202 203

clean ::
	del gimpmarshal.c
	del gimpmarshal.h