xref: /titanic_51/usr/src/cmd/arcflush/Makefile (revision 21b926adb26b0bf23fe75045ed308af582303bd0)
1*21b926adSArne Jansen#
2*21b926adSArne Jansen# CDDL HEADER START
3*21b926adSArne Jansen#
4*21b926adSArne Jansen# The contents of this file are subject to the terms of the
5*21b926adSArne Jansen# Common Development and Distribution License (the "License").
6*21b926adSArne Jansen# You may not use this file except in compliance with the License.
7*21b926adSArne Jansen#
8*21b926adSArne Jansen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*21b926adSArne Jansen# or http://www.opensolaris.org/os/licensing.
10*21b926adSArne Jansen# See the License for the specific language governing permissions
11*21b926adSArne Jansen# and limitations under the License.
12*21b926adSArne Jansen#
13*21b926adSArne Jansen# When distributing Covered Code, include this CDDL HEADER in each
14*21b926adSArne Jansen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*21b926adSArne Jansen# If applicable, add the following below this CDDL HEADER, with the
16*21b926adSArne Jansen# fields enclosed by brackets "[]" replaced with your own identifying
17*21b926adSArne Jansen# information: Portions Copyright [yyyy] [name of copyright owner]
18*21b926adSArne Jansen#
19*21b926adSArne Jansen# CDDL HEADER END
20*21b926adSArne Jansen#
21*21b926adSArne Jansen
22*21b926adSArne JansenPROG= 			arcflush
23*21b926adSArne Jansen
24*21b926adSArne JansenOBJS=			arcflush.o
25*21b926adSArne JansenSRCS=			$(OBJS:%.o=%.c)
26*21b926adSArne Jansen
27*21b926adSArne Janseninclude ../Makefile.cmd
28*21b926adSArne Janseninclude ../Makefile.cmd.64
29*21b926adSArne Jansen
30*21b926adSArne JansenCPPFLAGS += -I $(SRC)/common/util
31*21b926adSArne JansenCPPFLAGS += -I $(SRC)/common/sys
32*21b926adSArne JansenCPPFLAGS += -I $(SRC)/uts/common
33*21b926adSArne JansenLINTFLAGS += -u
34*21b926adSArne Jansen
35*21b926adSArne JansenCERRWARN += -_gcc=-Wno-parentheses
36*21b926adSArne Jansen
37*21b926adSArne Jansen.KEEP_STATE:
38*21b926adSArne Jansen
39*21b926adSArne Jansenall: $(PROG)
40*21b926adSArne Jansen
41*21b926adSArne Janseninstall: all $(ROOTUSRSBINPROG)
42*21b926adSArne Jansen
43*21b926adSArne Jansen$(PROG):	$(OBJS)
44*21b926adSArne Jansen	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
45*21b926adSArne Jansen	$(POST_PROCESS)
46*21b926adSArne Jansen
47*21b926adSArne Jansen%.o:	$(SRC)/common/util/%.c
48*21b926adSArne Jansen	$(COMPILE.c) $(OUTPUT_OPTION) $<
49*21b926adSArne Jansen	$(POST_PROCESS_O)
50*21b926adSArne Jansen
51*21b926adSArne Jansenclean:
52*21b926adSArne Jansen	$(RM) $(OBJS)
53*21b926adSArne Jansen
54*21b926adSArne Jansenlint:	lint_SRCS
55*21b926adSArne Jansen
56*21b926adSArne Janseninclude ../Makefile.targ
57