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 2006 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25# ident "%Z%%M% %I% %E% SMI" 26# 27 28LIBRARY = libproc.a 29VERS = .1 30 31CMNOBJS = \ 32 P32ton.o \ 33 Pcontrol.o \ 34 Pcore.o \ 35 Pexecname.o \ 36 Pgcore.o \ 37 Pidle.o \ 38 Pisprocdir.o \ 39 Plwpregs.o \ 40 Pservice.o \ 41 Psymtab.o \ 42 Pscantext.o \ 43 Pstack.o \ 44 Psyscall.o \ 45 Putil.o \ 46 pr_door.o \ 47 pr_exit.o \ 48 pr_fcntl.o \ 49 pr_getitimer.o \ 50 pr_getrctl.o \ 51 pr_getrlimit.o \ 52 pr_getsockname.o \ 53 pr_ioctl.o \ 54 pr_lseek.o \ 55 pr_memcntl.o \ 56 pr_meminfo.o \ 57 pr_mmap.o \ 58 pr_open.o \ 59 pr_pbind.o \ 60 pr_rename.o \ 61 pr_sigaction.o \ 62 pr_stat.o \ 63 pr_statvfs.o \ 64 pr_tasksys.o \ 65 pr_waitid.o \ 66 proc_get_info.o \ 67 proc_names.o \ 68 proc_arg.o \ 69 proc_set.o \ 70 proc_stdio.o 71 72ISAOBJS = \ 73 Pisadep.o 74 75OBJECTS = $(CMNOBJS) $(ISAOBJS) 76 77# include library definitions 78include ../../Makefile.lib 79include ../../Makefile.rootfs 80 81SRCS = $(CMNOBJS:%.o=../common/%.c) $(ISAOBJS:%.o=%.c) 82 83LIBS = $(DYNLIB) $(LINTLIB) 84LDLIBS += -lrtld_db -lelf -lctf -lc 85 86SRCDIR = ../common 87$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 88 89MAPFILES += mapfile-vers 90 91CFLAGS += $(CCVERBOSE) 92CPPFLAGS += -I$(SRCDIR) 93 94.KEEP_STATE: 95 96all: $(LIBS) 97 98lint: lintcheck 99 100# include library targets 101include ../../Makefile.targ 102 103objs/%.o pics/%.o: %.c 104 $(COMPILE.c) -o $@ $< 105 $(POST_PROCESS_O) 106