-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit-at
More file actions
executable file
·30 lines (22 loc) · 790 Bytes
/
init-at
File metadata and controls
executable file
·30 lines (22 loc) · 790 Bytes
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
27
28
29
#!/bin/sh
#####################################################################
DEBUG_PREFIX=$HOME/dbg
DEBUG_CPPFLAGS=-DDEBUG
DEBUG_CXXFLAGS="-Wall -g -O0"
#####################################################################
rm -fR release debug
echo "==== Creating autotools files... ======================================"
autoreconf --install
echo "==== Configuring release target... ===================================="
mkdir release
cd release
../configure -q
cd ..
echo "==== Configuring debug target... ======================================"
mkdir debug
cd debug
echo "PREFIX = ${DEBUG_PREFIX}"
echo "CPPFLAGS = ${DEBUG_CPPFLAGS}"
echo "CXXFLAGS = ${DEBUG_CXXFLAGS}"
../configure -q --prefix=${DEBUG_PREFIX} CPPFLAGS=${DEBUG_CPPFLAGS} CXXFLAGS="${DEBUG_CXXFLAGS}"
cd ..