aboutsummaryrefslogtreecommitdiffstats
path: root/games/fxsudoku/files/config.freebsd
blob: 3bb74ef38de6df004fe8dbc46f9ffa793cf487a9 (plain) (blame)
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
30
31
32
33
34
35
36
37
38
39
40
41
#----------------------------------------------------------------------------------------------------------------
# Basic File extensions
export BINEXT=""                     # Executable Extension
export LIBEXT=".a"                   # Static Library Extension
export DLLEXT=".so"                  # Dynamic Library Extension
export OBJEXT=".o"                   # Object Extension
export LIBPREFIX="lib"               # Standard Library Prefix
export LIBDIR="lib"                  # Name of the library directory
export DEFAULT_PREFIX="/usr/local"

# Compiler and Linker
export CC="cc"                        # C Compiler
export CXX="c++"                      # C++ Compiler
export LINK=$CXX                      # Executable Linker
export DLLLINK="$CXX -shared"         # Dynamic Library Linker
export LIBLINK="ar cru"               # Static Library Linker
export DLLRPATH="-Wl,-rpath "         # Search Path for Dynamic Libs

# Compiler and Linker Flags
export OUTPUTOBJ="-o"                 # Compiler flag to specify output object filename
export OUTPUTBIN="-o "                # Compiler flag to specify output executable filename
export PICFLAG=""                     # Compiler flag to generate position independent code

if [ "$DEFS" = "-DDEBUG" ] ; then
  export CFLAGS="${CFLAGS:--Wall -g -pipe }"
    export CXXFLAGS="${CXXFLAGS:--Wall -g -pipe}"
    export LDFLAGS=""
elif [ "$DEFS" = "-DNDEBUG" ] ; then
    export CFLAGS="${CFLAGS:--Wall -O3 -pipe}"
    export CXXFLAGS="${CXXFLAGS:--Wall -O3 -pipe}"
    export LDFLAGS="-s"
else
    export CFLAGS="${CFLAGS:--Wall -pipe}"
    export CXXFLAGS="${CXXFLAGS:--Wall -pipe}"
    export LDFLAGS=""
fi

export CPPFLAGS="-I./include ${CPPFLAGS}"
export LIBS=""
export DEFS="${DEFS} -DLINUX"
#----------------------------------------------------------------------------------------------------------------