on master help sign in
Make ghc overridable when testing
814558dBryan O'Sullivan
tests/benchmarks/Makefile+3−2
@@ -2,16 +2,17 @@ CC := $(shell icu-config --cc)
2CFLAGS := -g $(shell icu-config --cflags)
2CFLAGS := -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+ghc := ghc
5
6
6all := FileRead FileRead_prof fileread_c
7all := FileRead FileRead_prof fileread_c
7
8
8all: $(all)
9all: $(all)
9
10
10%: %.hs
11%: %.hs
11− ghc -O --make -o $@ $^
12+ $(ghc) -O --make -o $@ $^
12
13
13%_prof: %.hs
14%_prof: %.hs
14− ghc -prof -auto-all -O --make -o $@ $^
15+ $(ghc) -prof -auto-all -O --make -o $@ $^
15
16
16clean:
17clean:
17 -rm -f *.hi *.o $(all)
18 -rm -f *.hi *.o $(all)