Adding hpc tools, as a single program.
[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 SRCS += Trace/Hpc/Mix.hs Trace/Hpc/Tix.hs Trace/Hpc/Util.hs
9
10 # workaround till we can force hpc to be built with stage-1.
11 Trace/Hpc/%.hs: $(HPC_LIB)/Trace/Hpc/%.hs
12         mkdir -p Trace/Hpc
13         cp $(HPC_LIB)/$@ $@
14
15 binary-dist:
16         $(INSTALL_DIR)                $(BIN_DIST_DIR)/utils/hpc
17         $(INSTALL_DATA)    Makefile   $(BIN_DIST_DIR)/utils/hpc/
18         $(INSTALL_PROGRAM) $(HS_PROG) $(BIN_DIST_DIR)/utils/hpc/
19
20 include $(TOP)/mk/target.mk