From 173cac2fe990496fca2403aa3a4bfcbd6007e7e6 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 13 Dec 2016 08:15:26 -0800 Subject: *: 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. --- Makefile | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3