8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / latencytop / Makefile.com
bloba80485753318c43a132a2b616671cdfb37a50981
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
32 CFLAGS += $(CCVERBOSE)
33 CFLAGS64 += $(CCVERBOSE)
35 CERRWARN += -_gcc=-Wno-uninitialized
37 CPPFLAGS += -DEMBED_CONFIGS -I$(ADJUNCT_PROTO)/usr/include/glib-2.0 \
38         -I$(ADJUNCT_PROTO)/usr/lib/glib-2.0/include
39 C99MODE = $(C99_ENABLE)
40 LDLIBS += -lcurses -ldtrace
41 all install     := LDLIBS += -lglib-2.0
43 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
44 LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
45 LINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
46 LINTFLAGS64 += -erroff=E_NAME_USED_NOT_DEF2
47 LINTFLAGS64 += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
48 LINTFLAGS64 += -erroff=E_FUNC_RET_MAYBE_IGNORED2
50 FILEMODE = 0555
52 ELFWRAP = elfwrap
53 WRAPOBJ = latencytop_wrap.o
55 CLEANFILES += $(OBJS) $(WRAPOBJ) ./latencytop_d ./latencytop_trans
57 .KEEP_STATE:
59 all: $(PROG)
61 install:        $(SUBDIRS)
62         -$(RM) $(ROOTPROG)
63         -$(LN) $(ISAEXEC) $(ROOTPROG)
65 $(PROG): $(OBJS) $(WRAPOBJ)
66         $(LINK.c) -o $@ $(OBJS) $(WRAPOBJ) $(LDLIBS)
67         $(POST_PROCESS)
69 $(WRAPOBJ): latencytop_d latencytop_trans
70         $(ELFWRAP) $(WRAPOPT) -o $(WRAPOBJ) latencytop_d latencytop_trans
72 latencytop_d:
73         cp ../common/latencytop.d ./latencytop_d
75 latencytop_trans:
76         cp ../common/latencytop.trans ./latencytop_trans
78 clean:
79         $(RM) $(CLEANFILES)
81 lint:   lint_SRCS
83 %.o: ../common/%.c
84         $(COMPILE.c) $<
86 include ../../Makefile.targ