summaryrefslogtreecommitdiff
path: root/objects/makefile.msc
blob: 286d846667f8fe48f4b40cf7e5e455bafc70b3ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
!IFNDEF PACKAGE

PLUGINS = aadl chronogram custom er flowchart fs grafcet \
	Istar Jackson Kaos misc network sadt standard uml \
	Database Sozi custom_lines

#outdated:	labels

# now shapes only: sybase 
# specware eml 

# The main target
all : sub-all

sub-all: 
	for %d in ($(PLUGINS)) do @nmake -nologo -f makefile.msc sub-one THIS=%d

sub-one:
	@cd $(THIS)
	@nmake -nologo -f ..\makefile.msc $(THIS).dll PACKAGE=$(THIS) OBJ_$(THIS)=1
	@cd ..

clean:
	for %d in ($(PLUGINS)) do @nmake -nologo -f makefile.msc sub-clean THIS=%d

sub-clean:
	@cd $(THIS)
	@nmake -nologo -f ..\makefile.msc PACKAGE=$(THIS) clean
	@cd ..

!ELSE

TOP = ..\..\..
PRJ_TOP = ..\..
PKG_DEF = ..\objects.def
!INCLUDE $(PRJ_TOP)\dia-make.msc

INCLUDES = \
	-FImsvc_recommended_pragmas.h \
	-I. -I$(PRJ_TOP) \
	$(GLIB_CFLAGS) $(GTK2_CFLAGS) $(INTL_CFLAGS) \
	$(LIBXML2_CFLAGS) -I$(PRJ_TOP)\lib \

DEFINES = \
	-DHAVE_CONFIG_H \
	-DG_DISABLE_DEPRECATED \
	-DGTK_DISABLE_DEPRECATED \

PKG_LINK = $(GLIB_LIBS) $(INTL_LIBS) \
	$(PRJ_TOP)\lib\libdia.lib \
	$(CAIRO_LIBS)

#
# Object definitions for the various plugins
#
!IFDEF OBJ_aadl
OBJECTS = \
	aadl.obj \
	aadlbox.obj \
	aadlbus.obj \
	aadldata.obj \
	aadldevice.obj \
	aadlmemory.obj \
	aadlpackage.obj \
	aadlport.obj \
	aadlprocess.obj \
	aadlprocessor.obj \
	aadlsubprogram.obj \
	aadlsystem.obj \
	aadltext.obj \
	aadlthread.obj \
	aadlthreadgroup.obj \
	edit_port_declaration.obj

PKG_LINK = $(PKG_LINK) $(GTK2_LIBS)
!ENDIF

!IFDEF OBJ_bondgraph
OBJECTS = \
	bondgraph.obj \
!ENDIF

!IFDEF OBJ_chronogram
OBJECTS = \
	chronogram.obj \
	chronoline.obj \
	chronoline_event.obj \
	chronoref.obj \
!ENDIF

!IFDEF OBJ_custom
OBJECTS = \
	custom.obj \
	custom_object.obj \
	custom_util.obj \
	shape_info.obj \
	shape_typeinfo.obj
PKG_LINK = $(PKG_LINK) $(LIBXML2_LIBS) 
!ENDIF

!IFDEF OBJ_custom_lines
OBJECTS = \
	custom_lines.obj \
	custom_linetypes.obj \
	line_info.obj
PKG_LINK = $(PKG_LINK) $(LIBXML2_LIBS) 
!ENDIF

!IFDEF OBJ_Database
OBJECTS = \
	compound.obj \
	database.obj \
	reference.obj \
	table.obj
PKG_LINK = $(PKG_LINK) 
!ENDIF

!IFDEF OBJ_Sozi
OBJECTS = \
	sozi.obj \
	sozi-frame.obj \
	sozi-media.obj \
	sozi-object.obj
PKG_LINK = $(PKG_LINK) $(LIBXML2_LIBS) \
	$(GTK2_LIBS)
!ENDIF

!IFDEF OBJ_eml
OBJECTS = \
	dbox.obj \
	eml.obj \
	instantiation.obj \
	interaction.obj \
	interaction-ortho.obj \
	listfun.obj \
	nlist.obj \
	process.obj \
	process_dialog.obj
!ENDIF

!IFDEF OBJ_er
OBJECTS = \
	attribute.obj \
	entity.obj \
	er.obj \
	participation.obj \
	relationship.obj
!ENDIF

!IFDEF OBJ_flowchart
OBJECTS = \
	box.obj \
	diamond.obj \
	ellipse.obj \
	flowchart.obj \
	parallelogram.obj
!ENDIF

!IFDEF OBJ_fs
OBJECTS = \
	flow.obj \
	flow-ortho.obj \
	fs.obj \
	function.obj
!ENDIF

!IFDEF OBJ_grafcet
OBJECTS = \
	action.obj \
	action_text_draw.obj \
	boolequation.obj \
	condition.obj \
	grafcet.obj \
	step.obj \
	transition.obj \
	vector.obj \
	vergent.obj
