From 2090e3105a094fb2f1917d651370e7785ddc0981 Mon Sep 17 00:00:00 2001 From: Arkaprabha Chakraborty Date: Wed, 13 Jul 2022 00:40:29 +0530 Subject: [PATCH] Update Makefile --- Makefile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index e04602b..d70cc0c 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,9 @@ CC=gcc -OL=Ofast +CFLAGS=-Ofast -lm +BIN=torus -build: torus.c - $(CC) -$(OL) -o torus.out torus.c -lm +$(BIN): $(BIN).c + $(CC) $(CFLAGS) $(BIN).c -o $(BIN) -run: torus.out - ./torus.out - -clean: torus.out - rm torus.out +clean: $(BIN) + rm $(BIN)