diff options
author | John Denker <jsd@av8n.com> | 2021-10-18 14:09:50 -0700 |
---|---|---|
committer | John Denker <jsd@av8n.com> | 2021-10-18 22:50:48 -0700 |
commit | ba5331773afd59530b598fb51b188203bb323bb5 (patch) | |
tree | bb2ace7d65142c9e8782ae83e7aff9fe448aac35 /makefile | |
parent | 6fd3f70ca2ce5460fc3c6eab138c6a25b7bcfc69 (diff) |
add program to perform SVD (singular value decomposition)
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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) |