xref: /titanic_44/usr/src/ucblib/libucb/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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
5f808c858Sraf# Common Development and Distribution License (the "License").
6f808c858Sraf# 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#
22cd3e9333SAli Bahrami# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
237c478bd9Sstevel@tonic-gate#
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gateLIBRARY=	libucb.a
267c478bd9Sstevel@tonic-gateVERS=		.1
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gatePORTSYSOBJS=		\
297c478bd9Sstevel@tonic-gate	flock.o		\
307c478bd9Sstevel@tonic-gate	getdtblsize.o	\
317c478bd9Sstevel@tonic-gate	gethostid.o	\
327c478bd9Sstevel@tonic-gate	gethostname.o	\
337c478bd9Sstevel@tonic-gate	getpagesize.o	\
347c478bd9Sstevel@tonic-gate	gettimeofday.o	\
357c478bd9Sstevel@tonic-gate	killpg.o	\
367c478bd9Sstevel@tonic-gate	mctl.o		\
377c478bd9Sstevel@tonic-gate	reboot.o	\
387c478bd9Sstevel@tonic-gate	setpgrp.o	\
397c478bd9Sstevel@tonic-gate	wait3.o		\
407c478bd9Sstevel@tonic-gate	wait4.o
417c478bd9Sstevel@tonic-gate
427c478bd9Sstevel@tonic-gatePORTSTDIOOBJS=		\
437c478bd9Sstevel@tonic-gate	doprnt.o	\
447c478bd9Sstevel@tonic-gate	fopen.o		\
457c478bd9Sstevel@tonic-gate	fprintf.o	\
467c478bd9Sstevel@tonic-gate	printf.o	\
477c478bd9Sstevel@tonic-gate	sprintf.o	\
487c478bd9Sstevel@tonic-gate	vfprintf.o	\
497c478bd9Sstevel@tonic-gate	vprintf.o	\
507c478bd9Sstevel@tonic-gate	vsprintf.o
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gatePORTGENOBJS=		\
537c478bd9Sstevel@tonic-gate	_psignal.o	\
547c478bd9Sstevel@tonic-gate	bcmp.o		\
557c478bd9Sstevel@tonic-gate	bcopy.o		\
567c478bd9Sstevel@tonic-gate	bzero.o		\
577c478bd9Sstevel@tonic-gate	ftime.o		\
587c478bd9Sstevel@tonic-gate	getwd.o		\
597c478bd9Sstevel@tonic-gate	index.o		\
607c478bd9Sstevel@tonic-gate	nice.o		\
617c478bd9Sstevel@tonic-gate	nlist.o		\
627c478bd9Sstevel@tonic-gate	psignal.o	\
637c478bd9Sstevel@tonic-gate	rand.o		\
647c478bd9Sstevel@tonic-gate	readdir.o	\
657c478bd9Sstevel@tonic-gate	regex.o		\
667c478bd9Sstevel@tonic-gate	rindex.o	\
677c478bd9Sstevel@tonic-gate	scandir.o	\
687c478bd9Sstevel@tonic-gate	setbuffer.o	\
697c478bd9Sstevel@tonic-gate	siglist.o	\
707c478bd9Sstevel@tonic-gate	statfs.o	\
717c478bd9Sstevel@tonic-gate	times.o
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gateOBJECTS= $(SYSOBJS) $(PORTGENOBJS) $(PORTSYSOBJS) $(PORTSTDIOOBJS)
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gate# include library definitions
767c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.lib
777c478bd9Sstevel@tonic-gate
787c478bd9Sstevel@tonic-gateROOTLIBDIR=	$(ROOT)/usr/ucblib
797c478bd9Sstevel@tonic-gateROOTLIBDIR64=	$(ROOT)/usr/ucblib/$(MACH64)
807c478bd9Sstevel@tonic-gate
81cd3e9333SAli BahramiMAPFILES =	../port/mapfile-vers
827c478bd9Sstevel@tonic-gate
837c478bd9Sstevel@tonic-gateSRCS=		$(PORTGENOBJS:%.o=../port/gen/%.c) \
847c478bd9Sstevel@tonic-gate		$(PORTSTDIOOBJS:%.o=../port/stdio/%.c) \
857c478bd9Sstevel@tonic-gate		$(PORTSYSOBJS:%.o=../port/sys/%.c)
867c478bd9Sstevel@tonic-gate
875bbb4db2SGarrett D'AmoreLIBS = $(DYNLIB)
887c478bd9Sstevel@tonic-gate
897c478bd9Sstevel@tonic-gateCFLAGS	+=	$(CCVERBOSE)
907c478bd9Sstevel@tonic-gateCFLAGS64 +=	$(CCVERBOSE)
917c478bd9Sstevel@tonic-gateLDLIBS +=	-lelf -lc
927c478bd9Sstevel@tonic-gate
935bbb4db2SGarrett D'AmoreCPPFLAGS = -D$(MACH) -I$(SRC)/ucbhead -I../inc \
947c478bd9Sstevel@tonic-gate		-I../../../lib/libc/inc $(CPPFLAGS.master)
957c478bd9Sstevel@tonic-gate
96*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
97*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
98*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-char-subscripts
99*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
100*7014882cSRichard Lowe
1017c478bd9Sstevel@tonic-gateASFLAGS= -P -D__STDC__ -DLOCORE -D_SYS_SYS_S -D_ASM $(CPPFLAGS)
1027c478bd9Sstevel@tonic-gate
1037c478bd9Sstevel@tonic-gatepics/%.o:= ASFLAGS += $(AS_PICFLAGS)
1047c478bd9Sstevel@tonic-gate
1057c478bd9Sstevel@tonic-gate# libc method of building an archive, using AT&T ordering
1067c478bd9Sstevel@tonic-gateBUILD.AR= $(RM) $@ ; \
1077c478bd9Sstevel@tonic-gate	$(AR) q $@ `$(LORDER) $(OBJECTS:%=$(DIR)/%)| $(TSORT)`
1087c478bd9Sstevel@tonic-gate
1097c478bd9Sstevel@tonic-gate.KEEP_STATE:
1107c478bd9Sstevel@tonic-gate
1117c478bd9Sstevel@tonic-gateall: $(LIBS)
1127c478bd9Sstevel@tonic-gate
1137c478bd9Sstevel@tonic-gatelint: lintcheck
1147c478bd9Sstevel@tonic-gate
115f808c858Srafpics/%.o: ../port/gen/%.c
1167c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1177c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
118f808c858Srafpics/%.o: ../port/stdio/%.c
1197c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1207c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
121f808c858Srafpics/%.o: ../port/sys/%.c
1227c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1237c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1247c478bd9Sstevel@tonic-gate
1257c478bd9Sstevel@tonic-gate# shared (sparc/sparcv9/i386/amd64) platform-specific rule
126f808c858Srafpics/%.o: sys/%.c
1277c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1287c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1297c478bd9Sstevel@tonic-gate
130f808c858Srafpics/%.o: ../$(MACH)/sys/%.s
1317c478bd9Sstevel@tonic-gate	$(BUILD.s)
1327c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1337c478bd9Sstevel@tonic-gate
1347c478bd9Sstevel@tonic-gate#
1357c478bd9Sstevel@tonic-gate# Include library targets
1367c478bd9Sstevel@tonic-gate#
1377c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.targ
138