This repository has been archived by the owner on Aug 23, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0eda1f
commit 3b7760a
Showing
10 changed files
with
145 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
add_subdirectory(valTool) | ||
add_subdirectory(testSemantics) | ||
add_subdirectory(valTest) | ||
add_subdirectory(testSemantics) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
CC ?= gcc | ||
CXX ?= g++ | ||
|
||
CXXFLAGS:=-std=c++11 -m32 -DTARGET_IA32 -DHOST_IA32 -DTARGET_LINUX -fPIC | ||
INCLUDE:=-I$(PIN_HOME)/source/include/pin -I$(PIN_HOME)/source/include/pin/gen -I$(PIN_HOME)/extras/components/include -I$(PIN_HOME)/extras/xed2-ia32/include | ||
|
||
LDFLAGS:=-m32 -shared -Wl,--hash-style=sysv -Wl,-Bsymbolic -lpin -lxed -ldwarf -lelf -ldl | ||
LPATHS:=-L$(PIN_HOME)/ia32/lib/ -L$(PIN_HOME)/ia32/lib-ext -L$(PIN_HOME)/extras/xed2-ia32/lib | ||
|
||
SRC=$(wildcard *.cpp) | ||
OBJS=$(patsubst %.cpp,%.o,$(SRC)) | ||
|
||
TARGET=val.so | ||
|
||
all: $(SRC) $(OBJS) $(TARGET) | ||
|
||
$(TARGET): $(OBJS) | ||
$(CXX) -o $(TARGET) $(OBJS) -shared -m32 $(LPATHS) $(LDFLAGS) | ||
|
||
%.o: %.cpp Makefile.linux | ||
$(CXX) $(CXXFLAGS) $(INCLUDE) -c $< -o $@ | ||
|
||
clean: | ||
rm $(TARGET) $(OBJS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
CC ?= clang | ||
CXX ?= clang++ | ||
|
||
CXXFLAGS:=-std=c++11 -DTARGET_IA32 -DHOST_IA32 -DTARGET_MAC -fPIC -arch i386 -stdlib=libstdc++ | ||
INCLUDE:=-I$(PIN_HOME)/source/include/pin -I$(PIN_HOME)/source/include/pin/gen -I$(PIN_HOME)/extras/components/include -I$(PIN_HOME)/extras/xed2-ia32/include | ||
|
||
LDFLAGS:=-stdlib=libstdc++ -shared -lpin -lxed -ldl | ||
LPATHS:=-L$(PIN_HOME)/ia32/lib/ -L$(PIN_HOME)/ia32/lib-ext -L$(PIN_HOME)/extras/xed2-ia32/lib -L$(PIN_HOME)/ia32/runtime/glibc | ||
|
||
SRC=$(wildcard *.cpp) | ||
OBJS=$(patsubst %.cpp,%.o,$(SRC)) | ||
|
||
TARGET=val.so | ||
|
||
all: $(SRC) $(OBJS) $(TARGET) | ||
|
||
$(TARGET): $(OBJS) | ||
$(CXX) -o $(TARGET) $(OBJS) -shared -m32 $(LPATHS) $(LDFLAGS) | ||
|
||
%.o: %.cpp Makefile.osx | ||
$(CXX) $(CXXFLAGS) $(INCLUDE) -c $< -o $@ | ||
|
||
clean: | ||
rm $(TARGET) $(OBJS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters