Skip to content
Snippets Groups Projects
Commit 7ed6c456 authored by jdh8d's avatar jdh8d
Browse files

first draft of unpinning

parent e68c2970
No related branches found
No related tags found
No related merge requests found
* text=auto !eol
/Makefile.in -text
/SConscript -text
/SConstruct -text
/configure.in -text
......
SRCS=push64_relocs.cpp
OBJS=$(subst .cpp,.o, $(SRCS))
EXE=push64_relocs.zpi
CXX=@CXX@
CXXFLAGS=@CXXFLAGS@ @OPTIMIZE@
LDFLAGS=@LDFLAGS@
LIBS=
#${SECURITY_TRANSFORMS_HOME}/tools/transforms/Rewrite_Utility.o
#-lpqxx -lpq -lIRDB-core -lBeaEngine_s_d -ltransform
all: $(EXE)
-include $(OBJS:.o=.d)
$(EXE): $(OBJS)
$(CXX) $(CXXFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) -o $@
%.o: %.cpp
$(CXX) -c $(CXXFLAGS) $*.cpp
@#
@# build dependencies -- http://scottmcpeak.com/autodepend/autodepend.html
@#
$(CXX) -MM $(CXXFLAGS) $*.cpp > $*.d
@cp -f $*.d $*.d.tmp
@sed -e 's/.*://' -e 's/\\$$//' < $*.d.tmp | fmt -1 | sed -e 's/^ *//' -e 's/$$/:/' >> $*.d
@rm -f $*.d.tmp
install:
cp $(EXE) ${ZIPR_INSTALL}/plugins
clean:
rm -f $(OBJS) $(EXE) *.d *.o
......@@ -28,7 +28,7 @@ if 'do_cgc' in env and int(env['do_cgc']) == 1:
files= '''
push64_relocs.cpp
unpin.cpp
'''
# ELFIO needs to be first so we get the zipr version instead of the sectrans version. the zipr version is modified to include get_offset.
......@@ -56,7 +56,7 @@ if sysname != "SunOS":
myenv.Append(CXXFLAGS=" -std=c++11 ")
myenv=myenv.Clone(CPPPATH=Split(cpppath), LIBS=Split(libs), LIBPATH=Split(libpath), SHLIBSUFFIX=".zpi", SHLIBPREFIX="")
lib=myenv.SharedLibrary("push64_relocs", Split(files))
lib=myenv.SharedLibrary("unpin", Split(files))
install=myenv.Install("$ZIPR_INSTALL/plugins/", lib)
Default(install)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment