aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
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)