summaryrefslogtreecommitdiff
path: root/utils/unlit/Makefile
blob: 6323129511fed725b01d39ceca4e2b7b4674aac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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

# Get it over with!
boot :: all

#
# Install unlit in lib/
#
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/

include $(TOP)/mk/target.mk