]> git.immae.eu Git - github/fretlink/blazeT.git/blame - Makefile
Fix warning on simplifiable typeclass
[github/fretlink/blazeT.git] / Makefile
CommitLineData
675085c2
JG
1# Copyright Jasper Van der Jeugt 2010
2
3# All rights reserved.
4
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are met:
7
8# * Redistributions of source code must retain the above copyright
9# notice, this list of conditions and the following disclaimer.
10
11# * Redistributions in binary form must reproduce the above
12# copyright notice, this list of conditions and the following
13# disclaimer in the documentation and/or other materials provided
14# with the distribution.
15
16# * Neither the name of Jasper Van der Jeugt nor the names of other
17# contributors may be used to endorse or promote products derived
18# from this software without specific prior written permission.
19
20# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
32################################################################################
33# Configuration
34################################################################################
35
36GHC = cabal exec -- ghc
37GHCI = ghci
38GHC_FLAGS = -O2 -fforce-recomp -ibenchmarks -isrc -itests -fsimpl-tick-factor=200
39
40BENCHMARK_FLAGS = --resamples 10000
41
42################################################################################
43# Benchmarks
44################################################################################
45
46benchmark:
47 $(GHC) $(GHC_FLAGS) --make -main-is Benchmarks.RunHtmlBenchmarks src/Benchmarks/RunHtmlBenchmarks.hs
48 ./src/Benchmarks/RunHtmlBenchmarks $(BENCHMARK_FLAGS) -o report.html
49
50benchmark-bigtable-non-haskell:
51 ruby benchmarks/bigtable/erb.rb
52 ruby benchmarks/bigtable/erubis.rb
53 php -n benchmarks/bigtable/php.php
54
55
56################################################################################
57# generate combinators
58################################################################################
59
60combinators:
61 runghc -isrc Util.GenerateHtmlTCombinators