xref: /titanic_41/usr/src/cmd/bnu/Makefile.inc (revision 7535ae1914017b0e648abd7a139aca709fa82be3)
1#
2# CDDL HEADER START
3#
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.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26SRCS =		account.c anlwrk.c bnuconvert.c callers.c		\
27		chremdir.c cntrl.c conn.c cpmv.c ct.c			\
28		cu.c dial.c dio.c dkbreak.c				\
29		dkdial.c dkerr.c dkminor.c dtnamer.c eio.c		\
30		expfile.c fio.c gename.c getargs.c getopt.c getprm.c	\
31		getpwinfo.c gio.c gnamef.c gnxseq.c grades.c		\
32		gtcfile.c gwd.c imsg.c in.uucpd.c interface.c limits.c	\
33		line.c logent.c mailst.c perfstat.c			\
34		permission.c pk0.c pk1.c pkdefs.c security.c		\
35		setmode.c shio.c statlog.c stoa.c strpbrk.c	\
36		strsave.c sysfiles.c systat.c ulockf.c unknown.c	\
37		utility.c uucheck.c uucico.c uucleanup.c uucp.c		\
38		uucpdefs.c uucpname.c uudecode.c uuencode.c		\
39		uuglist.c uuname.c uusched.c uustat.c uux.c		\
40		uuxqt.c versys.c xio.c xqt.c				\
41		../chmod/common.c
42
43CERRWARN	+= -_gcc=-Wno-parentheses
44CERRWARN	+= -_gcc=-Wno-char-subscripts
45CERRWARN	+= -_gcc=-Wno-unused-variable
46CERRWARN	+= -_gcc=-Wno-uninitialized
47CERRWARN	+= -_gcc=-Wno-extra
48CERRWARN	+= -_gcc=-Wno-implicit-function-declaration
49
50TLILIB =	-lnsl -lsocket
51PAMLIB =        -lpam
52
53# use this if you don't have strpbrk/getopt in libc
54# STRPBRK =	strpbrk.o
55# GETOPT =	getopt.o
56
57PROTOCOLOBJS =	dio.o eio.o gio.o xio.o fio.o
58
59OTHEROBJS =	utility.o cpmv.o expfile.o gename.o getpwinfo.o \
60		ulockf.o xqt.o logent.o gnamef.o systat.o	\
61		sysfiles.o strsave.o $(GETOPT)
62
63uucp \
64uucp.cat :=	POBJS =	uucpdefs.o uucp.o gwd.o permission.o getargs.o	\
65			getprm.o uucpname.o versys.o gtcfile.o grades.o	\
66			$(STRPBRK) chremdir.o mailst.o $(OTHEROBJS)
67
68uux \
69uux.cat :=	POBJS =	uucpdefs.o uux.o mailst.o gwd.o permission.o	\
70			getargs.o getprm.o uucpname.o versys.o gtcfile.o \
71			grades.o chremdir.o $(STRPBRK) $(OTHEROBJS)
72
73uuxqt \
74uuxqt.cat :=	POBJS =	uucpdefs.o uuxqt.o mailst.o getprm.o uucpname.o \
75			permission.o getargs.o gtcfile.o grades.o	\
76			$(STRPBRK) shio.o chremdir.o account.o		\
77			perfstat.o statlog.o security.o limits.o	\
78			$(OTHEROBJS)
79
80uucico \
81uucico.cat :=	POBJS =	uucpdefs.o uucico.o conn.o callers.o cntrl.o	\
82			pk0.o pk1.o anlwrk.o permission.o getargs.o	\
83			gnxseq.o pkdefs.o imsg.o gtcfile.o grades.o	\
84			mailst.o uucpname.o line.o chremdir.o		\
85			interface.o statlog.o stoa.o			\
86			perfstat.o account.o security.o limits.o	\
87			$(STRPBRK) $(PROTOCOLOBJS) $(OTHEROBJS)		\
88			versys.o setmode.o
89uucico:=	PLIBS =	$(TLILIB) -lgen
90
91uuname \
92uuname.cat :=	POBJS =	uuname.o uucpname.o uucpdefs.o getpwinfo.o	\
93			sysfiles.o strsave.o getargs.o
94
95uustat \
96uustat.cat :=	POBJS =	uustat.o gnamef.o expfile.o uucpdefs.o		\
97			getpwinfo.o ulockf.o getargs.o utility.o	\
98			uucpname.o versys.o strsave.o sysfiles.o	\
99			cpmv.o mailst.o permission.o $(STRPBRK)	\
100			$(GETOPT)
101
102uusched \
103uusched.cat :=	POBJS =	uusched.o gnamef.o expfile.o uucpdefs.o		\
104			getpwinfo.o ulockf.o systat.o getargs.o		\
105			utility.o limits.o permission.o uucpname.o	\
106			$(GETOPT)
107
108uucleanup \
109uucleanup.cat := POBJS = uucleanup.o gnamef.o expfile.o uucpdefs.o	\
110			getpwinfo.o uucpname.o ulockf.o getargs.o	\
111			cpmv.o utility.o $(GETOPT)
112
113uuglist \
114uuglist.cat :=	POBJS =	grades.o cpmv.o getargs.o getpwinfo.o strsave.o	\
115			uuglist.o uucpdefs.o expfile.o uucpname.o $(GETOPT)
116
117bnuconvert \
118bnuconvert.cat := POBJS = bnuconvert.o uucpdefs.o grades.o strsave.o	\
119			getpwinfo.o getargs.o cpmv.o chremdir.o		\
120			expfile.o gename.o gnamef.o gtcfile.o logent.o	\
121			systat.o ulockf.o utility.o uucpname.o $(GETOPT)
122
123remote.unknown \
124remote.unknown.cat := POBJS =	unknown.o
125
126cu \
127cu.cat :=	POBJS =	cu.o callers.o getargs.o line.o uucpdefs.o	\
128			ulockf.o conn.o interface.o strsave.o		\
129			sysfiles.o stoa.o setmode.o
130cu:=		PLIBS =	$(TLILIB) -lgen
131
132ct \
133ct.cat :=	POBJS =	ct.o callers.o getargs.o line.o uucpdefs.o	\
134			ulockf.o conn.o interface.o sysfiles.o		\
135			strsave.o stoa.o setmode.o
136ct:=		PLIBS =	$(TLILIB) -lgen
137
138uudecode \
139uudecode.cat :=	POBJS =	uudecode.o common.o
140
141uuencode \
142uuencode.cat :=	POBJS =	uuencode.o
143
144uucheck \
145uucheck.cat :=	POBJS =	uucheck.o uucpname.o getargs.o $(GETOPT)
146
147in.uucpd \
148in.uucpd.cat :=	POBJS = in.uucpd.o
149in.uucpd:=	PLIBS = $(TLILIB) $(PAMLIB)
150