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

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

bin_PROGRAMS = chrysalide

.NOTPARALLEL: $(lib_LTLIBRARIES) $(bin_PROGRAMS)



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

#--- libchrysadisas

libchrysadisass_la_SOURCES =

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

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) $(LIBGRAPH_LIBS)

libchrysaglibext_la_LIBADD =						\
	glibext/libglibext.la


#--- libchrysagtkext

libchrysagtkext_la_SOURCES =

libchrysagtkext_la_LDFLAGS = $(LIBGTK_LIBS) $(LIBGRAPH_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 = 						\
	configuration.h configuration.c		\
	editor.h editor.c					\
	main.c								\
	params.h params.c					\
	project.h project.c					\
	xdg.h xdg.c


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

AM_CPPFLAGS = 

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) \
	-L.libs  -lchrysaglibext -lchrysadisass -lchrysagtkext -lchrysagui			\
	-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 = glibext gtkext analysis arch format common debug decomp dialogs gui plugins

# TODO: rm -rf panels