TOP=../..
include $(TOP)/mk/boilerplate.mk
+# Exclude for booting
+ifeq "$(stage)" "2"
+SRC_CC_OPTS += $(MACOSX_DEPLOYMENT_CC_OPTS)
+SRC_LD_OPTS += $(MACOSX_DEPLOYMENT_LD_OPTS)
+endif
+
C_SRCS=unlit.c
C_PROG=unlit
SRC_CC_OPTS += -O
#
INSTALL_LIBEXECS += $(C_PROG)
-binary-dist:
- $(INSTALL_DIR) $(BIN_DIST_DIR)/utils/unlit
- $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/utils/unlit/
- $(INSTALL_PROGRAM) $(C_PROG) $(BIN_DIST_DIR)/utils/unlit/
+BINDIST_EXTRAS += $(C_PROG)
+include $(TOP)/mk/bindist.mk
include $(TOP)/mk/target.mk