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