PKGS = binary QuickCheck haskell98 old-time base array mtl network bytestring old-locale time
PKGSPEC = $(PKGS:%=-package %)
GHC = ghc -hide-all-packages $(PKGSPEC) -O -funbox-strict-fields

HC = ghc -Wall $(PKGSPEC)


gps: FORCE
	$(GHC) --make -o gps -main-is Main.main Main.hs

FORCE:

gps_p: FORCE
	$(GHC) --make -o gps_p -main-is Main.main -prof -auto-all Main.hs -hisuf p_hi -osuf p_o

clean:
	rm -f gps */*.hi */*.o gps_p */*.p_hi */*.p_o
