summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: a01ed632ef4efe62787b7ca895682c47efcd4dd2 (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

lib_LTLIBRARIES = libchrysacore4.la libchrysacoreui.la # libchrysacore.la

bin_PROGRAMS = framework # chrysalide chrysalide-hub rost


AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/intl



############################################################
# Bibliothèques dynamiques
############################################################

#--- libchrysacore

if TRACK_GOBJECT_LEAKS

GOBJECT_LEAKS_SOURCES = gleak.h gleak.c

endif

libchrysacore_la_SOURCES =

if BUILD_GTK_SUPPORT

GTKEXT_LIBADD =								\
	gtkext/libgtkext.la

GTKEXT_SUBDIR = 							\
	gtkext

GUI_LIBADD =								\
	gui/libgui.la

GUI_SUBDIR =								\
	gui

endif


libchrysacore_la_LIBADD =					\
	analysis/libanalysis.la					\
	arch/libarch.la							\
	common/libcommon.la						\
	core/libcore.la							\
	debug/libdebug.la						\
	format/libformat.la						\
	glibext/libglibext.la					\
	$(GTKEXT_LIBADD)						\
	$(GUI_LIBADD)							\
	mangling/libmangling.la					\
	plugins/libplugins.la


# -ldl: dladdr(), dlerror()
# -lm : pow()
libchrysacore_la_LDFLAGS =					\
	-avoid-version -ldl -lm					\
	$(TOOLKIT_LIBS) $(LIBXML_LIBS)			\
	$(LIBSQLITE_LIBS) $(LIBARCHIVE_LIBS)	\
	$(LIBSSL_LIBS)  $(LIBHS_LIBS)

if BUILD_CURL_SUPPORT

libchrysacore_la_LDFLAGS += $(LIBCURL_LIBS)

endif

if BUILD_MAGIC_SUPPORT

libchrysacore_la_LDFLAGS += $(LIBMAGIC_LIBS)

endif


libchrysacore4_la_SOURCES =

libchrysacore4_la_LIBADD =					\
	analysis/libanalysis4.la				\
	arch/libarch4.la						\
	common/libcommon4.la					\
	core/libcore4.la						\
	plugins/libplugins.la

libchrysacore4_la_LDFLAGS =					\
	$(TOOLKIT_LIBS) $(LIBSSL_LIBS)


#--- libchrysacoreui

EXTRA_libchrysacoreui_la_DEPENDENCIES = libchrysacore4.la

libchrysacoreui_la_SOURCES =

libchrysacoreui_la_LIBADD =					\
	glibext/libglibextui.la					\
	gtkext/libgtkext4.la					\
	gui/libgui4.la

libchrysacoreui_la_LDFLAGS =				\
	$(LIBGTK4_CFLAGS) -L.libs -lchrysacore4




############################################################
# Programme principal
############################################################

EXTRA_chrysalide_DEPENDENCIES = libchrysacore.la

chrysalide_SOURCES = 					\
	$(GOBJECT_LEAKS_SOURCES)			\
	main.c


chrysalide_CFLAGS = $(TOOLKIT_CFLAGS) $(LIBXML_CFLAGS) $(LIBPYTHON_CFLAGS)

chrysalide_LDFLAGS = $(TOOLKIT_LIBS) -L/usr/X11R6/lib -ldl -lm $(LIBXML_LIBS) $(LIBPYTHON_LIBS) $(LIBARCHIVE_LIBS) $(LIBSQLITE_LIBS) \
	-L.libs -lchrysacore

chrysalide_LDADD = $(LIBINTL)



EXTRA_framework_DEPENDENCIES = libchrysacore4.la libchrysacoreui.la

framework_SOURCES = 						\
	framework.h framework.c

framework_CFLAGS = $(TOOLKIT4_CFLAGS)

framework_LDFLAGS = $(TOOLKIT4_LIBS) \
	-L.libs -lchrysacore4 -lchrysacoreui

framework_LDADD =



############################################################
# Gestionnaire de serveurs distants
############################################################

EXTRA_chrysalide_hub_DEPENDENCIES = libchrysacore.la

chrysalide_hub_SOURCES =				\
	$(GOBJECT_LEAKS_SOURCES)			\
	hub.c

chrysalide_hub_CFLAGS = $(TOOLKIT_CFLAGS) $(LIBXML_CFLAGS)

chrysalide_hub_LDFLAGS = $(TOOLKIT_LIBS) $(LIBXML_LIBS) -L.libs -lchrysacore



############################################################
# Détecteur de motifs
############################################################

EXTRA_rost_DEPENDENCIES = libchrysacore.la

rost_SOURCES =							\
	$(GOBJECT_LEAKS_SOURCES)			\
	rost.c

rost_CFLAGS = $(TOOLKIT_CFLAGS) $(LIBXML_CFLAGS)

rost_LDFLAGS = $(LIBGOBJ_LIBS) -L.libs -lchrysacore



############################################################
# Le reste du monde
############################################################

# glibext doit être traité en premier, à cause des marshals GLib

#SUBDIRS = core glibext $(GTKEXT_SUBDIR) analysis arch format common debug $(GUI_SUBDIR) mangling plugins schemas

SUBDIRS = analysis arch common core glibext gtkext gui plugins