aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/gtk/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/gtk/Makefile')
-rw-r--r--doc/examples/gtk/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/examples/gtk/Makefile b/doc/examples/gtk/Makefile
new file mode 100644
index 000000000..10e069bb3
--- /dev/null
+++ b/doc/examples/gtk/Makefile
@@ -0,0 +1,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