aboutsummaryrefslogtreecommitdiff
path: root/extra/pciutils/build
blob: 24867e82ace1c5631955334fbe64cb0e9c48f8e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh -e

mk() {
    make \
        CC="${CC:-cc}" \
        OPT="$CFLAGS -fPIC" \
        ZLIB=yes \
        PREFIX=/usr \
        SBINDIR=/usr/bin \
        SHAREDIR=/usr/share/hwdata \
        LDFLAGS="$LDFLAGS -static" \
        "$@"
}

mk
mk DESTDIR="$1" install install-lib