File: build.netbsd

package info (click to toggle)
vfu 4.06-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,092 kB
  • ctags: 2,184
  • sloc: cpp: 14,482; ansic: 4,091; perl: 581; makefile: 539; sh: 57
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 ..