summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am24
1 files changed, 18 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index 82aa0532..190d7456 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -51,15 +51,27 @@ install-elfutils:
install-exec-local: install-elfutils
endif
-staprun_SOURCES = runtime/staprun/staprun.c runtime/staprun/mainloop.c \
- runtime/staprun/symbols.c runtime/staprun/ctl.c \
- runtime/staprun/relay.c runtime/staprun/relay_old.c
+staprun_SOURCES = runtime/staprun/staprun.c runtime/staprun/staprun_funcs.c\
+ runtime/staprun/ctl.c runtime/staprun/common.c \
+ runtime/staprun/cap.c runtime/staprun/symbols.c
+staprun_CPPFLAGS = $(AM_CPPFLAGS) -DSINGLE_THREADED
staprun_CFLAGS = @PROCFLAGS@ $(AM_CFLAGS)
-staprun_LDADD = @PROCFLAGS@ -lpthread
+staprun_LDADD = @PROCFLAGS@ -lcap
-pkglibexec_SCRIPTS = stp_check
-CLEANFILES += $(pkglibexec_SCRIPTS)
+stapio_SOURCES = runtime/staprun/stapio.c \
+ runtime/staprun/mainloop.c runtime/staprun/common.c \
+ runtime/staprun/ctl.c \
+ runtime/staprun/relay.c runtime/staprun/relay_old.c
+
+stapio_CFLAGS = @PROCFLAGS@ $(AM_CFLAGS)
+stapio_LDADD = @PROCFLAGS@ -lpthread
+
+install-exec-hook:
+ chmod 04111 "$(DESTDIR)$(bindir)/staprun"
+
+pkglibexec_PROGRAMS = stapio
+CLEANFILES += $(pkglibexec_PROGRAMS)
noinst_PROGRAMS = loc2c-test stap_merge
loc2c_test_SOURCES = loc2c-test.c loc2c.c