summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c238b5d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+CFLAGS=-Wall -O3 $(shell pkg-config --cflags libdrm)
+LDFLAGS=-lm $(shell pkg-config --libs libdrm)
+
+all: rototiller32 rototiller64
+
+rototiller32: rototiller32.c
+ $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
+
+rototiller64: rototiller64.c
+ $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
+
+clean:
+ rm -f rototiller32 rototiller64
© All Rights Reserved