aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYour Name <you@example.com>2020-11-07 09:30:53 -0500
committerYour Name <you@example.com>2020-11-07 09:30:53 -0500
commit89a449c2ab9d736c1f03c78b745e814424e01360 (patch)
tree25c4d03bd39a5ddbe1b7f28713e82bf174a29216 /Makefile
downloadbiblereader-89a449c2ab9d736c1f03c78b745e814424e01360.tar.gz
biblereader-89a449c2ab9d736c1f03c78b745e814424e01360.tar.bz2
biblereader-89a449c2ab9d736c1f03c78b745e814424e01360.zip
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7778cce
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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)