summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2016-12-13 08:15:26 -0800
committerVito Caputo <vcaputo@gnugeneration.com>2016-12-13 08:15:26 -0800
commit173cac2fe990496fca2403aa3a4bfcbd6007e7e6 (patch)
tree4600607eb8c12af034b2bf29eec4f8207f9413c4 /Makefile
parentcaa97fbe3e14d9ab9d377369ff9c2e1ee5aa2e18 (diff)
*: drop original rototiller, update Makefile
This should produce a rototiller executable with all the renderers available, and the ability to choose the DRM card and connector.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index c238b5d..13eef36 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,11 @@
-CFLAGS=-Wall -O3 $(shell pkg-config --cflags libdrm)
-LDFLAGS=-lm $(shell pkg-config --libs libdrm)
+CFLAGS=-D_GNU_SOURCE -Wall -O3 -ffast-math -pthread $(shell pkg-config --cflags libdrm) -I.
+LDFLAGS=-lm -pthread $(shell pkg-config --libs libdrm)
+SRC=rototiller.c modules/ray/*.c modules/roto/roto.c modules/sparkler/*.c drmsetup.c fb.c fps.c util.c
-all: rototiller32 rototiller64
+all: rototiller
-rototiller32: rototiller32.c
- $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
-
-rototiller64: rototiller64.c
- $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
+rototiller: $(SRC) Makefile modules/ray/*.h modules/roto/roto.h modules/sparkler/*.h drmsetup.h fb.h fps.h util.h
+ $(CC) -o $@ $(SRC) $(CFLAGS) $(LDFLAGS)
clean:
- rm -f rototiller32 rototiller64
+ rm -f rototiller
© All Rights Reserved