aboutsummaryrefslogtreecommitdiffstats
path: root/src/extra_tests/timing/timing-tests/Makefile
diff options
context:
space:
mode:
authorJuraj Somorovsky <[email protected]>2016-11-19 23:42:21 +0100
committerJuraj Somorovsky <[email protected]>2016-11-20 00:17:03 +0100
commit5848645d0726157a0a1ba8c811dc3d3567fc500e (patch)
treefe43ebc53ae8177aa63d180435f7801658ddc53c /src/extra_tests/timing/timing-tests/Makefile
parent1e21b64bb96815ebadfab892a73094c758db142d (diff)
Timing test suite with the mona timing library
Diffstat (limited to 'src/extra_tests/timing/timing-tests/Makefile')
-rw-r--r--src/extra_tests/timing/timing-tests/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/extra_tests/timing/timing-tests/Makefile b/src/extra_tests/timing/timing-tests/Makefile
new file mode 100644
index 000000000..5497da9bb
--- /dev/null
+++ b/src/extra_tests/timing/timing-tests/Makefile
@@ -0,0 +1,25 @@
+CC=g++
+BOTAN_DIR=../../../../../botan/
+LDIR=$(BOTAN_DIR)
+IDIR=$(BOTAN_DIR)build/include
+DBG_FLAGS=-g -O3
+LIBS=-lbotan-1.11
+
+CPPFLAGS=$(DBG_FLAGS) -std=c++11 -I$(IDIR) -L$(LDIR) -Wl,-R$(LDIR) '-Wl,-R$$ORIGIN'
+LDFLAGS=$(DBG_FLAGS) -I$(IDIR) -L$(LDIR) -Wl,-R$(LDIR) '-Wl,-R$$ORIGIN' $(LIBS)
+
+SOURCES = $(shell find . -maxdepth 1 -name "*.cpp")
+HEADERS = $(shell find . -maxdepth 1 -name "*.h")
+OBJECTS = $(SOURCES:%.cpp=%.o)
+BINARY = main
+
+all: ${BINARY}
+
+${BINARY}: $(OBJECTS) $(HEADERS)
+ ${CC} $(LDFLAGS) -o ${BINARY} $(OBJECTS) $(LIBS)
+
+# rebuild objects if headers changed
+$(OBJECTS): $(HEADERS)
+
+clean:
+ rm -f ${BINARY} $(OBJECTS)