aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 18 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 397b412..710a9d8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,25 @@
-all: 5_1 5_2 5_3
+VAR ?= 1
-5_1: 5_1.c matrix.c
- cc -o $@ $^ -lm
+all: 6_1 6_2
-5_2: 5_2.c matrix.c
- cc -o $@ $^ -lm
+gen: gen.c
+ $(CC) -o $@ $<
-5_3: 5_3.c matrix.c
- cc -o $@ $^ -lm
+6_1: 6_1.c gen
+ $(CC) -o $@ $<
-.PHONY: clean
+6_2: 6_2.c
+ $(CC) -o $@ $< -lm
+
+.PHONY: clean run1 run2
+
+run1: gen 6_1
+ ./gen 100 in.1
+ ./6_1 -i in.1 -o out.1 $(VAR)
+
+run2: 6_2
+ ./6_2 -1 t2.1 -2 t2.2 -a 0 -b 3.141592657 -x 0.1
clean:
- rm -f 5_1 5_2 5_3
+ rm -f gen 6_1 6_2 in.1 out.1 t2.1 t2.2