File: gcc_make_epr_main_test.sh

package info (click to toggle)
epr-api 2.3~dev20150708-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,128 kB
  • sloc: ansic: 14,310; sh: 194; makefile: 146; xml: 125
file content (22 lines) | stat: -rw-r--r-- 459 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

if [ ! -f "../../../bin" ]
then
    mkdir ../../../bin
fi

if [ -f "../../../bin/epr_main_test" ]
then
    rm ../../../bin/epr_main_test
fi

gcc -lm ../../../bccunit/src/bccunit.c ../../../src/*.c ../../../src/test/epr_main_test.c -o ../../../bin/epr_main_test

if [ ! -f "../../../bin/epr_main_test" ]
then
    echo ""
    echo "Error:"
    echo "--> epr_main_test could not be compiled"
else
    echo "--> epr_main_test compiled successful"
fi