8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / cmd-inet / usr.bin / rdist / Makefile
blob358b559a48cdbf893c2fe8eedadbbd90b9444fab
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # cmd/cmd-inet/usr.bin/rdist/Makefile
27 PROG= rdist
28 OBJS= docmd.o expand.o lookup.o main.o server.o
29 KCMDOBJS= kcmd.o
30 YOBJS= gram.o
31 SRCS= $(OBJS:.o=.c) $(CMDINETCOMMONDIR)/$(KCMDOBJS:.o=.c)
32 YSRCS= $(YOBJS:.o=.y)
34 include ../../../Makefile.cmd
35 include ../../Makefile.cmd-inet
37 CPPFLAGS += -DSYSV -DSTRNET -DBSD_COMP
38 LDLIBS += -lsocket -lnsl
39 LDFLAGS += $(MAPFILE.NGB:%=-M%)
41 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
42 LDFLAGS += $(KRUNPATH) -L$(ROOT)$(KLIBDIR_DO) -L$(ROOT)$(KLIBDIR_GL)
43 LDLIBS += -lnsl -lmech_krb5
44 CPPFLAGS += -I. -I$(CMDINETCOMMONDIR) \
45 -I$(SRC)/lib/gss_mechs/mech_krb5 \
46 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
47 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
48 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5
50 CERRWARN += -_gcc=-Wno-implicit-function-declaration
51 CERRWARN += -_gcc=-Wno-unused-variable
52 CERRWARN += -_gcc=-Wno-unused-function
53 CERRWARN += -_gcc=-Wno-unused-label
54 CERRWARN += -_gcc=-Wno-parentheses
55 CERRWARN += -_gcc=-Wno-clobbered
56 CERRWARN += -_gcc=-Wno-uninitialized
58 ROOTSYMLINK= $(ROOT)/usr/ucb/$(PROG)
60 # conditional assignments
61 $(ROOTPROG) := FILEMODE= 04555
63 .KEEP_STATE:
65 all: $(PROG)
67 $(PROG): $(OBJS) $(KCMDOBJS) $(YOBJS) $(MAPFILE.NGB)
68 $(LINK.c) $(OBJS) $(KCMDOBJS) $(YOBJS) -o $@ $(LDLIBS)
69 $(POST_PROCESS)
71 install: all $(ROOTPROG) $(ROOTSYMLINK)
73 $(ROOTSYMLINK):
74 $(RM) $@; $(SYMLINK) ../bin/$(PROG) $@
76 clean:
77 $(RM) $(OBJS) $(KCMDOBJS) $(YOBJS)
79 lint:
80 $(YACC.y) $(YSRCS)
81 $(LINT.c) $(SRCS) y.tab.c $(LDLIBS)
82 $(RM) y.tab.c
85 include ../../../Makefile.targ