aboutsummaryrefslogtreecommitdiffstats
path: root/misc/gtk/GNUmakefile
blob: 85f3ca41056f720f4067cf1c67de1622445efeaf (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

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)