aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 7778cce61c33e4b8eb0e856789b83461373aec64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CC=g++
LIBS=gtkmm-3.0
CFLAGS=-c -Wall
LDFLAGS=-pthread -lbible
SOURCES=header.cc main.cc mods.cc readerview.cc sword.cc
OBJECTS=$(SOURCES:.cc=.o)
EXECUTABLE=biblereader

all: $(SOURCES) $(EXECUTABLE) 

$(EXECUTABLE): $(OBJECTS) 
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@ `pkg-config $(LIBS) --libs`

.cc.o:
	$(CC) $(CFLAGS) $< -o $@ `pkg-config $(LIBS) --cflags`

clean:
	rm -rf *.o $(EXECUTABLE)