Skip to content
Snippets Groups Projects
Commit be36daa9 authored by whh8b's avatar whh8b
Browse files

Add Makefile.in for test/

parent 340b17d4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......@@ -35,6 +35,7 @@ fi
AC_OUTPUT(Makefile)
AC_OUTPUT(src/Makefile)
AC_OUTPUT(test/Makefile)
AC_SUBST(DIRS)
AC_SUBST(CC)
......
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
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