aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/GNUmakefile
blob: 0318e3016535ba241d5eea2c84dbc2caa88a180e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Assumes Botan was compiled with GCC

BOTAN_DIR = ../..

CXX       = g++
CFLAGS    = -O2 -ansi -W -Wall

INCLUDES  = $(shell $(BOTAN_DIR)/botan-17-config --cflags)

LIBS      = $(shell $(BOTAN_DIR)/botan-17-config --libs)
FLAGS     = $(INCLUDES) $(CFLAGS) -I$(BOTAN_DIR)/build/include -L$(BOTAN_DIR)

SRCS=$(wildcard *.cpp)

PROGS=$(patsubst %.cpp,%,$(SRCS))

all: $(PROGS)

clean:
	@rm -f $(PROGS)

%: %.cpp
	$(CXX) $(FLAGS) $? $(LIBS) -o $@

eax_test: eax_test.cpp
	$(CXX) $(FLAGS) $? $(LIBS) -lboost_regex -o $@