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

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


for shared in yes no; do (
    cd "$shared"

    mk SHARED="$shared"
    mk SHARED="$shared" DESTDIR="$1" install install-pcilib
) done