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) 2008-2009, Intel Corporation.
23 # All Rights Reserved.
27 OBJS = latencytop.o display.o dwrapper.o klog.o stat.o table.o util.o
28 SRCS = $(OBJS:%.o=../common/%.c)
30 include ../../Makefile.cmd
33 CERRWARN += -Wno-uninitialized
35 CPPFLAGS += -DEMBED_CONFIGS -I$(ADJUNCT_PROTO)/usr/include/glib-2.0 \
36 -I$(ADJUNCT_PROTO)/usr/lib/glib-2.0/include
37 C99MODE = $(C99_ENABLE)
38 LDLIBS += -lncurses -ldtrace
39 all install := LDLIBS += -lglib-2.0
44 WRAPOBJ = latencytop_wrap.o
46 CLEANFILES += $(OBJS) $(WRAPOBJ) ./latencytop_d ./latencytop_trans
54 -$(LN) $(ISAEXEC) $(ROOTPROG)
56 $(PROG): $(OBJS) $(WRAPOBJ)
57 $(LINK.c) -o $@ $(OBJS) $(WRAPOBJ) $(LDLIBS)
60 $(WRAPOBJ): latencytop_d latencytop_trans
61 $(ELFWRAP) $(WRAPOPT) -o $(WRAPOBJ) latencytop_d latencytop_trans
64 cp ../common/latencytop.d ./latencytop_d
67 cp ../common/latencytop.trans ./latencytop_trans
76 include ../../Makefile.targ