From 58d96c064aa8a10ff3a18ad4ba9ea7297989c311 Mon Sep 17 00:00:00 2001 From: Prithvi Date: Tue, 29 Jun 2021 19:16:03 +0530 Subject: [PATCH] Generate executable in current directory --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b3eb84d..942da39 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,6 @@ CC = gcc CFLAGS = -g -Wall SRC = src REQ = $(SRC)/lexer.l $(SRC)/parser.y $(SRC)/calculator.c $(SRC)/colour.c -BIN = bin ifeq ($(OS),WINDOWS_NT) CFLAGS += -D WIN32 @@ -10,4 +9,4 @@ endif calculator : $(REQ) bison -d $(SRC)/parser.y flex -o calculator.lex.c $(SRC)/lexer.l - $(CC) $(CFLAGS) parser.tab.c calculator.lex.c $(SRC)/calculator.c $(SRC)/colour.c -o $(BIN)/$@ + $(CC) $(CFLAGS) parser.tab.c calculator.lex.c $(SRC)/calculator.c $(SRC)/colour.c -o $@ \ No newline at end of file