aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-12-08 17:11:12 +0000
committerlloyd <[email protected]>2006-12-08 17:11:12 +0000
commita8088560d1831f82a6fa39083aab8075a22a65b0 (patch)
tree12332f2c855b68275d52e6e8f409b226b252d6b9
parentf4dc53a53647d419095e84930c521269850cea34 (diff)
Convert the makefile for the GTK+ example to a generic Unix makefile
-rw-r--r--misc/gtk/GNUmakefile24
-rw-r--r--misc/gtk/Makefile18
2 files changed, 18 insertions, 24 deletions
diff --git a/misc/gtk/GNUmakefile b/misc/gtk/GNUmakefile
deleted file mode 100644
index 85f3ca410..000000000
--- a/misc/gtk/GNUmakefile
+++ /dev/null
@@ -1,24 +0,0 @@
-
-CC = g++
-
-LIBS=$(shell botan-config --libs) $(shell pkg-config --libs gtk+-2.0)
-IFLAGS=$(shell botan-config --cflags) $(shell pkg-config --cflags gtk+-2.0)
-FLAGS=-Wall -W $(IFLAGS)
-
-SOURCE=$(wildcard *.cpp)
-HEADERS=$(wildcard *.h)
-
-OBJS=$(patsubst %.cpp,%.o,$(SOURCE))
-
-APP=dsa
-
-all: $(APP)
-
-$(APP): $(OBJS)
- $(CC) $(OBJS) $(LIBS) -o $(APP)
-
-%.o: %.cpp $(HEADERS)
- $(CC) $(FLAGS) -c $<
-
-clean:
- rm -f $(APP) $(OBJS)
diff --git a/misc/gtk/Makefile b/misc/gtk/Makefile
new file mode 100644
index 000000000..d436244a4
--- /dev/null
+++ b/misc/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