Makefile revision b3700b074e637f8c6991b70754c88a2cfffb246b
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# CDDL HEADER START
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# The contents of this file are subject to the terms of the
269473047d747f7815af570197e4ef7322d3632cEvan Yan# Common Development and Distribution License (the "License").
269473047d747f7815af570197e4ef7322d3632cEvan Yan# You may not use this file except in compliance with the License.
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
269473047d747f7815af570197e4ef7322d3632cEvan Yan# or http://www.opensolaris.org/os/licensing.
269473047d747f7815af570197e4ef7322d3632cEvan Yan# See the License for the specific language governing permissions
269473047d747f7815af570197e4ef7322d3632cEvan Yan# and limitations under the License.
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# When distributing Covered Code, include this CDDL HEADER in each
269473047d747f7815af570197e4ef7322d3632cEvan Yan# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
269473047d747f7815af570197e4ef7322d3632cEvan Yan# If applicable, add the following below this CDDL HEADER, with the
269473047d747f7815af570197e4ef7322d3632cEvan Yan# fields enclosed by brackets "[]" replaced with your own identifying
269473047d747f7815af570197e4ef7322d3632cEvan Yan# information: Portions Copyright [yyyy] [name of copyright owner]
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# CDDL HEADER END
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
269473047d747f7815af570197e4ef7322d3632cEvan Yan# Copyright 2014 Nexenta Systems, Inc. All rights reserved.
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan YanPROG = test-getdc
269473047d747f7815af570197e4ef7322d3632cEvan YanOBJS = getdc_main.o
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan YanSRCS = $(OBJS:%.o=%.c)
269473047d747f7815af570197e4ef7322d3632cEvan YanPOFILES = $(OBJS:.o=.po)
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan Yaninclude ../../Makefile.cmd
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan YanPOFILE = $(PROG)_all.po
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan YanLDLIBS += -ladutils -lnsl -lumem
269473047d747f7815af570197e4ef7322d3632cEvan YanLDFLAGS += -R'$$ORIGIN/../lib'
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan YanINCS += -I. -I../../../lib/libadutils/common
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan YanLINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan YanCFLAGS += $(CCVERBOSE)
269473047d747f7815af570197e4ef7322d3632cEvan Yan$(OBJS) := CPPFLAGS += $(INCS) -D_REENTRANT
269473047d747f7815af570197e4ef7322d3632cEvan Yan$(POFILE) := CPPFLAGS += $(INCS)
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan Yanlint_SRCS := CPPFLAGS += $(INCS)
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan Yan.KEEP_STATE:
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan Yanall: $(PROG)
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan Yan$(PROG): $(OBJS) FRC
269473047d747f7815af570197e4ef7322d3632cEvan Yan $(LINK.c) -g -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
$(POFILE): $(POFILES)
$(RM) $@
cat $(POFILES) > $@
install: all $(ROOTPROG)
clean:
$(RM) $(OBJS)
lint: lint_SRCS
include ../../Makefile.targ
FRC: