+1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
all: dePTX
|
||||
all: dePTX ptxc
|
||||
|
||||
ptxgrammar.cc : ptxgrammar.yy
|
||||
bison -d -v -t ptxgrammar.yy -o ptxgrammar.cc
|
||||
@@ -7,20 +7,24 @@ ptx.cc: ptx.ll ptxgrammar.cc
|
||||
flex -t ptx.ll > ptx.cc
|
||||
|
||||
%.o: %.cc
|
||||
clang++ -O3 -c $< -o $@ -I/opt/local/include
|
||||
clang++ -O3 -c $< -o $@ -I/opt/local/include
|
||||
|
||||
%.o: %.cpp
|
||||
clang++ -O3 -c $< -o $@ -I/opt/local/include
|
||||
clang++ -O3 -c $< -o $@ -I/opt/local/include
|
||||
|
||||
OBJ= dePTX.o \
|
||||
ptx.o \
|
||||
OBJ= ptx.o \
|
||||
ptxgrammar.o
|
||||
|
||||
dePTX: $(OBJ)
|
||||
dePTX: dePTX.o $(OBJ)
|
||||
clang++ $^ -o $@ -L/opt/local/lib
|
||||
|
||||
ptxc: ptxc.o $(OBJ)
|
||||
clang++ $^ -o $@ -L/opt/local/lib
|
||||
|
||||
clean:
|
||||
/bin/rm -f dePTX $(OBJ) ptxgrammar.hh ptxgrammar.cc ptx.cc ptxgrammar.output
|
||||
|
||||
$(OBJ): ptxgrammar.cc ptx.cc PTXParser.h PTXLexer.h
|
||||
dePTX.o: PTXParser.h PTXLexer.h
|
||||
ptxc.o: PTXParser.h PTXLexer.h
|
||||
|
||||
|
||||
Reference in New Issue
Block a user