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