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