summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am65
1 files changed, 51 insertions, 14 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 4f4aa1a..b7c2fa5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,49 @@
+lib_LTLIBRARIES = liboidadisass.la liboidagtkext.la
+
bin_PROGRAMS=openida
+
+
+############################################################
+# Bibliothèques dynamiques
+############################################################
+
+#--- liboidadisas
+
+liboidadisass_la_SOURCES =
+
+liboidadisass_la_LDFLAGS = $(LIBGTK_LIBS) $(LIBXML_LIBS) \
+ -Lcommon/.libs -lcommon
+
+liboidadisass_la_LIBADD = \
+ analysis/libanalysis.la \
+ arch/libarch.la \
+ arch/x86/libarchx86.la \
+ format/libformat.la \
+ format/dwarf/libformatdwarf.la \
+ format/elf/libformatelf.la \
+ format/java/libformatjava.la \
+ format/mangling/libformatmangling.la \
+ format/pe/libformatpe.la
+
+
+#--- liboidagtkext
+
+liboidagtkext_la_SOURCES =
+
+liboidagtkext_la_LDFLAGS = $(LIBGTK_LIBS) \
+ -L.libs -loidadisass
+
+liboidagtkext_la_LIBADD = \
+ gtkext/libgtkext.la
+
+
+
+############################################################
+# Programme principal
+############################################################
+
openida_SOURCES = \
dlg_sections.h dlg_sections.c \
editor.c \
@@ -20,28 +63,22 @@ AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS)
openida_LDFLAGS = $(LIBGTK_LIBS) -L/usr/X11R6/lib -ldl -lm $(LIBXML_LIBS) `pkg-config --libs gthread-2.0` $(LIBPYTHON_LIBS) $(LIBVTE_LIBS) \
- -Larch/.libs -larch \
+ -L.libs -loidadisass -loidagtkext \
-Lcommon/.libs -lcommon \
-Lpanel/.libs -lpanel \
- -Lgtkext/.libs -lgtkext \
- -Lanalysis/.libs -lanalysis \
- -Lformat/.libs -lformat \
- -Lformat/dwarf/.libs -lformatdwarf \
- -Lformat/elf/.libs -lformatelf \
- -Lformat/java/.libs -lformatjava \
- -Lformat/mangling/.libs -lformatmangling \
- -Lformat/pe/.libs -lformatpe \
-Lplugins/.libs -lplugins
openida_LDADD = $(LIBINTL) \
debug/libdebug.a \
- debug/ptrace/libdebugptrace.a \
- plugins/pyoida/libpyoida.a \
- common/libcommon.a
+ debug/ptrace/libdebugptrace.a
+
+
+############################################################
+# Le reste du monde
+############################################################
# gtkext doit être traité en premier, à cause des marshals GLib
-# common doit être passé avant analysis
-SUBDIRS = arch format common analysis debug gtkext panel plugins
+SUBDIRS = gtkext analysis arch format common debug panel plugins