Makefile.am fixed
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Mon, 25 Aug 2003 18:05:56 +0000 (18:05 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Mon, 25 Aug 2003 18:05:56 +0000 (18:05 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@184 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/configure.in
ltt/branches/poly/include/ltt/ltt.h
ltt/branches/poly/ltt/Makefile.am
ltt/branches/poly/lttv/Makefile.am

index 9435ae8e6a443acf2c64d573082f9c9fe9f72745..43621d254bef03ce4cc9dfb259b4ceeeb91b69d9 100644 (file)
@@ -45,7 +45,10 @@ lttlibdir="${libdir}/ltt"
 AC_SUBST(lttlibdir)
 
 
-DEFAULT_INCLUDES="-I\$(top_srcdir)/include"
+top_includedir="\$(top_srcdir)/include"
+AC_SUBST(top_includedir)
+
+DEFAULT_INCLUDES="-I\$(top_includedir)"
 AC_SUBST(DEFAULT_INCLUDES)
 
 #CPPFLAGS="${GLIB_CFLAGS}"
index d177e946d331e6b61c552efd230eb0f8e06df912..fc00a14d78888728966de71933f30437c0496674 100644 (file)
@@ -124,6 +124,23 @@ do \
     }\
 } while(0)
 
+/*  (T2 = T1 * FLOAT) */
+/* WARNING : use this multiplicator carefully : on 32 bits, multiplying
+ * by more than 4 could overflow the tv_nsec.
+ */
+#define TimeMul(T2, T1, FLOAT) \
+do \
+{\
+  (T2).tv_sec  = (T1).tv_sec  * (FLOAT);  \
+  (T2).tv_nsec = (T1).tv_nsec * (FLOAT);  \
+  if((T2).tv_nsec >= 1000000000)\
+    {\
+    (T2).tv_sec += (T3).tv_nsec / 1000000000;\
+    (T2).tv_nsec = (T3).tv_nsec % 1000000000;\
+    }\
+} while(0)
+
+
 
 
 #include <ltt/ltt-private.h>
index 995d3e0021ffd7fc0e0c6f4c0d61f1d592e2a184..8af7e869ecff81529f715d1f77cf67dcee3844ec 100644 (file)
@@ -15,6 +15,6 @@ lib_LTLIBRARIES = libtraceread.la
 libtraceread_la_SOURCES = event.c facility.c parser.c tracefile.c type.c \
                                                                                                        parser.h
 
-libtraceread_la_DEPENDENCIES = $(DEFAULT_INCLUDES)/ltt/LTTTypes.h
+libtraceread_la_DEPENDENCIES = ${top_includedir}/ltt/LTTTypes.h
                                                                                                                         
 EXTRA_DIST = crc32.tab
index 0b603eaf54a4f1b3d93a6f54729d104cd97f62c7..0ef152ea9790fc99ceedae450a619c601a22f802 100644 (file)
@@ -12,15 +12,15 @@ bin_PROGRAMS = lttv
 lttv_SOURCES = main.c module.c option.c hook.c attribute.c \
                iattribute.c processTrace.c state.c traceset.c
 
-#lttv_DEPENDENCIES = $(DEFAULT_INCLUDES)/lttv/lttv.h \
-#      $(DEFAULT_INCLUDES)/lttv/module.h \
-#      $(DEFAULT_INCLUDES)/lttv/option.h \
-#      $(DEFAULT_INCLUDES)/lttv/hook.h \
-#      $(DEFAULT_INCLUDES)/lttv/attribute.h \
-#      $(DEFAULT_INCLUDES)/lttv/iattribute.h \
-#      $(DEFAULT_INCLUDES)/lttv/processTrace.h \
-#      $(DEFAULT_INCLUDES)/lttv/state.h \
-#      $(DEFAULT_INCLUDES)/lttv/traceset.h
+lttv_DEPENDENCIES = $(top_includedir)/lttv/lttv.h \
+       $(top_includedir)/lttv/module.h \
+       $(top_includedir)/lttv/option.h \
+       $(top_includedir)/lttv/hook.h \
+       $(top_includedir)/lttv/attribute.h \
+       $(top_includedir)/lttv/iattribute.h \
+       $(top_includedir)/lttv/processTrace.h \
+       $(top_includedir)/lttv/state.h \
+       $(top_includedir)/lttv/traceset.h
 
 
 libdir = ${lttvplugindir}
This page took 0.026264 seconds and 4 git commands to generate.