-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
22 lines (18 loc) · 722 Bytes
/
makefile
File metadata and controls
22 lines (18 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# GROUP - 8
# 2020B1A70630P Aditya Thakur
# 2021A7PS2001P Amal Sayeed
# 2021A7PS2005P Ohiduz Zaman
# 2021A7PS2682P Priyansh Patel
# 2021A7PS2002P Rachoita Das
# 2020B1A70611P Subhramit Basu Bhowmick
var = gcc -c #change to "clang" if you're using Clang to compile
all: src/lexer/lexer.c src/parser/parser.c driver.c
make clean
mkdir -p build
$(var) src/lexer/lexer.c -lm -o build/lexer.o
$(var) src/parser/parser.c -o build/parser.o
$(var) driver.c -o build/driver.o
gcc build/*.o -lm -o stage1exe
clean:
rm -f build/*.o
rm -f stage1exe