diff options
| author | datenwolf <@datenwolf.net> | 2025-07-03 00:19:42 +0200 |
|---|---|---|
| committer | datenwolf <@datenwolf.net> | 2025-07-03 00:19:42 +0200 |
| commit | 1a9569912879f52c69a6f301719e5b543fe86cc6 (patch) | |
| tree | 58fa880ad2a138f302c75a328bd6e27a89e85773 /Makefile | |
| download | glsldebayer-1a9569912879f52c69a6f301719e5b543fe86cc6.tar.gz glsldebayer-1a9569912879f52c69a6f301719e5b543fe86cc6.tar.bz2 | |
base commit, SDL2, EGL and OpenGL-ES 2 setup, texture upload and basic de-Bayer
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e4d2f8c --- /dev/null +++ b/Makefile @@ -0,0 +1,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 |
