aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-11-05 19:57:24 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-11-05 19:57:24 +0000
commit702984185cbd8fb807e5d540f668072d4843e293 (patch)
tree4fb21f977a8052b85dca729e462d83641b1b1815 /Makefile
downloadimv-702984185cbd8fb807e5d540f668072d4843e293.tar.gz
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..87b2fb1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+.PHONY: clean
+
+CFLAGS = -g -W -Wall -std=c11 `sdl2-config --cflags`
+LDFLAGS = `sdl2-config --libs`
+
+TARGET = imv
+SOURCES = $(wildcard *.c)
+OBJECTS = $(SOURCES:%.c=%.o)
+
+$(TARGET): $(OBJECTS)
+ $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
+
+clean:
+ $(RM) $(TARGET) $(OBJECTS)