aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2021-10-21 19:26:57 -0700
committerJohn Denker <jsd@av8n.com>2021-10-21 20:06:41 -0700
commita9e91095d042b8e25aec714ccd3eb5233679eee9 (patch)
tree131ae69703e54ad18aa3a6d175874f333df29038 /makefile
parentba5331773afd59530b598fb51b188203bb323bb5 (diff)
add rudimentary program to timestamp serial port eventsHEADmaster
Diffstat (limited to 'makefile')
-rw-r--r--makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/makefile b/makefile
index 13b8e92..6cb1aeb 100644
--- a/makefile
+++ b/makefile
@@ -1,5 +1,4 @@
-
-c_mains := poiss.c svd.c
+c_mains := poiss.c svd.c timestamp.c
c_sources := $(c_mains) arg_parser.c parse_csv.c
% : %.c # cancel built-in one-step rule
@@ -10,7 +9,7 @@ c_sources := $(c_mains) arg_parser.c parse_csv.c
% : %.o
g++ $^ $(LDFLAGS) -o $@
-.PHONY : all
+.PHONY : all priority
## dependency-finding scheme (with local mods) based on:
## http://www.gnu.org/manual/make-3.77/html_mono/make.html#SEC42
@@ -30,6 +29,12 @@ poiss : poiss.o arg_parser.o parse_csv.o
svd : svd.o arg_parser.o parse_csv.o
g++ $^ -larmadillo -o $@
+timestamp: timestamp.o arg_parser.o
+ $(CXX) $^ -lpthread -o $@
+
+priority:
+ sudo setcap CAP_SYS_NICE=ep ./timestamp
+
ifndef NO_DOT_D
include $(c_sources:.c=.d)
endif