| 1 | SUBDIRS= sync |
| 2 | |
| 3 | AM_CFLAGS= $(PACKAGE_CFLAGS) |
| 4 | LDADD = $(POPT_LIBS) $(M_LIBS) $(GLPK_LIBS) ${top_builddir}/ltt/liblttvtraceread.la |
| 5 | |
| 6 | bin_PROGRAMS = lttv.real |
| 7 | |
| 8 | if BUILD_LTTV_GUI |
| 9 | bin_SCRIPTS = lttv lttv-gui |
| 10 | else |
| 11 | bin_SCRIPTS = lttv |
| 12 | endif |
| 13 | |
| 14 | CLEANFILES = $(bin_SCRIPTS) |
| 15 | |
| 16 | if BUILD_LTTV_GUI |
| 17 | EXTRA_DIST = lttv.sh lttv-gui.sh |
| 18 | else |
| 19 | EXTRA_DIST = lttv.sh |
| 20 | endif |
| 21 | |
| 22 | lttv: lttv.sh |
| 23 | rm -f lttv |
| 24 | echo "#!"$(BASH) > lttv |
| 25 | cat $(srcdir)/lttv.sh >> lttv |
| 26 | chmod ugo+x lttv |
| 27 | |
| 28 | lttv-gui: lttv-gui.sh |
| 29 | rm -f lttv-gui |
| 30 | echo "#!"$(BASH) > lttv-gui |
| 31 | cat $(srcdir)/lttv-gui.sh >> lttv-gui |
| 32 | chmod ugo+x lttv-gui |
| 33 | |
| 34 | |
| 35 | INCLUDES = \ |
| 36 | -DPACKAGE_PLUGIN_DIR=\""$(lttvplugindir)"\" \ |
| 37 | $(DEFAULT_INCLUDES) |
| 38 | |
| 39 | libdir = ${lttvplugindir} |
| 40 | |
| 41 | #noinst_HEADERS = \ |
| 42 | # filter.h |
| 43 | |
| 44 | lttv_real_SOURCES = \ |
| 45 | batchtest.c\ |
| 46 | main.c\ |
| 47 | module.c\ |
| 48 | option.c\ |
| 49 | hook.c\ |
| 50 | attribute.c\ |
| 51 | iattribute.c\ |
| 52 | state.c\ |
| 53 | stats.c\ |
| 54 | tracecontext.c\ |
| 55 | traceset.c\ |
| 56 | filter.c\ |
| 57 | print.c\ |
| 58 | sync/sync_chain.c\ |
| 59 | sync/sync_chain.h\ |
| 60 | sync/sync_chain_lttv.c\ |
| 61 | sync/sync_chain_lttv.h\ |
| 62 | sync/graph_functions.c\ |
| 63 | sync/graph_functions.h\ |
| 64 | sync/data_structures.c\ |
| 65 | sync/data_structures.h\ |
| 66 | sync/event_processing.h\ |
| 67 | sync/event_processing_lttng_common.c\ |
| 68 | sync/event_processing_lttng_common.h\ |
| 69 | sync/event_processing_lttng_standard.c\ |
| 70 | sync/event_processing_lttng_standard.h\ |
| 71 | sync/event_processing_lttng_null.c\ |
| 72 | sync/event_processing_lttng_null.h\ |
| 73 | sync/event_matching.h\ |
| 74 | sync/event_matching_broadcast.c\ |
| 75 | sync/event_matching_broadcast.h\ |
| 76 | sync/event_matching_distributor.c\ |
| 77 | sync/event_matching_distributor.h\ |
| 78 | sync/event_matching_tcp.c\ |
| 79 | sync/event_matching_tcp.h\ |
| 80 | sync/event_analysis.h\ |
| 81 | sync/event_analysis_chull.c\ |
| 82 | sync/event_analysis_chull.h\ |
| 83 | sync/event_analysis_eval.c\ |
| 84 | sync/event_analysis_eval.h\ |
| 85 | sync/event_analysis_linreg.c\ |
| 86 | sync/event_analysis_linreg.h\ |
| 87 | sync/factor_reduction.h\ |
| 88 | sync/factor_reduction_accuracy.c\ |
| 89 | sync/factor_reduction_accuracy.h\ |
| 90 | sync/lookup3.h |
| 91 | |
| 92 | lttvinclude_HEADERS = \ |
| 93 | attribute.h\ |
| 94 | hook.h\ |
| 95 | iattribute.h\ |
| 96 | lttv.h\ |
| 97 | module.h\ |
| 98 | option.h\ |
| 99 | state.h\ |
| 100 | stats.h\ |
| 101 | tracecontext.h\ |
| 102 | traceset.h\ |
| 103 | filter.h\ |
| 104 | print.h |
| 105 | |
| 106 | #man_MANS = lttv.1 |
| 107 | #EXTRA_DIST = lttv.1 |
| 108 | |
| 109 | #install-data-hook: |
| 110 | # cd $(DESTDIR)$(mandir)/man1 && \ |
| 111 | # $(LN_S) -f lttv.1 lttv-gui.1 \ |
| 112 | # $(LN_S) -f lttv.1 lttv.real.1 |
| 113 | |
| 114 | lttv_real_LDFLAGS = -export-dynamic |
| 115 | |
| 116 | if LTTVSTATIC |
| 117 | lttv_real_LDFLAGS += -static |
| 118 | endif |
| 119 | |