summaryrefslogtreecommitdiffstats
path: root/botan/doc/examples/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'botan/doc/examples/GNUmakefile')
-rw-r--r--botan/doc/examples/GNUmakefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/botan/doc/examples/GNUmakefile b/botan/doc/examples/GNUmakefile
new file mode 100644
index 0000000..d854c81
--- /dev/null
+++ b/botan/doc/examples/GNUmakefile
@@ -0,0 +1,21 @@
+
+BOTAN_CONFIG = botan-config
+
+CXX = g++
+CFLAGS = -O2 -ansi -W -Wall $(shell $(BOTAN_CONFIG) --cflags)
+LIBS = $(shell $(BOTAN_CONFIG) --libs)
+
+SRCS=$(wildcard *.cpp)
+
+PROGS=$(patsubst %.cpp,%,$(SRCS))
+
+all: $(PROGS)
+
+clean:
+ @rm -f $(PROGS)
+
+%: %.cpp
+ $(CXX) $(CFLAGS) $? $(LIBS) -o $@
+
+eax_test: eax_test.cpp
+ $(CXX) $(CFLAGS) $? $(LIBS) -lboost_regex -o $@