aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov2070@gmail.com>2024-10-13 19:28:57 +0300
committerjustanothercatgirl <sotov2070@gmail.com>2024-10-13 19:28:57 +0300
commitf5e0076a8455eec5b4a515b39202217f8a8b9e71 (patch)
treef5cd306d8eb2a516e2d3a83a9276d5aa60b658c0 /Makefile
parent1fe251abc83ee3a38d9faea5be947c90d162c6ae (diff)
Initial committask5
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 8 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index 36c6b05..397b412 100644
--- a/Makefile
+++ b/Makefile
@@ -1,24 +1,16 @@
-CFLAGS = -O2 -Wall -Wextra -Werror -Iinclude
+all: 5_1 5_2 5_3
-all: task4
+5_1: 5_1.c matrix.c
+ cc -o $@ $^ -lm
-build:
- mkdir -p build
+5_2: 5_2.c matrix.c
+ cc -o $@ $^ -lm
-build/roots.o: src/roots.c build
- $(CC) $(CFLAGS) -c -o $@ $<
-
-build/integral.o: src/integral.c build
- $(CC) $(CFLAGS) -c -o $@ $<
-
-task4: build/roots.o build/integral.o src/main.c
- $(CC) $(CFLAGS) -o $@ $^ -lm -ldl
+5_3: 5_3.c matrix.c
+ cc -o $@ $^ -lm
.PHONY: clean
-run:
- ./task4
-
clean:
- rm -f build/*.o task4
+ rm -f 5_1 5_2 5_3