xref: /titanic_50/usr/src/cmd/bnu/Makefile.inc (revision b6805bf78d2bbbeeaea8909a05623587b42d58b3)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
524da5b34Srie# Common Development and Distribution License (the "License").
624da5b34Srie# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
2224da5b34Srie# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gateSRCS =		account.c anlwrk.c bnuconvert.c callers.c		\
277c478bd9Sstevel@tonic-gate		chremdir.c cntrl.c conn.c cpmv.c ct.c			\
287c478bd9Sstevel@tonic-gate		cu.c dial.c dio.c dkbreak.c				\
297c478bd9Sstevel@tonic-gate		dkdial.c dkerr.c dkminor.c dtnamer.c eio.c		\
307c478bd9Sstevel@tonic-gate		expfile.c fio.c gename.c getargs.c getopt.c getprm.c	\
317c478bd9Sstevel@tonic-gate		getpwinfo.c gio.c gnamef.c gnxseq.c grades.c		\
327c478bd9Sstevel@tonic-gate		gtcfile.c gwd.c imsg.c in.uucpd.c interface.c limits.c	\
337c478bd9Sstevel@tonic-gate		line.c logent.c mailst.c perfstat.c			\
347c478bd9Sstevel@tonic-gate		permission.c pk0.c pk1.c pkdefs.c security.c		\
3524da5b34Srie		setmode.c shio.c statlog.c stoa.c strpbrk.c	\
367c478bd9Sstevel@tonic-gate		strsave.c sysfiles.c systat.c ulockf.c unknown.c	\
377c478bd9Sstevel@tonic-gate		utility.c uucheck.c uucico.c uucleanup.c uucp.c		\
387c478bd9Sstevel@tonic-gate		uucpdefs.c uucpname.c uudecode.c uuencode.c		\
397c478bd9Sstevel@tonic-gate		uuglist.c uuname.c uusched.c uustat.c uux.c		\
40*b6805bf7SGordon Ross		uuxqt.c versys.c xio.c xqt.c
417c478bd9Sstevel@tonic-gate
427014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
437014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-char-subscripts
447014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
457014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
467014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-extra
477014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-implicit-function-declaration
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gateTLILIB =	-lnsl -lsocket
507c478bd9Sstevel@tonic-gatePAMLIB =        -lpam
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gate# use this if you don't have strpbrk/getopt in libc
537c478bd9Sstevel@tonic-gate# STRPBRK =	strpbrk.o
547c478bd9Sstevel@tonic-gate# GETOPT =	getopt.o
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gatePROTOCOLOBJS =	dio.o eio.o gio.o xio.o fio.o
577c478bd9Sstevel@tonic-gate
587c478bd9Sstevel@tonic-gateOTHEROBJS =	utility.o cpmv.o expfile.o gename.o getpwinfo.o \
597c478bd9Sstevel@tonic-gate		ulockf.o xqt.o logent.o gnamef.o systat.o	\
607c478bd9Sstevel@tonic-gate		sysfiles.o strsave.o $(GETOPT)
617c478bd9Sstevel@tonic-gate
627c478bd9Sstevel@tonic-gateuucp \
637c478bd9Sstevel@tonic-gateuucp.cat :=	POBJS =	uucpdefs.o uucp.o gwd.o permission.o getargs.o	\
647c478bd9Sstevel@tonic-gate			getprm.o uucpname.o versys.o gtcfile.o grades.o	\
657c478bd9Sstevel@tonic-gate			$(STRPBRK) chremdir.o mailst.o $(OTHEROBJS)
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gateuux \
687c478bd9Sstevel@tonic-gateuux.cat :=	POBJS =	uucpdefs.o uux.o mailst.o gwd.o permission.o	\
697c478bd9Sstevel@tonic-gate			getargs.o getprm.o uucpname.o versys.o gtcfile.o \
707c478bd9Sstevel@tonic-gate			grades.o chremdir.o $(STRPBRK) $(OTHEROBJS)
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gateuuxqt \
737c478bd9Sstevel@tonic-gateuuxqt.cat :=	POBJS =	uucpdefs.o uuxqt.o mailst.o getprm.o uucpname.o \
747c478bd9Sstevel@tonic-gate			permission.o getargs.o gtcfile.o grades.o	\
757c478bd9Sstevel@tonic-gate			$(STRPBRK) shio.o chremdir.o account.o		\
767c478bd9Sstevel@tonic-gate			perfstat.o statlog.o security.o limits.o	\
777c478bd9Sstevel@tonic-gate			$(OTHEROBJS)
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gateuucico \
807c478bd9Sstevel@tonic-gateuucico.cat :=	POBJS =	uucpdefs.o uucico.o conn.o callers.o cntrl.o	\
817c478bd9Sstevel@tonic-gate			pk0.o pk1.o anlwrk.o permission.o getargs.o	\
827c478bd9Sstevel@tonic-gate			gnxseq.o pkdefs.o imsg.o gtcfile.o grades.o	\
837c478bd9Sstevel@tonic-gate			mailst.o uucpname.o line.o chremdir.o		\
8424da5b34Srie			interface.o statlog.o stoa.o			\
857c478bd9Sstevel@tonic-gate			perfstat.o account.o security.o limits.o	\
867c478bd9Sstevel@tonic-gate			$(STRPBRK) $(PROTOCOLOBJS) $(OTHEROBJS)		\
877c478bd9Sstevel@tonic-gate			versys.o setmode.o
8824da5b34Srieuucico:=	PLIBS =	$(TLILIB) -lgen
897c478bd9Sstevel@tonic-gate
907c478bd9Sstevel@tonic-gateuuname \
917c478bd9Sstevel@tonic-gateuuname.cat :=	POBJS =	uuname.o uucpname.o uucpdefs.o getpwinfo.o	\
927c478bd9Sstevel@tonic-gate			sysfiles.o strsave.o getargs.o
937c478bd9Sstevel@tonic-gate
947c478bd9Sstevel@tonic-gateuustat \
957c478bd9Sstevel@tonic-gateuustat.cat :=	POBJS =	uustat.o gnamef.o expfile.o uucpdefs.o		\
967c478bd9Sstevel@tonic-gate			getpwinfo.o ulockf.o getargs.o utility.o	\
977c478bd9Sstevel@tonic-gate			uucpname.o versys.o strsave.o sysfiles.o	\
987c478bd9Sstevel@tonic-gate			cpmv.o mailst.o permission.o $(STRPBRK)	\
997c478bd9Sstevel@tonic-gate			$(GETOPT)
1007c478bd9Sstevel@tonic-gate
1017c478bd9Sstevel@tonic-gateuusched \
1027c478bd9Sstevel@tonic-gateuusched.cat :=	POBJS =	uusched.o gnamef.o expfile.o uucpdefs.o		\
1037c478bd9Sstevel@tonic-gate			getpwinfo.o ulockf.o systat.o getargs.o		\
1047c478bd9Sstevel@tonic-gate			utility.o limits.o permission.o uucpname.o	\
1057c478bd9Sstevel@tonic-gate			$(GETOPT)
1067c478bd9Sstevel@tonic-gate
1077c478bd9Sstevel@tonic-gateuucleanup \
1087c478bd9Sstevel@tonic-gateuucleanup.cat := POBJS = uucleanup.o gnamef.o expfile.o uucpdefs.o	\
1097c478bd9Sstevel@tonic-gate			getpwinfo.o uucpname.o ulockf.o getargs.o	\
1107c478bd9Sstevel@tonic-gate			cpmv.o utility.o $(GETOPT)
1117c478bd9Sstevel@tonic-gate
1127c478bd9Sstevel@tonic-gateuuglist \
1137c478bd9Sstevel@tonic-gateuuglist.cat :=	POBJS =	grades.o cpmv.o getargs.o getpwinfo.o strsave.o	\
1147c478bd9Sstevel@tonic-gate			uuglist.o uucpdefs.o expfile.o uucpname.o $(GETOPT)
1157c478bd9Sstevel@tonic-gate
1167c478bd9Sstevel@tonic-gatebnuconvert \
1177c478bd9Sstevel@tonic-gatebnuconvert.cat := POBJS = bnuconvert.o uucpdefs.o grades.o strsave.o	\
1187c478bd9Sstevel@tonic-gate			getpwinfo.o getargs.o cpmv.o chremdir.o		\
1197c478bd9Sstevel@tonic-gate			expfile.o gename.o gnamef.o gtcfile.o logent.o	\
1207c478bd9Sstevel@tonic-gate			systat.o ulockf.o utility.o uucpname.o $(GETOPT)
1217c478bd9Sstevel@tonic-gate
1227c478bd9Sstevel@tonic-gateremote.unknown \
1237c478bd9Sstevel@tonic-gateremote.unknown.cat := POBJS =	unknown.o
1247c478bd9Sstevel@tonic-gate
1257c478bd9Sstevel@tonic-gatecu \
1267c478bd9Sstevel@tonic-gatecu.cat :=	POBJS =	cu.o callers.o getargs.o line.o uucpdefs.o	\
1277c478bd9Sstevel@tonic-gate			ulockf.o conn.o interface.o strsave.o		\
12824da5b34Srie			sysfiles.o stoa.o setmode.o
12924da5b34Sriecu:=		PLIBS =	$(TLILIB) -lgen
1307c478bd9Sstevel@tonic-gate
1317c478bd9Sstevel@tonic-gatect \
1327c478bd9Sstevel@tonic-gatect.cat :=	POBJS =	ct.o callers.o getargs.o line.o uucpdefs.o	\
1337c478bd9Sstevel@tonic-gate			ulockf.o conn.o interface.o sysfiles.o		\
13424da5b34Srie			strsave.o stoa.o setmode.o
13524da5b34Sriect:=		PLIBS =	$(TLILIB) -lgen
1367c478bd9Sstevel@tonic-gate
1377c478bd9Sstevel@tonic-gateuudecode \
1387c478bd9Sstevel@tonic-gateuudecode.cat :=	POBJS =	uudecode.o common.o
1397c478bd9Sstevel@tonic-gate
1407c478bd9Sstevel@tonic-gateuuencode \
1417c478bd9Sstevel@tonic-gateuuencode.cat :=	POBJS =	uuencode.o
1427c478bd9Sstevel@tonic-gate
1437c478bd9Sstevel@tonic-gateuucheck \
1447c478bd9Sstevel@tonic-gateuucheck.cat :=	POBJS =	uucheck.o uucpname.o getargs.o $(GETOPT)
1457c478bd9Sstevel@tonic-gate
1467c478bd9Sstevel@tonic-gatein.uucpd \
1477c478bd9Sstevel@tonic-gatein.uucpd.cat :=	POBJS = in.uucpd.o
1487c478bd9Sstevel@tonic-gatein.uucpd:=	PLIBS = $(TLILIB) $(PAMLIB)
149