1 2 3 4 5 6 7 8
#!/bin/sh set -eu cflags=$(pkg-config --cflags sdl2) ldlibs=$(pkg-config --libs sdl2) cat > config.mk << EOF CFLAGS += ${cflags} LDLIBS += ${ldlibs} EOF