File: link-with-shared

package info (click to toggle)
libalog 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 748 kB
  • ctags: 33
  • sloc: ada: 4,337; makefile: 145; sh: 19; ansic: 5
file content (22 lines) | stat: -rw-r--r-- 305 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
set -C -e -f -u
TOP_SOURCE_DIR="`pwd`"
cd "$ADTTMP"

cat > a.gpr <<EOF
with "alog";
project A is
   for Main use ("main.adb");
end A;
EOF
cat > main.adb <<EOF
with Alog;
procedure Main is
   Level : constant Alog.Log_Level := Alog.Info;
begin
   null;
end Main;
EOF

gnatmake -q -P a.gpr
./main