xref: /onnv-gate/usr/src/cmd/latencytop/Makefile.com (revision 10731:31fd4bc94a37)
110673SKrishnendu.Sadhukhan@Sun.COM#
210673SKrishnendu.Sadhukhan@Sun.COM# CDDL HEADER START
310673SKrishnendu.Sadhukhan@Sun.COM#
410673SKrishnendu.Sadhukhan@Sun.COM# The contents of this file are subject to the terms of the
510673SKrishnendu.Sadhukhan@Sun.COM# Common Development and Distribution License (the "License").
610673SKrishnendu.Sadhukhan@Sun.COM# You may not use this file except in compliance with the License.
710673SKrishnendu.Sadhukhan@Sun.COM#
810673SKrishnendu.Sadhukhan@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
910673SKrishnendu.Sadhukhan@Sun.COM# or http://www.opensolaris.org/os/licensing.
1010673SKrishnendu.Sadhukhan@Sun.COM# See the License for the specific language governing permissions
1110673SKrishnendu.Sadhukhan@Sun.COM# and limitations under the License.
1210673SKrishnendu.Sadhukhan@Sun.COM#
1310673SKrishnendu.Sadhukhan@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each
1410673SKrishnendu.Sadhukhan@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1510673SKrishnendu.Sadhukhan@Sun.COM# If applicable, add the following below this CDDL HEADER, with the
1610673SKrishnendu.Sadhukhan@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying
1710673SKrishnendu.Sadhukhan@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner]
1810673SKrishnendu.Sadhukhan@Sun.COM#
1910673SKrishnendu.Sadhukhan@Sun.COM# CDDL HEADER END
2010673SKrishnendu.Sadhukhan@Sun.COM#
2110673SKrishnendu.Sadhukhan@Sun.COM#
2210673SKrishnendu.Sadhukhan@Sun.COM# Copyright (c) 2008-2009, Intel Corporation.
2310673SKrishnendu.Sadhukhan@Sun.COM# All Rights Reserved.
2410673SKrishnendu.Sadhukhan@Sun.COM#
2510673SKrishnendu.Sadhukhan@Sun.COM
2610673SKrishnendu.Sadhukhan@Sun.COMPROG = latencytop
2710673SKrishnendu.Sadhukhan@Sun.COMOBJS = latencytop.o display.o dwrapper.o klog.o stat.o table.o util.o
2810673SKrishnendu.Sadhukhan@Sun.COMSRCS = $(OBJS:%.o=../common/%.c)
2910673SKrishnendu.Sadhukhan@Sun.COM
3010673SKrishnendu.Sadhukhan@Sun.COMinclude ../../Makefile.cmd
3110673SKrishnendu.Sadhukhan@Sun.COM
3210673SKrishnendu.Sadhukhan@Sun.COMCFLAGS += $(CCVERBOSE)
3310673SKrishnendu.Sadhukhan@Sun.COMCFLAGS64 += $(CCVERBOSE)
3410673SKrishnendu.Sadhukhan@Sun.COM
3510673SKrishnendu.Sadhukhan@Sun.COMCPPFLAGS += -DEMBED_CONFIGS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
3610673SKrishnendu.Sadhukhan@Sun.COMC99MODE = $(C99_ENABLE)
3710673SKrishnendu.Sadhukhan@Sun.COMLDLIBS += -lcurses -ldtrace
3810673SKrishnendu.Sadhukhan@Sun.COMall install	:= LDLIBS += -lglib-2.0
3910673SKrishnendu.Sadhukhan@Sun.COM
4010673SKrishnendu.Sadhukhan@Sun.COMLINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
41*10731SKrishnendu.Sadhukhan@Sun.COMLINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
4210673SKrishnendu.Sadhukhan@Sun.COMLINTFLAGS64 += -erroff=E_NAME_USED_NOT_DEF2
43*10731SKrishnendu.Sadhukhan@Sun.COMLINTFLAGS64 += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
4410673SKrishnendu.Sadhukhan@Sun.COM
4510673SKrishnendu.Sadhukhan@Sun.COMFILEMODE = 0555
4610673SKrishnendu.Sadhukhan@Sun.COM
4710673SKrishnendu.Sadhukhan@Sun.COMELFWRAP = elfwrap
4810673SKrishnendu.Sadhukhan@Sun.COMWRAPOBJ = latencytop_wrap.o
4910673SKrishnendu.Sadhukhan@Sun.COM
5010673SKrishnendu.Sadhukhan@Sun.COMCLEANFILES += $(OBJS) $(WRAPOBJ) ./latencytop_d ./latencytop_trans
5110673SKrishnendu.Sadhukhan@Sun.COM
5210673SKrishnendu.Sadhukhan@Sun.COM.KEEP_STATE:
5310673SKrishnendu.Sadhukhan@Sun.COM
5410673SKrishnendu.Sadhukhan@Sun.COMall: $(PROG)
5510673SKrishnendu.Sadhukhan@Sun.COM
5610673SKrishnendu.Sadhukhan@Sun.COMinstall:        $(SUBDIRS)
5710673SKrishnendu.Sadhukhan@Sun.COM	-$(RM) $(ROOTPROG)
5810673SKrishnendu.Sadhukhan@Sun.COM	-$(LN) $(ISAEXEC) $(ROOTPROG)
5910673SKrishnendu.Sadhukhan@Sun.COM
6010673SKrishnendu.Sadhukhan@Sun.COM$(PROG): $(OBJS) $(WRAPOBJ)
6110673SKrishnendu.Sadhukhan@Sun.COM	$(LINK.c) -o $@ $(OBJS) $(WRAPOBJ) $(LDLIBS)
6210673SKrishnendu.Sadhukhan@Sun.COM	$(POST_PROCESS)
6310673SKrishnendu.Sadhukhan@Sun.COM
6410673SKrishnendu.Sadhukhan@Sun.COM$(WRAPOBJ): latencytop_d latencytop_trans
6510673SKrishnendu.Sadhukhan@Sun.COM	$(ELFWRAP) $(WRAPOPT) -o $(WRAPOBJ) latencytop_d latencytop_trans
6610673SKrishnendu.Sadhukhan@Sun.COM
6710673SKrishnendu.Sadhukhan@Sun.COMlatencytop_d:
6810673SKrishnendu.Sadhukhan@Sun.COM	cp ../common/latencytop.d ./latencytop_d
6910673SKrishnendu.Sadhukhan@Sun.COM
7010673SKrishnendu.Sadhukhan@Sun.COMlatencytop_trans:
7110673SKrishnendu.Sadhukhan@Sun.COM	cp ../common/latencytop.trans ./latencytop_trans
7210673SKrishnendu.Sadhukhan@Sun.COM
7310673SKrishnendu.Sadhukhan@Sun.COMclean:
7410673SKrishnendu.Sadhukhan@Sun.COM	$(RM) $(CLEANFILES)
7510673SKrishnendu.Sadhukhan@Sun.COM
7610673SKrishnendu.Sadhukhan@Sun.COMlint:	lint_SRCS
7710673SKrishnendu.Sadhukhan@Sun.COM
7810673SKrishnendu.Sadhukhan@Sun.COM%.o: ../common/%.c
7910673SKrishnendu.Sadhukhan@Sun.COM	$(COMPILE.c) $<
8010673SKrishnendu.Sadhukhan@Sun.COM
8110673SKrishnendu.Sadhukhan@Sun.COMinclude ../../Makefile.targ
82