makefile.msc 4.1 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
	$(GLIB_LIBS) $(GTK2_LIBS) $(INTL_LIBS) \
Hans Breuer's avatar
Hans Breuer committed
10
	$(LIBART_LIBS) \
11
12
	..\base\appbase-$(PKG_VER).lib \
	..\paint-funcs\apppaint-funcs-$(PKG_VER).lib \
Hans Breuer's avatar
updated    
Hans Breuer committed
13
#	..\vectors\appvectors-$(PKG_VER).lib \
14
	..\xcf\xcf.lib \
15
	..\..\libgimpbase\gimpbase-$(PKG_VER).lib \
Hans Breuer's avatar
Hans Breuer committed
16
	..\..\libgimpcolor\gimpcolor-$(PKG_VER).lib \
Hans Breuer's avatar
Hans Breuer committed
17
	..\..\libgimpmath\gimpmath-$(PKG_VER).lib \
Hans Breuer's avatar
Hans Breuer committed
18
	..\..\libgimpwidgets\gimpwidgets-$(PKG_VER).lib
19
20

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

DEFINES = \
	-DGIMP_COMPILATION \
	-DG_LOG_DOMAIN=\"Gimp-Core\"
118
119
120

all : \
	$(PRJ_TOP)\config.h \
Hans Breuer's avatar
Hans Breuer committed
121
122
	gimpmarshal.h \
	gimpmarshal.c \
123
	$(PACKAGE).lib \
124
!IFDEF DLLGIMP
125
	$(PACKAGE)-$(PKG_VER).dll
126
!ENDIF
127

Hans Breuer's avatar
Hans Breuer committed
128
129
130
gimpmarshal.h : gimpmarshal.list
	echo #ifndef __GIMP_MARSHAL_H__ > xgen-gmh
	echo #define __GIMP_MARSHAL_H__ >> xgen-gmh
131
	$(GLIB)\gobject\glib-genmarshal --nostdinc --prefix=gimp_marshal gimpmarshal.list --header >> xgen-gmh
Hans Breuer's avatar
Hans Breuer committed
132
133
134
135
136
137
138
	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
139
	$(GLIB)\gobject\glib-genmarshal --nostdinc --prefix=gimp_marshal gimpmarshal.list --body >> xgen-gmc
Hans Breuer's avatar
Hans Breuer committed
140
	copy xgen-gmc gimpmarshal.c
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156

$(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
157
158
159
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

160
161
.c.obj :
	$(CC) $(CFLAGS) -GD -c $(PKG_CFLAGS) $<
Hans Breuer's avatar
Hans Breuer committed
162
163
164
165

clean ::
	del gimpmarshal.c
	del gimpmarshal.h