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