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.
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.
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]
22 # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
73 OBJECTS= $(SYSOBJS) $(PORTGENOBJS) $(PORTSYSOBJS) $(PORTSTDIOOBJS)
75 # include library definitions
76 include $(SRC)/lib/Makefile.lib
78 ROOTLIBDIR= $(ROOT)/usr/ucblib
79 ROOTLIBDIR64= $(ROOT)/usr/ucblib/$(MACH64)
81 MAPFILES = ../port/mapfile-vers
83 SRCS= $(PORTGENOBJS:%.o=../port/gen/%.c) \
84 $(PORTSTDIOOBJS:%.o=../port/stdio/%.c) \
85 $(PORTSYSOBJS:%.o=../port/sys/%.c)
89 CFLAGS += $(CCVERBOSE)
90 CFLAGS64 += $(CCVERBOSE)
93 CPPFLAGS = -D$(MACH) -I$(SRC)/ucbhead -I../inc \
94 -I../../../lib/libc/inc $(CPPFLAGS.master)
96 CERRWARN += -_gcc=-Wno-unused-variable
97 CERRWARN += -_gcc=-Wno-parentheses
98 CERRWARN += -_gcc=-Wno-char-subscripts
99 CERRWARN += -_gcc=-Wno-uninitialized
101 ASFLAGS= -P -D__STDC__ -DLOCORE -D_SYS_SYS_S -D_ASM $(CPPFLAGS)
103 pics/%.o:= ASFLAGS += $(AS_PICFLAGS)
105 # libc method of building an archive, using AT&T ordering
106 BUILD.AR= $(RM) $@ ; \
107 $(AR) q $@ `$(LORDER) $(OBJECTS:%=$(DIR)/%)| $(TSORT)`
115 pics/%.o: ../port/gen/%.c
116 $(COMPILE.c) -o $@ $<
118 pics/%.o: ../port/stdio/%.c
119 $(COMPILE.c) -o $@ $<
121 pics/%.o: ../port/sys/%.c
122 $(COMPILE.c) -o $@ $<
125 # shared (sparc/sparcv9/i386/amd64) platform-specific rule
127 $(COMPILE.c) -o $@ $<
130 pics/%.o: ../$(MACH)/sys/%.s
135 # Include library targets
137 include $(SRC)/lib/Makefile.targ