summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorJiri Olsa <Jiri Olsa jolsa@redhat.com>2011-10-18 10:00:38 +0200
committerJiri Olsa <Jiri Olsa jolsa@redhat.com>2012-01-11 19:55:00 +0100
commit97f80d2e5d6f984a71c870748bc9c51f40dd0839 (patch)
treed1d0d9632ca0fa8aa291b577ae950cee47cdd51d /src/Makefile
parentc8d8f6fb17a206f282df3ad77aca8c740cb24fbc (diff)
downloadlatrace-97f80d2e5d6f984a71c870748bc9c51f40dd0839.tar.gz
latrace-97f80d2e5d6f984a71c870748bc9c51f40dd0839.tar.xz
latrace-97f80d2e5d6f984a71c870748bc9c51f40dd0839.zip
error simulation: application part
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 169a5f3..6b849d3 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -72,13 +72,19 @@ LATRACE_OBJS=\
src/lib-include.o \
src/tty.o
+ifeq ($(CONFIG_ARCH_HAVE_ERROR_SIM),y)
+LATRACE_OBJS+=\
+ src/error.o
+endif
+
OBJS+=$(LATRACE_OBJS)
PROGRAMS+=$(LATRACE_BIN)
CPPFLAGS+=-DCONFIG_LIBDIR=\"$(libdir)\"
CPPFLAGS+=-DLT_CONF_DIR=\"$(sysconfdir)/latrace.d\"
CPPFLAGS+=-DLT_CONF_HEADERS_DIR=\"$(sysconfdir)/latrace.d/headers\"
CPPFLAGS+=-DLT_CONF_HEADERS_FILE=\"$(sysconfdir)/latrace.d/headers/latrace.h\"
-# no dependency for flex and bison definitions
+CPPFLAGS+=-DLT_CONF_ERRORS_DIR=\"$(sysconfdir)/latrace.d/errors\"
+
OBJS_DEPS_OMIT+=\
src/config-bison.o \
src/config-flex.o
@@ -93,4 +99,6 @@ install::
clean::
$(call remove, src/config-bison.[ch] src/config-flex.c)
$(call remove, src/args-bison.[ch] src/args-flex.c)
+ $(call remove, src/audit-bison.[ch] src/audit-flex.c)
$(call remove, src/config-bison.output src/args-bison.output)
+ $(call remove, src/audit-bison.output)