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)