46fd6937437f54b907653d7cc0583b28f97f7056
[ghc-hetmet.git] / utils / hpc / Makefile
1 TOP=../..
2 include $(TOP)/mk/boilerplate.mk
3
4 HS_PROG         = hpc$(exeext)
5 INSTALL_PROGS  += $(HS_PROG)
6 HPC_LIB         = $(TOP)/libraries/hpc
7
8 # This causes libghccompat.a to be used:
9 include $(GHC_COMPAT_DIR)/compat.mk
10
11 # This is required because libghccompat.a must be built with
12 # $(GhcHcOpts) because it is linked to the compiler, and hence
13 # we must also build with $(GhcHcOpts) here:
14 SRC_HC_OPTS += $(GhcHcOpts) $(GhcStage1HcOpts)
15
16 binary-dist:
17         $(INSTALL_DIR)                $(BIN_DIST_DIR)/utils/hpc
18         $(INSTALL_DATA)    Makefile   $(BIN_DIST_DIR)/utils/hpc/
19         $(INSTALL_PROGRAM) $(HS_PROG) $(BIN_DIST_DIR)/utils/hpc/
20
21 include $(TOP)/mk/target.mk