summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorWolfgang Hommel <wolf@code-wizards.com>2012-01-11 22:23:09 +0100
committerWolfgang Hommel <wolf@code-wizards.com>2012-01-11 22:23:09 +0100
commitec89c4401185e43b4c0b59791a40ef97239470a3 (patch)
tree7500e1d45782f2e292a5138d078a21a6f24ffb17 /src/Makefile
parent837e2c7e62ec13a946946d652e63a03732e58a8b (diff)
downloadlibfaketime-ec89c4401185e43b4c0b59791a40ef97239470a3.tar.gz
Added feature to exec external command after x sec
This feature makes libfaketime execute an arbitrary system command, such as a shell script, after a program has been running for X seconds or has made Y time-related function calls. It is controlled by three environment variables. FAKETIME_SPAWN_TARGET is the full path + file name + command line arguments to the user-specified system command. FAKETIME_SPAWN_SECONDS is the number of seconds (after program start / program's first time function call) after which FAKETIME_SPAWN_TARGET will be executed. FAKETIME_SPAWN_NUMCALLS can be used as an alternative to ..._SECONDS.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 32ab293..9118815 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -34,6 +34,10 @@
# - Support environment variables that limit time faking to certain
# time intervals or number of function calls.
#
+# SPAWNSUPPORT
+# - Enable support for spawning an external process at a given
+# timestamp.
+#
# * Compilation addition: second libMT target added for building the pthread-
# enabled library as a separate library
#
@@ -48,7 +52,7 @@ INSTALL = install
PREFIX = /usr/local
-CFLAGS += -std=gnu99 -Wall -DFAKE_STAT -DFAKE_INTERNAL_CALLS -fPIC -DPOSIX_REALTIME -DLIMITEDFAKING
+CFLAGS += -std=gnu99 -Wall -DFAKE_STAT -DFAKE_INTERNAL_CALLS -fPIC -DPOSIX_REALTIME -DLIMITEDFAKING -DSPAWNSUPPORT
LDFLAGS += -shared -ldl -lm -lpthread
SRC = faketime.c