From a8088560d1831f82a6fa39083aab8075a22a65b0 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 8 Dec 2006 17:11:12 +0000 Subject: Convert the makefile for the GTK+ example to a generic Unix makefile --- misc/gtk/GNUmakefile | 24 ------------------------ misc/gtk/Makefile | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 24 deletions(-) delete mode 100644 misc/gtk/GNUmakefile create mode 100644 misc/gtk/Makefile 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 -- cgit v1.2.3