summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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