1*b3700b07SGordon Ross# 2*b3700b07SGordon Ross# CDDL HEADER START 3*b3700b07SGordon Ross# 4*b3700b07SGordon Ross# The contents of this file are subject to the terms of the 5*b3700b07SGordon Ross# Common Development and Distribution License (the "License"). 6*b3700b07SGordon Ross# You may not use this file except in compliance with the License. 7*b3700b07SGordon Ross# 8*b3700b07SGordon Ross# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*b3700b07SGordon Ross# or http://www.opensolaris.org/os/licensing. 10*b3700b07SGordon Ross# See the License for the specific language governing permissions 11*b3700b07SGordon Ross# and limitations under the License. 12*b3700b07SGordon Ross# 13*b3700b07SGordon Ross# When distributing Covered Code, include this CDDL HEADER in each 14*b3700b07SGordon Ross# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*b3700b07SGordon Ross# If applicable, add the following below this CDDL HEADER, with the 16*b3700b07SGordon Ross# fields enclosed by brackets "[]" replaced with your own identifying 17*b3700b07SGordon Ross# information: Portions Copyright [yyyy] [name of copyright owner] 18*b3700b07SGordon Ross# 19*b3700b07SGordon Ross# CDDL HEADER END 20*b3700b07SGordon Ross# 21*b3700b07SGordon Ross# 22*b3700b07SGordon Ross# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. 23*b3700b07SGordon Ross# Copyright 2014 Nexenta Systems, Inc. All rights reserved. 24*b3700b07SGordon Ross# 25*b3700b07SGordon Ross 26*b3700b07SGordon RossPROG = test-getdc 27*b3700b07SGordon RossOBJS = getdc_main.o 28*b3700b07SGordon Ross 29*b3700b07SGordon RossSRCS = $(OBJS:%.o=%.c) 30*b3700b07SGordon RossPOFILES = $(OBJS:.o=.po) 31*b3700b07SGordon Ross 32*b3700b07SGordon Rossinclude ../../Makefile.cmd 33*b3700b07SGordon Ross 34*b3700b07SGordon RossPOFILE = $(PROG)_all.po 35*b3700b07SGordon Ross 36*b3700b07SGordon RossLDLIBS += -ladutils -lnsl -lumem 37*b3700b07SGordon RossLDFLAGS += -R'$$ORIGIN/../lib' 38*b3700b07SGordon Ross 39*b3700b07SGordon RossINCS += -I. -I../../../lib/libadutils/common 40*b3700b07SGordon Ross 41*b3700b07SGordon RossLINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2 42*b3700b07SGordon Ross 43*b3700b07SGordon RossCFLAGS += $(CCVERBOSE) 44*b3700b07SGordon Ross$(OBJS) := CPPFLAGS += $(INCS) -D_REENTRANT 45*b3700b07SGordon Ross$(POFILE) := CPPFLAGS += $(INCS) 46*b3700b07SGordon Ross 47*b3700b07SGordon Rosslint_SRCS := CPPFLAGS += $(INCS) 48*b3700b07SGordon Ross 49*b3700b07SGordon Ross.KEEP_STATE: 50*b3700b07SGordon Ross 51*b3700b07SGordon Rossall: $(PROG) 52*b3700b07SGordon Ross 53*b3700b07SGordon Ross$(PROG): $(OBJS) FRC 54*b3700b07SGordon Ross $(LINK.c) -g -o $@ $(OBJS) $(LDLIBS) 55*b3700b07SGordon Ross $(POST_PROCESS) 56*b3700b07SGordon Ross 57*b3700b07SGordon Ross$(POFILE): $(POFILES) 58*b3700b07SGordon Ross $(RM) $@ 59*b3700b07SGordon Ross cat $(POFILES) > $@ 60*b3700b07SGordon Ross 61*b3700b07SGordon Rossinstall: all $(ROOTPROG) 62*b3700b07SGordon Ross 63*b3700b07SGordon Rossclean: 64*b3700b07SGordon Ross $(RM) $(OBJS) 65*b3700b07SGordon Ross 66*b3700b07SGordon Rosslint: lint_SRCS 67*b3700b07SGordon Ross 68*b3700b07SGordon Rossinclude ../../Makefile.targ 69*b3700b07SGordon Ross 70*b3700b07SGordon RossFRC: 71