aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2021-10-18 14:09:50 -0700
committerJohn Denker <jsd@av8n.com>2021-10-18 22:50:48 -0700
commitba5331773afd59530b598fb51b188203bb323bb5 (patch)
treebb2ace7d65142c9e8782ae83e7aff9fe448aac35 /makefile
parent6fd3f70ca2ce5460fc3c6eab138c6a25b7bcfc69 (diff)
add program to perform SVD (singular value decomposition)
Diffstat (limited to 'makefile')
-rw-r--r--makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/makefile b/makefile
index 45009b0..13b8e92 100644
--- a/makefile
+++ b/makefile
@@ -1,6 +1,6 @@
-LDFLAGS := -lnlopt
-c_sources := poiss.c arg_parser.c parse_csv.c
+c_mains := poiss.c svd.c
+c_sources := $(c_mains) arg_parser.c parse_csv.c
% : %.c # cancel built-in one-step rule
@@ -22,10 +22,13 @@ c_sources := poiss.c arg_parser.c parse_csv.c
################ end of pattern rules, start of real rules
-all : poiss
+all : $(c_mains:.c=)
poiss : poiss.o arg_parser.o parse_csv.o
- g++ $^ $(LDFLAGS) -o $@
+ g++ $^ -lnlopt -o $@
+
+svd : svd.o arg_parser.o parse_csv.o
+ g++ $^ -larmadillo -o $@
ifndef NO_DOT_D
include $(c_sources:.c=.d)