1a0ed5030SJason King# 2a0ed5030SJason King# This file and its contents are supplied under the terms of the 3a0ed5030SJason King# Common Development and Distribution License ("CDDL"), version 1.0. 4a0ed5030SJason King# You may only use this file in accordance with the terms of version 5a0ed5030SJason King# 1.0 of the CDDL. 6a0ed5030SJason King# 7a0ed5030SJason King# A full copy of the text of the CDDL should have accompanied this 8a0ed5030SJason King# source. A copy of the CDDL is also available via the Internet at 9a0ed5030SJason King# http://www.illumos.org/license/CDDL. 10a0ed5030SJason King# 11a0ed5030SJason King 12a0ed5030SJason King.KEEP_STATE: 13a0ed5030SJason King 14a0ed5030SJason KingPROG = ctfstrip 15a0ed5030SJason KingSRCS = \ 16a0ed5030SJason King ctfstrip.c 17a0ed5030SJason King 18a0ed5030SJason KingCFLAGS += $(CCVERBOSE) 19a0ed5030SJason Kinginclude $(SRC)/tools/Makefile.tools 20*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 21a0ed5030SJason King 22a0ed5030SJason KingOBJS = $(SRCS:%.c=%.o) 23a0ed5030SJason KingLINTFILES = $(SRCS:%.c=%.ln) 24a0ed5030SJason King 25a0ed5030SJason KingLINTFLAGS = -mnux -L$(ROOT)/usr/lib 26a0ed5030SJason King 27a0ed5030SJason King.NO_PARALLEL: 28a0ed5030SJason King.PARALLEL: $(OBJS) $(LINTFILES) 29a0ed5030SJason King 30a0ed5030SJason Kingall: $(PROG) 31a0ed5030SJason King 32a0ed5030SJason King$(PROG): $(OBJS) 33a0ed5030SJason King $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 34a0ed5030SJason King $(POST_PROCESS) 35a0ed5030SJason King 36a0ed5030SJason King$(ROOTONBLDMACHPROG): $(PROG) 37a0ed5030SJason King 38a0ed5030SJason Kinginstall: $(ROOTONBLDMACHPROG) 39a0ed5030SJason King 40a0ed5030SJason Kingclean: 41a0ed5030SJason King $(RM) $(OBJS) $(LINTFILES) 42a0ed5030SJason King 43a0ed5030SJason Kinglint: $(LINTFILES) 44a0ed5030SJason King $(LINT) $(LINTFLAGS) $(LINTFILES) $(LDLIBS) 45a0ed5030SJason King 46a0ed5030SJason Kinginclude $(SRC)/tools/Makefile.targ 47