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 = nltest 27*b3700b07SGordon RossCLIENTOBJS = nltest.o 28*b3700b07SGordon Ross 29*b3700b07SGordon RossCLIENTSRCS = $(CLIENTOBJS:%.o=%.c) 30*b3700b07SGordon RossPOFILES = $(CLIENTOBJS:.o=.po) 31*b3700b07SGordon RossOBJS = $(CLIENTOBJS) 32*b3700b07SGordon RossSRCS = $(CLIENTSRCS) 33*b3700b07SGordon Ross 34*b3700b07SGordon Rossinclude ../../Makefile.cmd 35*b3700b07SGordon Ross 36*b3700b07SGordon RossPOFILE = $(PROG)_all.po 37*b3700b07SGordon RossLDLIBS += -lads -luuid 38*b3700b07SGordon RossFILEMODE = 0555 39*b3700b07SGordon Ross 40*b3700b07SGordon RossINCS += -I. 41*b3700b07SGordon Ross 42*b3700b07SGordon RossCFLAGS += $(CCVERBOSE) 43*b3700b07SGordon Ross$(OBJS) := CPPFLAGS += $(INCS) -D_REENTRANT 44*b3700b07SGordon Ross$(POFILE) := CPPFLAGS += $(INCS) 45*b3700b07SGordon Ross 46*b3700b07SGordon Rosslint_SRCS := CPPFLAGS += $(INCS) 47*b3700b07SGordon Ross 48*b3700b07SGordon Ross.KEEP_STATE: 49*b3700b07SGordon Ross 50*b3700b07SGordon Rossall: $(PROG) 51*b3700b07SGordon Ross 52*b3700b07SGordon Ross$(PROG): $(OBJS) 53*b3700b07SGordon Ross $(LINK.c) -g -o $@ $(OBJS) $(LDLIBS) 54*b3700b07SGordon Ross $(POST_PROCESS) 55*b3700b07SGordon Ross 56*b3700b07SGordon Ross$(POFILE): $(POFILES) 57*b3700b07SGordon Ross $(RM) $@ 58*b3700b07SGordon Ross cat $(POFILES) > $@ 59*b3700b07SGordon Ross 60*b3700b07SGordon Rossinstall: all $(ROOTUSRSBINPROG) 61*b3700b07SGordon Ross 62*b3700b07SGordon Rossclean: 63*b3700b07SGordon Ross $(RM) $(OBJS) 64*b3700b07SGordon Ross 65*b3700b07SGordon Rosslint: lint_SRCS 66*b3700b07SGordon Ross 67*b3700b07SGordon Rossinclude ../../Makefile.targ 68