programming language
Rev. | 5b54a08c37653c5cd96b6181ea6a521186fa3f9e |
---|---|
Tamanho | 918 bytes |
Hora | 2023-06-09 22:31:05 |
Autor | dhrname |
Mensagem de Log | Edit MAKEFILE for the coins
|
CC = g++
DEBUGMODE = -std=c++20 -O0 -g -pg -fsanitize=address -fno-omit-frame-pointer
NODEBUGMODE = -std=c++20 -Wall -v
LLVM = -Wall `llvm-config --cxxflags --ldflags --system-libs --libs` -std=c++20 -fexceptions
OBJECTDIR = bin/obj/
vpath %.h include
vpath %.hpp include
YACC = bison
LEX = flex
all : bin/jostar.exe
.PHONY : all clean
lex.yy.cc: lex.l
$(LEX) -+ $^
bin/jostar.exe: test.c
java -cp "C:\cygwin64\home\qq5r6\joestar\coins\classes" coins.driver.Driver -o $@ -coins:target=x86_64,assembler=as test.c
$(OBJECTDIR)lex.o: lex.yy.cc FlexLexer.h
$(CC) $(LLVM) lex.yy.cc -c -o $@
$(OBJECTDIR)node.o: node.hpp node.cpp
$(CC) $(LLVM) node.cpp -c -o $@
$(OBJECTDIR)phrase.o: phrase.hpp phrase.cpp
$(CC) $(LLVM) phrase.cpp -c -o $@
$(OBJECTDIR)parser.o: parser.hpp parser.cpp
$(CC) $(LLVM) parser.cpp -c -o $@
$(OBJECTDIR)main.o: main.cpp
$(CC) $(LLVM) $^ -c -o $@
clean:
-rm $(OBJECTDIR)*.o