about summary refs log tree commit diff
path: root/configure
blob: ba1718cdc8d73722dbfc19e23ddc00a58bfeefb4 (plain) (blame)
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