xref: /titanic_51/usr/src/cmd/bnu/Makefile.inc (revision c10c16dec587a0662068f6e2991c29ed3a9db943)
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# ident	"%Z%%M%	%I%	%E% SMI"
26#
27# This file is included by Makefile. The idea is to unclutter it (Makefile).
28#
29
30SRCS =		account.c anlwrk.c bnuconvert.c callers.c		\
31		chremdir.c cntrl.c conn.c cpmv.c ct.c			\
32		cu.c dial.c dio.c dkbreak.c				\
33		dkdial.c dkerr.c dkminor.c dtnamer.c eio.c		\
34		expfile.c fio.c gename.c getargs.c getopt.c getprm.c	\
35		getpwinfo.c gio.c gnamef.c gnxseq.c grades.c		\
36		gtcfile.c gwd.c imsg.c in.uucpd.c interface.c limits.c	\
37		line.c logent.c mailst.c perfstat.c			\
38		permission.c pk0.c pk1.c pkdefs.c security.c		\
39		setmode.c shio.c statlog.c stoa.c strpbrk.c	\
40		strsave.c sysfiles.c systat.c ulockf.c unknown.c	\
41		utility.c uucheck.c uucico.c uucleanup.c uucp.c		\
42		uucpdefs.c uucpname.c uudecode.c uuencode.c		\
43		uuglist.c uuname.c uusched.c uustat.c uux.c		\
44		uuxqt.c versys.c xio.c xqt.c				\
45		../chmod/common.c
46
47
48TLILIB =	-lnsl -lsocket
49PAMLIB =        -lpam
50
51# use this if you don't have strpbrk/getopt in libc
52# STRPBRK =	strpbrk.o
53# GETOPT =	getopt.o
54
55PROTOCOLOBJS =	dio.o eio.o gio.o xio.o fio.o
56
57OTHEROBJS =	utility.o cpmv.o expfile.o gename.o getpwinfo.o \
58		ulockf.o xqt.o logent.o gnamef.o systat.o	\
59		sysfiles.o strsave.o $(GETOPT)
60
61uucp \
62uucp.cat :=	POBJS =	uucpdefs.o uucp.o gwd.o permission.o getargs.o	\
63			getprm.o uucpname.o versys.o gtcfile.o grades.o	\
64			$(STRPBRK) chremdir.o mailst.o $(OTHEROBJS)
65
66uux \
67uux.cat :=	POBJS =	uucpdefs.o uux.o mailst.o gwd.o permission.o	\
68			getargs.o getprm.o uucpname.o versys.o gtcfile.o \
69			grades.o chremdir.o $(STRPBRK) $(OTHEROBJS)
70
71uuxqt \
72uuxqt.cat :=	POBJS =	uucpdefs.o uuxqt.o mailst.o getprm.o uucpname.o \
73			permission.o getargs.o gtcfile.o grades.o	\
74			$(STRPBRK) shio.o chremdir.o account.o		\
75			perfstat.o statlog.o security.o limits.o	\
76			$(OTHEROBJS)
77
78uucico \
79uucico.cat :=	POBJS =	uucpdefs.o uucico.o conn.o callers.o cntrl.o	\
80			pk0.o pk1.o anlwrk.o permission.o getargs.o	\
81			gnxseq.o pkdefs.o imsg.o gtcfile.o grades.o	\
82			mailst.o uucpname.o line.o chremdir.o		\
83			interface.o statlog.o stoa.o			\
84			perfstat.o account.o security.o limits.o	\
85			$(STRPBRK) $(PROTOCOLOBJS) $(OTHEROBJS)		\
86			versys.o setmode.o
87uucico:=	PLIBS =	$(TLILIB) -lgen
88
89uuname \
90uuname.cat :=	POBJS =	uuname.o uucpname.o uucpdefs.o getpwinfo.o	\
91			sysfiles.o strsave.o getargs.o
92
93uustat \
94uustat.cat :=	POBJS =	uustat.o gnamef.o expfile.o uucpdefs.o		\
95			getpwinfo.o ulockf.o getargs.o utility.o	\
96			uucpname.o versys.o strsave.o sysfiles.o	\
97			cpmv.o mailst.o permission.o $(STRPBRK)	\
98			$(GETOPT)
99
100uusched \
101uusched.cat :=	POBJS =	uusched.o gnamef.o expfile.o uucpdefs.o		\
102			getpwinfo.o ulockf.o systat.o getargs.o		\
103			utility.o limits.o permission.o uucpname.o	\
104			$(GETOPT)
105
106uucleanup \
107uucleanup.cat := POBJS = uucleanup.o gnamef.o expfile.o uucpdefs.o	\
108			getpwinfo.o uucpname.o ulockf.o getargs.o	\
109			cpmv.o utility.o $(GETOPT)
110
111uuglist \
112uuglist.cat :=	POBJS =	grades.o cpmv.o getargs.o getpwinfo.o strsave.o	\
113			uuglist.o uucpdefs.o expfile.o uucpname.o $(GETOPT)
114
115bnuconvert \
116bnuconvert.cat := POBJS = bnuconvert.o uucpdefs.o grades.o strsave.o	\
117			getpwinfo.o getargs.o cpmv.o chremdir.o		\
118			expfile.o gename.o gnamef.o gtcfile.o logent.o	\
119			systat.o ulockf.o utility.o uucpname.o $(GETOPT)
120
121remote.unknown \
122remote.unknown.cat := POBJS =	unknown.o
123
124cu \
125cu.cat :=	POBJS =	cu.o callers.o getargs.o line.o uucpdefs.o	\
126			ulockf.o conn.o interface.o strsave.o		\
127			sysfiles.o stoa.o setmode.o
128cu:=		PLIBS =	$(TLILIB) -lgen
129
130ct \
131ct.cat :=	POBJS =	ct.o callers.o getargs.o line.o uucpdefs.o	\
132			ulockf.o conn.o interface.o sysfiles.o		\
133			strsave.o stoa.o setmode.o
134ct:=		PLIBS =	$(TLILIB) -lgen
135
136uudecode \
137uudecode.cat :=	POBJS =	uudecode.o common.o
138
139uuencode \
140uuencode.cat :=	POBJS =	uuencode.o
141
142uucheck \
143uucheck.cat :=	POBJS =	uucheck.o uucpname.o getargs.o $(GETOPT)
144
145in.uucpd \
146in.uucpd.cat :=	POBJS = in.uucpd.o
147in.uucpd:=	PLIBS = $(TLILIB) $(PAMLIB)
148