summaryrefslogtreecommitdiff
path: root/utils/hpc/Makefile
diff options
context:
space:
mode:
authorandy@galois.com <unknown>2007-06-25 07:09:43 +0000
committerandy@galois.com <unknown>2007-06-25 07:09:43 +0000
commit11d36d9f0256a3a3ef2934a776924f7c90afb6de (patch)
treeb91319044c29400f7e471e12274a86c6b832b345 /utils/hpc/Makefile
parent147c8d2ec47fab14fd0386e10e73f1a4da005442 (diff)
downloadhaskell-11d36d9f0256a3a3ef2934a776924f7c90afb6de.tar.gz
Adding hpc tools, as a single program.
Diffstat (limited to 'utils/hpc/Makefile')
-rw-r--r--utils/hpc/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/utils/hpc/Makefile b/utils/hpc/Makefile
new file mode 100644
index 0000000000..f8eb9e5b88
--- /dev/null
+++ b/utils/hpc/Makefile
@@ -0,0 +1,20 @@
+TOP=../..
+include $(TOP)/mk/boilerplate.mk
+
+HS_PROG = hpc$(exeext)
+INSTALL_PROGS += $(HS_PROG)
+HPC_LIB = $(TOP)/libraries/hpc
+
+SRCS += Trace/Hpc/Mix.hs Trace/Hpc/Tix.hs Trace/Hpc/Util.hs
+
+# workaround till we can force hpc to be built with stage-1.
+Trace/Hpc/%.hs: $(HPC_LIB)/Trace/Hpc/%.hs
+ mkdir -p Trace/Hpc
+ cp $(HPC_LIB)/$@ $@
+
+binary-dist:
+ $(INSTALL_DIR) $(BIN_DIST_DIR)/utils/hpc
+ $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/utils/hpc/
+ $(INSTALL_PROGRAM) $(HS_PROG) $(BIN_DIST_DIR)/utils/hpc/
+
+include $(TOP)/mk/target.mk