From be36daa9ce1b5cecd13c2b13c0fe9b06bf4b7c18 Mon Sep 17 00:00:00 2001 From: whh8b <whh8b@git.zephyr-software.com> Date: Sat, 21 Feb 2015 04:28:15 +0000 Subject: [PATCH] Add Makefile.in for test/ --- .gitattributes | 1 + Makefile.in | 2 ++ configure.in | 1 + test/Makefile.in | 39 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 43 insertions(+) create mode 100644 test/Makefile.in diff --git a/.gitattributes b/.gitattributes index dcb2658..da09e75 100644 --- a/.gitattributes +++ b/.gitattributes @@ -18,6 +18,7 @@ src/plugin_man.cpp -text src/zipr.cpp -text src/zipr_options.cpp -text src/zipr_stats.cpp -text +test/Makefile.in -text test/MemorySpace.cpp -text third_party/ELFIO/elfio-2.2/AUTHORS -text third_party/ELFIO/elfio-2.2/COPYING -text diff --git a/Makefile.in b/Makefile.in index 28c71b9..223bbb4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -5,9 +5,11 @@ bdir=@prefix@ all: cd src;make + cd test;make install: all cp src/zipr.exe $(bdir)/bin clean: cd src;make clean + cd test;make clean diff --git a/configure.in b/configure.in index e50e45b..a867d1b 100644 --- a/configure.in +++ b/configure.in @@ -35,6 +35,7 @@ fi AC_OUTPUT(Makefile) AC_OUTPUT(src/Makefile) +AC_OUTPUT(test/Makefile) AC_SUBST(DIRS) AC_SUBST(CC) diff --git a/test/Makefile.in b/test/Makefile.in new file mode 100644 index 0000000..668d5c9 --- /dev/null +++ b/test/Makefile.in @@ -0,0 +1,39 @@ + +INC=-I../include -I../third_party/ELFIO/elfio-2.2 -I$(SECURITY_TRANSFORMS_HOME)/include -I$(SECURITY_TRANSFORMS_HOME)/libIRDB/include -I$(SECURITY_TRANSFORMS_HOME)/beaengine/include -I${SECURITY_TRANSFORMS_HOME}/tools/transforms/ + + + +SRCS=MemorySpace.cpp ../src/zipr_options.cpp ../src/memory_space.cpp +OBJS=$(subst .cpp,.o, $(SRCS)) +EXE=MemoryTest.exe + +CXX=@CXX@ +CXXFLAGS=@CXXFLAGS@ @OPTIMIZE@ +LDFLAGS=-L$(SECURITY_TRANSFORMS_HOME)/lib -Wl,-E +LIBS=-lIRDB-core -lBeaEngine_s_d -lpqxx -lpq + + + + +all: $(EXE) + +-include $(OBJS:.o=.d) + +$(EXE): $(OBJS) + g++ $(LDFLAGS) $(OBJS) $(LIBS) -o $@ + +%.o: %.cpp + $(CXX) -c $(CXXFLAGS) $*.cpp -o $@ + @# + @# 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 + + + + +clean: + rm -f $(OBJS) $(EXE) *.d *.o -- GitLab