blob: e0873e3fc1b9fd7f49331fc528eb680937cf8633 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
set -eu
exec >config.mk
libs='libtls sqlite3'
pkg-config --print-errors $libs
cat <<EOF
CFLAGS += $(pkg-config --cflags $libs)
CFLAGS += -D'SQLITE3_BIN="$(pkg-config --variable=exec_prefix sqlite3)/bin/sqlite3"'
LDFLAGS += $(pkg-config --libs-only-L $libs)
LDLIBS = $(pkg-config --libs-only-l sqlite3)
LDLIBS.litterbox = $(pkg-config --libs-only-l $libs)
INSTALLS =
EOF
if [ "$(uname)" = 'Linux' ]; then
cat <<-EOF
CFLAGS += -D_GNU_SOURCE
EOF
fi
|