File: build.netbsd

package info (click to toggle)
vfu 5.09-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,552 kB
  • sloc: cpp: 16,739; ansic: 2,605; perl: 678; makefile: 349; sh: 75
file content (26 lines) | stat: -rwxr-xr-x 621 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
#
# note: `-D__NetBSD__' is removed `CCDEF' -- it is defined by default...

echo "Compiling VSLIB..."
cd vslib
make CCDEF="-I${LOCALBASE}/include" LDDEF="-Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib"
if [ -e libvslib.a ]; then
  echo "VSLIB compiled ok."
else
  echo "VSLIB compilation failed..."
fi

cd ..

echo "Compiling VFU..."
cd vfu
make CCDEF="-I${LOCALBASE}/include -DFILENAME_CONF_GLOBAL0=\\\"${PREFIX}/etc/\\\" -DFILENAME_CONF_GLOBAL1=\\\"${PREFIX}/\\\" " LDDEF="-Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib"
if [ -e vfu ]; then
  echo "VFU compiled ok."
else
  echo "VFU compilation failed..."
fi

cd ..