on master help sign in
Tell make how to build profiled Haskell code
e9bc667Bryan O'Sullivan
tests/benchmarks/Makefile+4−1
@@ -3,12 +3,15 @@ CFLAGS := -g $(shell icu-config --cflags)
3CPPFLAGS := $(shell icu-config --cppflags)
3CPPFLAGS := $(shell icu-config --cppflags)
4LDFLAGS := $(CFLAGS) $(shell icu-config --ldflags --ldflags-icuio)
4LDFLAGS := $(CFLAGS) $(shell icu-config --ldflags --ldflags-icuio)
5
5
6−all := FileRead fileread_c
6+all := FileRead FileRead_prof fileread_c
7
7
8all: $(all)
8all: $(all)
9
9
10%: %.hs
10%: %.hs
11 ghc -O --make -o $@ $^
11 ghc -O --make -o $@ $^
12
12
13+%_prof: %.hs
14+ ghc -prof -auto-all -O --make -o $@ $^
15+
13clean:
16clean:
14 -rm -f *.hi *.o $(all)
17 -rm -f *.hi *.o $(all)