File: makefile.mingw

package info (click to toggle)
dia 0.97.3%2Bgit20160930-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 52,952 kB
  • ctags: 17,146
  • sloc: ansic: 155,065; xml: 16,326; python: 6,641; cpp: 4,935; makefile: 3,826; sh: 540; perl: 137; sed: 19
file content (194 lines) | stat: -rw-r--r-- 3,086 bytes parent folder | download | duplicates (3)
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
# Makefile for mingw (with gnu make, but without bash), use :
# make -f makefile.mingw

# OPTIMIZE = -g

ifndef PACKAGE

PLUGINS = chronogram custom er flowchart fs grafcet \
		network sadt standard uml 

# The main target
all : sub-all

sub-all : 
	for %%d in ($(PLUGINS)) do make --no-print-directory -f makefile.mingw sub-one THIS=%%d

sub-one:
	$(MAKE) -C $(THIS) -f ../makefile.mingw $(THIS).dll PACKAGE=$(THIS) OBJ_$(THIS)=1

else

TOP = ../../..
include $(TOP)/glib/build/win32/make.mingw
PRJ_TOP = ../..
PKG_DEF = ../objects.def

PKG_CFLAGS = $(GLIB_CFLAGS) $(GTK2_CFLAGS) $(INTL_CFLAGS) \
	$(LIBXML2_CFLAGS) -I$(PRJ_TOP)/lib \

PKG_LINK = $(GTK2_LIBS) $(GLIB_LIBS) $(INTL_LIBS) \
	$(LIBXML2_LIBS) \
	-L $(PRJ_TOP)/lib -llibdia

#
# Object definitions for the various plugins
#

ifdef OBJ_chronogram
OBJECTS = \
	chronogram.o \
	chronoline.o \
	chronoline_event.o \
	chronoref.o

endif

ifdef OBJ_custom
OBJECTS = \
	custom.o \
	custom_object.o \
	custom_util.o \
	shape_info.o
endif

ifdef OBJ_eml
OBJECTS = \
        dbox.o \
        eml.o \
        instantiation.o \
        interaction.o \
        interaction-ortho.o \
        listfun.o \
        nlist.o \
        process.o \
        process_dialog.o
endif

ifdef OBJ_er
OBJECTS = \
	attribute.o \
	entity.o \
	er.o \
	participation.o \
	relationship.o
endif

ifdef OBJ_flowchart
OBJECTS = \
	box.o \
	diamond.o \
	ellipse.o \
	flowchart.o \
	parallelogram.o
endif

ifdef OBJ_fs
OBJECTS = \
	flow.o \
	flow-ortho.o \
	fs.o \
	function.o
endif

ifdef OBJ_grafcet
OBJECTS = \
	action.o \
	action_text_draw.o \
	boolequation.o \
	condition.o \
	grafcet.o \
	step.o \
	transition.o \
	vector.o \
	vergent.o
endif

ifdef OBJ_labels
OBJECTS = \
	labels.o \
	labelline.o \
	labeltextobj.o
endif

ifdef OBJ_network
OBJECTS = \
	bus.o \
	network.o \
	wanlink.o
endif

ifdef OBJ_sadt
OBJECTS = \
	annotation.o \
	arrow.o \
	box.o \
	sadt.o
endif

ifdef OBJ_standard
OBJECTS = \
	arc.o \
	bezier.o \
	beziergon.o \
	box.o \
	ellipse.o \
	image.o \
	line.o \
	polygon.o
	polyline.o \
	standard.o \
	textobj.o \
	zigzagline.o
endif

ifdef OBJ_sybase
OBJECTS = \
	sybase.o
endif

ifdef OBJ_uml
OBJECTS = \
	activity.o \
	actor.o \
	association.o \
	branch.o \
	class.o \
	class_dialog.o \
	classicon.o \
	component.o \
	constraint.o \
	dependency.o \
	fork.o \
	generalization.o \
	implements.o \
	large_package.o \
	lifeline.o \
	message.o \
	node.o \
	note.o \
	object.o \
	realizes.o \
	small_package.o \
	state.o \
	state_term.o \
	stereotype.o \
	uml.o \
	usecase.o
endif

DEPCFLAGS = -I. -I$(PRJ_TOP) -DHAVE_CONFIG_H $(PKG_CFLAGS)

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

all : $(PACKAGE).dll

$(PACKAGE).dll : $(OBJECTS)
	dllwrap --mno-cygwin --dllname $(PACKAGE).dll --implib $(PACKAGE).lib --output-exp $(PACKAGE).exp --def ../objects.def $(OBJECTS) $(PKG_LINK) -luser32 -lwsock32 -ladvapi32

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

endif