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, Version 1.0 only 6# (the "License"). You may not use this file except in compliance 7# with the License. 8# 9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10# or http://www.opensolaris.org/os/licensing. 11# See the License for the specific language governing permissions 12# and limitations under the License. 13# 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 21# 22# 23# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26# ident "%Z%%M% %I% %E% SMI" 27# 28 29LIBRARY = libsa.a 30LOCOBJS = assert.o ctype.o errno.o libintl.o malloc.o memlist.o \ 31 standalloc.o stdio.o stdlib.o strdup.o strings.o \ 32 time.o unistd.o 33CMNOBJS = cache.o diskread.o fsswitch.o 34 35sparc_CMNUTILOBJS = memchr.o memmove.o 36CMNUTILOBJS = $($(MACH)_CMNUTILOBJS) \ 37 bsearch.o memcmp.o memcpy.o memset.o qsort.o \ 38 string.o strtol.o strtoul.o 39 40i386_MACHOBJS = get.o map_prog.o 41sparc_MACHOBJS = prom_misc.o 42MACHOBJS = $($(MACH)_MACHOBJS) 43 44i386_ASMOBJS = _setjmp.o samuldiv64.o 45sparc_ASMOBJS = _setjmp.o 46ASMOBJS = $($(MACH)_ASMOBJS) 47 48OBJECTS = $(LOCOBJS) $(CMNOBJS) $(CMNUTILOBJS) $(MACHOBJS) $(ASMOBJS) 49 50include ../Makefile.com 51 52CMNDIR = ../fs/common 53CMNUTILDIR = $(TOPDIR)/common/util 54SRCS = $(LOCOBJS:%.o=$(SRCDIR)/%.c) $(CMNOBJS:%.o=$(CMNDIR)/%.c) \ 55 $(CMNUTILOBJS:%.o=$(CMNUTILDIR)/%.c) \ 56 $($(MACH)_ASMOBJS:%.o=$(MACH)/%.s) \ 57 $($(MACH)_OBJS:%.o=$(MACH)/%.c) 58 59LDLIBS += -lsock 60CPPFLAGS += $(SOCKCPPFLAGS) 61 62objs/%.o: $(MACH)/%.s 63 $(COMPILE.s) -o $@ $< 64 $(POST_PROCESS_O) 65 66objs/%.o: $(MACH)/%.c 67 $(COMPILE.c) -o $@ $< 68 $(POST_PROCESS_O) 69 70objs/%.o: $(CMNUTILDIR)/%.c 71 $(COMPILE.c) -o $@ $< 72 $(POST_PROCESS_O) 73 74include ../Makefile.targ 75