File: build-lib

package info (click to toggle)
libssw 1.1-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 28,616 kB
  • sloc: ansic: 14,533; cpp: 493; python: 382; java: 136; makefile: 90; sh: 29
file content (15 lines) | stat: -rwxr-xr-x 346 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# autopkgtest check: Build and run test tools against libssw
# Author: Sascha Steinbiss <satta@debian.org>
set -e

SRC=$(pwd)/src
WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cd $WORKDIR

gcc -o example_c $SRC/example.c -lm -lz -lssw
./example_c

g++ -o example_cpp $SRC/example.cpp -lm -lz -lssw
./example_cpp