b5faf09c4f
The other sdl demo backends all use OpenGL, which defeats the purpose of using SDL_Renderer for portabilty. This is maybe not as good as a full SDL_Renderer backend, but it is more flexible. For most applications software rendering of the UI is more than fast enough.
10 lines
239 B
Makefile
10 lines
239 B
Makefile
CFLAGS=`sdl2-config --cflags --libs` -std=c11 -Wall -O0 -g -fvisibility=hidden -Wno-unused `pkg-config SDL2_ttf --cflags --libs`
|
|
|
|
.PHONY: clean
|
|
|
|
demo: main.c sdl2surface_rawfb.h
|
|
$(CC) -o demo *.c $(CFLAGS) -lrt -lm
|
|
|
|
clean:
|
|
$(RM) demo
|