!ENDIF

!IFDEF OBJ_Istar
OBJECTS = \
	actor.obj \
	goal.obj \
	istar.obj \
	link.obj \
	other.obj
!ENDIF

!IFDEF OBJ_Jackson
OBJECTS = \
	domain.obj \
	jackson.obj \
	phenomenon.obj \
	requirement.obj
!ENDIF

!IFDEF OBJ_Kaos
OBJECTS = \
	goal.obj \
	kaos.obj \
	metaandorrel.obj \
	metabinrel.obj \
	other.obj
!ENDIF

!IFDEF OBJ_labels
OBJECTS = \
	labels.obj \
	labelline.obj \
	labeltextobj.obj
!ENDIF

!IFDEF OBJ_misc
OBJECTS = \
	analog_clock.obj \
	grid_object.obj \
	measure.obj \
	n_gon.obj \
	tree.obj \
	diagram_as_object.obj \
	libmisc.obj
!ENDIF

!IFDEF OBJ_network
OBJECTS = \
	basestation.obj \
	bus.obj \
	network.obj \
	radiocell.obj \
	wanlink.obj
!ENDIF

!IFDEF OBJ_sadt
OBJECTS = \
	annotation.obj \
	arrow.obj \
	box.obj \
	sadt.obj
!ENDIF

!IFDEF OBJ_standard
OBJECTS = \
	arc.obj \
	bezier.obj \
	beziergon.obj \
	box.obj \
	ellipse.obj \
	image.obj \
	line.obj \
	outline.obj \
	polygon.obj \
	polyline.obj \
	standard.obj \
	textobj.obj \
	zigzagline.obj

ICON_PNG_PAIRS= \
	arc_icon pixmaps\arc.png \
	beziergon_icon pixmaps\beziergon.png \
	bezierline_icon pixmaps\bezierline.png \
	box_icon pixmaps\box.png \
	ellipse_icon pixmaps\ellipse.png \
	image_icon pixmaps\image.png \
	outline_icon pixmaps\outline.png \
	line_icon pixmaps\line.png \
	polygon_icon pixmaps\polygon.png \
	polyline_icon pixmaps\polyline.png \
	text_icon pixmaps\text.png \
	zigzagline_icon pixmaps\zigzagline.png

ICON_PNGS= \
	pixmaps\arc.png \
	pixmaps\beziergon.png \
	pixmaps\bezierline.png \
	pixmaps\box.png \
	pixmaps\ellipse.png \
	pixmaps\image.png \
	pixmaps\line.png \
	pixmaps\outline.png \
	pixmaps\polygon.png \
	pixmaps\polyline.png \
	pixmaps\text.png \
	pixmaps\zigzagline.png 

$(OBJECTS) : tool-icons.h

tool-icons.h: $(ICON_PNGS)
	gdk-pixbuf-csource --raw --build-list $(ICON_PNG_PAIRS) > tool-icons.h

!ENDIF

!IFDEF OBJ_specware
OBJECTS = \
        specware.obj \
        arch_component.obj \
        arch_connector.obj \
        arch_state.obj \
        mapping.obj
# this plug-in imports diagram_load_and_display () from dia.exe 
PKG_LINK = $(PKG_LINK) ..\..\app\dia-app.lib
!ENDIF

!IFDEF OBJ_sybase
OBJECTS = \
	dataserver.obj \
	repserver.obj \
	ltm.obj \
	client.obj \
	stableq.obj \
	rsm.obj \
	sybase.obj
!ENDIF

!IFDEF OBJ_uml
OBJECTS = \
	activity.obj \
	actor.obj \
	association.obj \
	branch.obj \
	class.obj \
	class_dialog.obj \
	class_attributes_dialog.obj \
	class_operations_dialog.obj \
	class_templates_dialog.obj \
	classicon.obj \
	component.obj \
	component_feature.obj \
	constraint.obj \
	dependency.obj \
	fork.obj \
	generalization.obj \
	implements.obj \
	large_package.obj \
	lifeline.obj \
	message.obj \
	node.obj \
	note.obj \
	object.obj \
	realizes.obj \
	small_package.obj \
	state.obj \
	state_term.obj \
	stereotype.obj \
	transition.obj \
	uml.obj \
	umlattribute.obj \
	umlformalparameter.obj \
	umloperation.obj \
	umlparameter.obj \
	usecase.obj \

PKG_LINK = $(PKG_LINK) $(GTK2_LIBS)
!ENDIF

$(PACKAGE).lib : $(OBJECTS)
	lib /out:$(PACKAGE).lib $(OBJECTS)

$(PACKAGE).dll : $(OBJECTS) $(PKG_DEF)
	$(CC) $(CFLAGS) -LD -Fe$(PACKAGE).dll $(OBJECTS) \
	$(LDFLAGS) $(PKG_LINK) user32.lib advapi32.lib wsock32.lib /def:$(PKG_DEF)

$(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32
	copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h

!ENDIF