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