blob: 1dcde3ff0dcd00b00ca7d64ec91a8f2683225cf3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# SPDX-License-Identifier: zlib-acknowledgement
# (c) 2025 Wolfgang 'datenwolf' Draxinger
.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
|