dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / latencytop / Makefile.com
blob6069bdbbe2a15bab25e528d4961dea16053fa1b6
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
22 # Copyright (c) 2008-2009, Intel Corporation.
23 # All Rights Reserved.
26 PROG = latencytop
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
41 FILEMODE = 0555
43 ELFWRAP = elfwrap
44 WRAPOBJ = latencytop_wrap.o
46 CLEANFILES += $(OBJS) $(WRAPOBJ) ./latencytop_d ./latencytop_trans
48 .KEEP_STATE:
50 all: $(PROG)
52 install:        $(SUBDIRS)
53         -$(RM) $(ROOTPROG)
54         -$(LN) $(ISAEXEC) $(ROOTPROG)
56 $(PROG): $(OBJS) $(WRAPOBJ)
57         $(LINK.c) -o $@ $(OBJS) $(WRAPOBJ) $(LDLIBS)
58         $(POST_PROCESS)
60 $(WRAPOBJ): latencytop_d latencytop_trans
61         $(ELFWRAP) $(WRAPOPT) -o $(WRAPOBJ) latencytop_d latencytop_trans
63 latencytop_d:
64         cp ../common/latencytop.d ./latencytop_d
66 latencytop_trans:
67         cp ../common/latencytop.trans ./latencytop_trans
69 clean:
70         $(RM) $(CLEANFILES)
73 %.o: ../common/%.c
74         $(COMPILE.c) $<
76 include ../../Makefile.targ