Mac OS X deployment target: piping opts through Makefiles
[ghc-hetmet.git] / utils / prof / cgprof / Makefile
1 TOP=../../..
2 include $(TOP)/mk/boilerplate.mk
3
4 # Exclude for booting
5 ifeq "$(stage)" "2"
6 SRC_CC_OPTS += $(MACOSX_DEPLOYMENT_CC_OPTS)
7 SRC_LD_OPTS += $(MACOSX_DEPLOYMENT_LD_OPTS)
8 endif
9
10 C_PROG = cgprof
11 INSTALL_LIBEXECS=$(C_PROG)
12
13 SRC_CC_OPTS += -Wall -I$(GHC_INCLUDE_DIR)
14
15 binary-dist:
16         $(INSTALL_DIR)            $(BIN_DIST_DIR)/utils/prof/cgprof
17         $(INSTALL_DATA) Makefile  $(BIN_DIST_DIR)/utils/prof/cgprof/
18         $(INSTALL_DATA) $(C_PROG) $(BIN_DIST_DIR)/utils/prof/cgprof/
19
20 include $(TOP)/mk/target.mk