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.
25 LIBRARY= libtnfprobe.a
27 OBJECTS.c= tnf_buf.o \
36 UFSDIR= $(SRC)/uts/common/tnf
37 UFSOBJS= tnf_writer.o tnf_probe.o
39 OBJECTS.s= $(MACH)_locks.o
41 OBJECTS= $(OBJECTS.c) $(UFSOBJS) $(OBJECTS.s)
43 include ../../Makefile.lib
45 # We omit $(OBJECTS.s:%.o=%.s) in the next line, because lint no like
46 SRCS= $(OBJECTS.c:%.o=../%.c) $(UFSOBJS:%.o=$(UFSDIR)/%.c)
50 DYNFLAGS += $(ZINTERPOSE)
52 HDRS= com.h writer.h probe.h
53 ROOTHDRDIR= $(ROOT)/usr/include/tnf
54 ROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%)
55 CHECKHDRS= $(HDRS:%.h=%.check)
56 $(ROOTHDRS) := FILEMODE = 0644
57 CHECKHDRS = $(HDRS:%.h=%.check)
59 # Include .. first to pick up tnf_trace.h in current dir, Include UFSDIR to
61 CPPFLAGS += -I.. -I$(UFSDIR) -D_REENTRANT -D_TNF_LIBRARY
65 CERRWARN += -_gcc=-Wno-unused-variable
66 CERRWARN += -_gcc=-Wno-parentheses
67 CERRWARN += -_gcc=-Wno-uninitialized
69 $(ROOTHDRS) := FILEMODE = 644
77 install_h: $(ROOTHDRDIR) $(ROOTHDRS)
84 $(ROOTLIBDIR) $(ROOTHDRDIR):
90 #ASFLAGS= -K pic -P -D_SYS_SYS_S -D_LOCORE -D_ASM -DPIC -DLOCORE $(CPPFLAGS)
91 ASFLAGS= -P -D_SYS_SYS_S -D_LOCORE -D_ASM -DPIC -DLOCORE $(CPPFLAGS)
92 BUILD.s= $(AS) $(ASFLAGS) $< -o $@
94 objs/%.o pics/%.o: ../%.s
98 pics/%.o objs/%.o: ../%.c
102 pics/%.o objs/%.o: $(UFSDIR)/%.c
103 $(COMPILE.c) -o $@ $<
106 include ../../Makefile.targ