aboutsummaryrefslogtreecommitdiffstats
path: root/examples/gtk/Makefile
blob: 10e069bb39f9990ae3b31ac5b6e5ecd1f7c0ed53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

LIBS=$(shell botan-config --libs) $(shell pkg-config --libs gtk+-2.0)
IFLAGS=$(shell botan-config --cflags) $(shell pkg-config --cflags gtk+-2.0)

CXX = g++
CXXFLAGS = -Wall -W $(IFLAGS)

dsa: gtk_ui.o dsa.o
	$(CXX) $^ $(LIBS) -o $@

gtk_ui.o: gtk_ui.cpp gtk_ui.h
	$(CXX) $(CXXFLAGS) -c $< -o $@

dsa.o: dsa.cpp gtk_ui.h
	$(CXX) $(CXXFLAGS) -c $< -o $@

clean:
	rm -f dsa *.o