summaryrefslogtreecommitdiff
path: root/Makefile
blob: e4d2f8c7ffd4f6ca1b09fbd4feabeb0072db53d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.PHONY: all clean allclean

all: glsldebayer

pixels.raw: pixels.png
	magick $< GRAY:$@

blob.o: pixels.raw debayer.vs.glsl debayer.fs.glsl
	$(LD) -z noexecstack -r -b binary -o $@ $?
	objcopy -R '*ABS*' --rename-section .data=.lrodata,contents,alloc,load,readonly,data $@ $@

glsldebayer: LDFLAGS += -lm -lSDL2 -lEGL -lGLESv2
glsldebayer: glsldebayer.o blob.o

clean:
	-rm *.o glsldebayer

allclean: clean
	-rm *.raw