xref: /titanic_50/usr/src/lib/getloginx/Makefile.com (revision 0a1278f26ea4b7c8c0285d4f2d6c5b680904aa01)
1*0a1278f2SGary Mills#
2*0a1278f2SGary Mills# CDDL HEADER START
3*0a1278f2SGary Mills#
4*0a1278f2SGary Mills# The contents of this file are subject to the terms of the
5*0a1278f2SGary Mills# Common Development and Distribution License (the "License").
6*0a1278f2SGary Mills# You may not use this file except in compliance with the License.
7*0a1278f2SGary Mills#
8*0a1278f2SGary Mills# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*0a1278f2SGary Mills# or http://www.opensolaris.org/os/licensing.
10*0a1278f2SGary Mills# See the License for the specific language governing permissions
11*0a1278f2SGary Mills# and limitations under the License.
12*0a1278f2SGary Mills#
13*0a1278f2SGary Mills# When distributing Covered Code, include this CDDL HEADER in each
14*0a1278f2SGary Mills# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*0a1278f2SGary Mills# If applicable, add the following below this CDDL HEADER, with the
16*0a1278f2SGary Mills# fields enclosed by brackets "[]" replaced with your own identifying
17*0a1278f2SGary Mills# information: Portions Copyright [yyyy] [name of copyright owner]
18*0a1278f2SGary Mills#
19*0a1278f2SGary Mills# CDDL HEADER END
20*0a1278f2SGary Mills#
21*0a1278f2SGary Mills#
22*0a1278f2SGary Mills# Copyright (c) 2013 Gary Mills
23*0a1278f2SGary Mills#
24*0a1278f2SGary Mills# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
25*0a1278f2SGary Mills# Use is subject to license terms.
26*0a1278f2SGary Mills#
27*0a1278f2SGary Mills
28*0a1278f2SGary MillsLIBRARY = getloginx.a
29*0a1278f2SGary MillsVERS = .1
30*0a1278f2SGary Mills
31*0a1278f2SGary MillsOBJECTS = getloginx.o
32*0a1278f2SGary Mills
33*0a1278f2SGary Mills# include library definitions
34*0a1278f2SGary Millsinclude ../../Makefile.lib
35*0a1278f2SGary Mills
36*0a1278f2SGary MillsSRCDIR = ../common
37*0a1278f2SGary Mills
38*0a1278f2SGary MillsLIBS = $(DYNLIB)
39*0a1278f2SGary MillsLDLIBS += -lc
40*0a1278f2SGary MillsCFLAGS += $(CCVERBOSE)
41*0a1278f2SGary MillsCFLAGS64 += $(CCVERBOSE)
42*0a1278f2SGary MillsCPPFLAGS += -I../common -I../../common/inc -D_REENTRANT
43*0a1278f2SGary MillsDYNFLAGS += $(ZINTERPOSE)
44*0a1278f2SGary Mills
45*0a1278f2SGary Mills.KEEP_STATE:
46*0a1278f2SGary Mills
47*0a1278f2SGary Millsall: $(LIBS)
48*0a1278f2SGary Mills
49*0a1278f2SGary Millslint:
50*0a1278f2SGary Mills	$(LINT.c) $(SRCS) $(LDLIBS)
51*0a1278f2SGary Mills
52*0a1278f2SGary Mills# include library targets
53*0a1278f2SGary Millsinclude ../../Makefile.targ
54*0a1278f2SGary Mills
55*0a1278f2SGary Millspics/%.o: ../common/%.c
56*0a1278f2SGary Mills	$(COMPILE.c) -o $@ $<
57*0a1278f2SGary Mills	$(POST_PROCESS_O)
58