From f5e0076a8455eec5b4a515b39202217f8a8b9e71 Mon Sep 17 00:00:00 2001 From: justanothercatgirl Date: Sun, 13 Oct 2024 19:28:57 +0300 Subject: Initial commit --- Makefile | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2