Fix typo
[rofl0r-order-pp.git] / example / lambda / Build
blob7e095dfdd4451180eeae61033b980100e8a99b72
1 #!/bin/bash
3 # (C) Copyright Vesa Karvonen 2004.
5 # Distributed under the Boost Software License, Version 1.0.
6 # (See accompanying file LICENSE.)
8 if cpp -I ../../inc/ \
9 -I ../../../chaos-pp/ \
10 checked_malloc.c &> /dev/null ; then
11 gc_option='-lgc'
12 else
13 echo "Warning: Not using GC."
14 gc_option='-DCHECKED_MALLOC_NO_GC=1'
17 gcc -std=c99 \
18 -Wall -Werror \
19 -pedantic-errors \
20 -Os \
21 -D ORDER_PP_DEBUG \
22 -I ../../inc/ \
23 -I ../../../chaos-pp/ \
24 $gc_option \
25 -o lambda \
26 *.c && \
27 strip lambda