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

lib_LTLIBRARIES = libchrysacore.la libchrysaglibext.la libchrysadisass.la libchrysagtkext.la libchrysagui.la libchrysaplugin.la

bin_PROGRAMS = chrysalide

.NOTPARALLEL: $(lib_LTLIBRARIES) $(bin_PROGRAMS)



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

#--- libchrysadisas

libchrysacore_la_SOURCES =

libchrysacore_la_LDFLAGS = $(LIBGTK_LIBS) $(LIBXML_LIBS)	\
	-Lcommon/.libs -lcommon

libchrysacore_la_LIBADD =				\
	core/libcore.la


#--- libchrysadisas

libchrysadisass_la_SOURCES =

libchrysadisass_la_LDFLAGS = $(LIBGTK_LIBS) $(LIBXML_LIBS)	\
	-Lcommon/.libs -lcommon -L.libs -lchrysaglibext -lrt

libchrysadisass_la_LIBADD =				\
	analysis/libanalysis.la				\
	arch/libarch.la						\
	debug/libdebug.la					\
	debug/remgdb/libdebugremgdb.la		\
	decomp/libdecomp.la					\
	format/libformat.la


#--- libchrysaglibext

libchrysaglibext_la_SOURCES =

libchrysaglibext_la_LDFLAGS = $(LIBGTK_LIBS)

libchrysaglibext_la_LIBADD =						\
	glibext/libglibext.la


#--- libchrysagtkext

libchrysagtkext_la_SOURCES =

libchrysagtkext_la_LDFLAGS = $(LIBGTK_LIBS)		\
	-L.libs -lchrysadisass

libchrysagtkext_la_LIBADD =						\
	gtkext/libgtkext.la


#--- libchrysagui

libchrysagui_la_SOURCES =

libchrysagui_la_LDFLAGS = $(LIBGTK_LIBS)			\
	-L.libs -lchrysagtkext

libchrysagui_la_LIBADD =							\
	gui/libgui.la


#--- libchrysaplugin

libchrysaplugin_la_SOURCES =

libchrysaplugin_la_LDFLAGS = $(LIBGTK_LIBS)		\
	-L.libs -lchrysadisass -lchrysagui

libchrysaplugin_la_LIBADD =						\
	plugins/libplugins.la



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

chrysalide_SOURCES = 					\
	editor.h editor.c					\
	main.c


AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/intl $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) `pkg-config --cflags gthread-2.0` $(LIBPYTHON_CFLAGS)

AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS)


chrysalide_LDFLAGS = $(LIBGTK_LIBS) -L/usr/X11R6/lib -ldl -lm $(LIBXML_LIBS) `pkg-config --libs gthread-2.0` $(LIBPYTHON_LIBS) $(LIBARCHIVE_LIBS) $(LIBSQLITE_LIBS) \
	-L.libs -lchrysaglibext -lchrysadisass -lchrysagtkext -lchrysagui -lchrysacore 			\
	-Lcommon/.libs -lcommon						\
	-Lplugins/.libs -lplugins


chrysalide_LDADD = $(LIBINTL) 				\
	dialogs/libdialogs.la



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

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

SUBDIRS = core glibext gtkext analysis arch format common debug decomp dialogs gui plugins

# TODO: rm -rf panels