Archived
1
0
Fork 0
This repository has been archived on 2023-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
SLOTH/Makefile

33 lines
2.1 KiB
Makefile
Raw Normal View History

2018-09-27 23:33:48 -04:00
GPP = g++ -Wall -std=c++17 -O3
2018-09-26 16:44:22 -04:00
sloth: src/main.cpp src/parser/lex.yy.o src/parser/parser.tab.o src/variables/environment.o src/variables/variable.o src/variables/value.o src/operations/node.o src/operations/operators.o src/string.o src/shell.o
$(GPP) src/main.cpp src/parser/lex.yy.o src/parser/parser.tab.o src/variables/environment.o src/variables/variable.o src/variables/value.o src/operations/node.o src/operations/operators.o src/string.o src/shell.o -ledit -o sloth
2018-09-26 16:44:22 -04:00
src/parser/lex.yy.o: src/parser/lex.yy.c src/parser/parser.tab.h
$(GPP) -c src/parser/lex.yy.c -o src/parser/lex.yy.o
src/parser/parser.tab.o: src/parser/parser.tab.c
2018-09-26 16:44:22 -04:00
$(GPP) -c src/parser/parser.tab.c -o src/parser/parser.tab.o
src/parser/parser.tab.h: src/parser/parser.y
bison -d -o src/parser/parser.tab.c src/parser/parser.y
src/parser/parser.tab.c: src/parser/parser.y
bison -d -o src/parser/parser.tab.c src/parser/parser.y
src/parser/lex.yy.c: src/parser/lexer.l
flex -o src/parser/lex.yy.c src/parser/lexer.l
src/variables/environment.o: src/variables/environment.hpp src/variables/environment.cpp
$(GPP) -c src/variables/environment.cpp -o src/variables/environment.o
src/variables/variable.o: src/variables/variable.hpp src/variables/variable.cpp
$(GPP) -c src/variables/variable.cpp -o src/variables/variable.o
src/variables/value.o: src/variables/value.hpp src/variables/value.cpp
$(GPP) -c src/variables/value.cpp -o src/variables/value.o
src/operations/operators.o: src/operations/operators.hpp src/operations/operators.cpp
$(GPP) -c src/operations/operators.cpp -o src/operations/operators.o
src/operations/node.o: src/operations/node.hpp src/operations/node.cpp
$(GPP) -c src/operations/node.cpp -o src/operations/node.o
src/shell.o: src/shell.hpp src/shell.cpp
$(GPP) -c src/shell.cpp -o src/shell.o
src/string.o: src/string.h src/string.c
2018-09-26 16:44:22 -04:00
$(GPP) -c src/string.c -o src/string.o
2020-01-27 19:32:44 -05:00
install:
mv sloth /usr/bin/
2018-09-18 22:50:15 -04:00
clean:
2018-09-26 16:44:22 -04:00
rm src/parser/lex.yy.c src/parser/parser.tab.c src/parser/parser.tab.h src/parser/lex.yy.o src/parser/parser.tab.o src/variables/environment.o src/variables/variable.o src/variables/value.o src/operations/node.o src/operations/operators.o src/string.o src/shell.o sloth