@@ -2,16 +2,17 @@ CC := $(shell icu-config --cc)
22CFLAGS := -g $(shell icu-config --cflags)
33CPPFLAGS := $(shell icu-config --cppflags)
44LDFLAGS := $(CFLAGS) $(shell icu-config --ldflags --ldflags-icuio)
5+ghc := ghc
56
67all := FileRead FileRead_prof fileread_c
78
89all: $(all)
910
1011%: %.hs
11− ghc -O --make -o $@ $^
12+ $(ghc) -O --make -o $@ $^
1213
1314%_prof: %.hs
14− ghc -prof -auto-all -O --make -o $@ $^
15+ $(ghc) -prof -auto-all -O --make -o $@ $^
1516
1617clean:
1718 -rm -f *.hi *.o $(all)