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