From ba5331773afd59530b598fb51b188203bb323bb5 Mon Sep 17 00:00:00 2001 From: John Denker Date: Mon, 18 Oct 2021 14:09:50 -0700 Subject: add program to perform SVD (singular value decomposition) --- makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'makefile') 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) -- cgit v1.2.3