Mostly motivated by wanting to build with the ncurses in pkgsrc because it supports italics.
12 lines
237 B
Bash
Executable File
12 lines
237 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
libs='libcrypto libtls ncursesw'
|
|
pkg-config --print-errors $libs
|
|
|
|
cat >config.mk <<EOF
|
|
CFLAGS += $(pkg-config --cflags $libs)
|
|
LDFLAGS += $(pkg-config --libs-only-L $libs)
|
|
LDLIBS = $(pkg-config --libs-only-l $libs)
|
|
EOF
|