a59aa091fb1e7156091730a1f754ec26f3311e73
[ghc-hetmet.git] / utils / hpc / Makefile
1 TOP=../..
2 include $(TOP)/mk/boilerplate.mk
3
4 # We have two version: the inplace version compiled by the bootstrap compiler
5 #   and the install version compiled by the stage 1 compiler
6 ifeq "$(stage)" "2"
7 HS_PROG         = hpc$(exeext)
8 else
9 HS_PROG         = hpc-inplace$(exeext)
10 endif
11 INSTALL_PROGS  += $(HS_PROG)
12 HPC_LIB         = $(TOP)/libraries/hpc
13
14 include $(GHC_COMPAT_DIR)/compat.mk
15 SRC_HC_OPTS += $(PACKAGE_HPC) -cpp 
16
17 ifeq "$(ghc_ge_607)" "YES"
18 SRC_HC_OPTS += -package containers
19 endif
20
21 binary-dist:
22         $(INSTALL_DIR)                $(BIN_DIST_DIR)/utils/hpc
23         $(INSTALL_DATA)    Makefile   $(BIN_DIST_DIR)/utils/hpc/
24         $(INSTALL_PROGRAM) $(HS_PROG) $(BIN_DIST_DIR)/utils/hpc/
25
26 include $(TOP)/mk/target.mk