Tell make how to build profiled Haskell code
--HG--
extra : convert_revision : eebb8271ff3973ba951c9067149ff08e1c20f211
commite9bc6679658a84fab11c3fa58d1af7e8466147e1
authorBryan O'Sullivan <bos@serpentine.com>
dateTue 17 Aug 2010, 03:31 (16 years ago)
parent8e4d236
tests/benchmarks/Makefile+4−1
@@ -3,12 +3,15 @@ CFLAGS := -g $(shell icu-config --cflags)
33CPPFLAGS := $(shell icu-config --cppflags)
44LDFLAGS := $(CFLAGS) $(shell icu-config --ldflags --ldflags-icuio)
55
6−all := FileRead fileread_c
6+all := FileRead FileRead_prof fileread_c
77
88all: $(all)
99
1010%: %.hs
1111 ghc -O --make -o $@ $^
1212
13+%_prof: %.hs
14+ ghc -prof -auto-all -O --make -o $@ $^
15+
1316clean:
1417 -rm -f *.hi *.o $(all)