115db2897SKrishnendu Sadhukhan - Sun Microsystems# 215db2897SKrishnendu Sadhukhan - Sun Microsystems# CDDL HEADER START 315db2897SKrishnendu Sadhukhan - Sun Microsystems# 415db2897SKrishnendu Sadhukhan - Sun Microsystems# The contents of this file are subject to the terms of the 515db2897SKrishnendu Sadhukhan - Sun Microsystems# Common Development and Distribution License (the "License"). 615db2897SKrishnendu Sadhukhan - Sun Microsystems# You may not use this file except in compliance with the License. 715db2897SKrishnendu Sadhukhan - Sun Microsystems# 815db2897SKrishnendu Sadhukhan - Sun Microsystems# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 915db2897SKrishnendu Sadhukhan - Sun Microsystems# or http://www.opensolaris.org/os/licensing. 1015db2897SKrishnendu Sadhukhan - Sun Microsystems# See the License for the specific language governing permissions 1115db2897SKrishnendu Sadhukhan - Sun Microsystems# and limitations under the License. 1215db2897SKrishnendu Sadhukhan - Sun Microsystems# 1315db2897SKrishnendu Sadhukhan - Sun Microsystems# When distributing Covered Code, include this CDDL HEADER in each 1415db2897SKrishnendu Sadhukhan - Sun Microsystems# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1515db2897SKrishnendu Sadhukhan - Sun Microsystems# If applicable, add the following below this CDDL HEADER, with the 1615db2897SKrishnendu Sadhukhan - Sun Microsystems# fields enclosed by brackets "[]" replaced with your own identifying 1715db2897SKrishnendu Sadhukhan - Sun Microsystems# information: Portions Copyright [yyyy] [name of copyright owner] 1815db2897SKrishnendu Sadhukhan - Sun Microsystems# 1915db2897SKrishnendu Sadhukhan - Sun Microsystems# CDDL HEADER END 2015db2897SKrishnendu Sadhukhan - Sun Microsystems# 21*486c6fdaSRichard Lowe# 2215db2897SKrishnendu Sadhukhan - Sun Microsystems# Copyright (c) 2008-2009, Intel Corporation. 2315db2897SKrishnendu Sadhukhan - Sun Microsystems# All Rights Reserved. 2415db2897SKrishnendu Sadhukhan - Sun Microsystems# 25*486c6fdaSRichard Lowe# Copyright (c) 2018, Joyent, Inc. 26*486c6fdaSRichard Lowe# Copyright 2019 OmniOS Community Edition (OmniOSce) Association. 2715db2897SKrishnendu Sadhukhan - Sun Microsystems 2815db2897SKrishnendu Sadhukhan - Sun MicrosystemsPROG = latencytop 29*486c6fdaSRichard LoweOBJS = latencytop.o display.o dwrapper.o klog.o stat.o table.o util.o 3015db2897SKrishnendu Sadhukhan - Sun Microsystems 3115db2897SKrishnendu Sadhukhan - Sun Microsystemsinclude ../Makefile.cmd 32*486c6fdaSRichard Loweinclude ../Makefile.cmd.64 3315db2897SKrishnendu Sadhukhan - Sun Microsystems 34*486c6fdaSRichard LoweCFLAGS += $(CCVERBOSE) 3515db2897SKrishnendu Sadhukhan - Sun Microsystems 36*486c6fdaSRichard LoweCERRWARN += $(CNOWARN_UNINIT) 37*486c6fdaSRichard Lowe 38*486c6fdaSRichard Lowe# smatch has problems parsing the glib header files 39*486c6fdaSRichard LoweSMATCH=off 40*486c6fdaSRichard Lowe 41*486c6fdaSRichard LoweCPPFLAGS += -DEMBED_CONFIGS -I$(ADJUNCT_PROTO)/usr/include/glib-2.0 \ 42*486c6fdaSRichard Lowe -I$(ADJUNCT_PROTO)/usr/lib/glib-2.0/include 43*486c6fdaSRichard LoweCSTD = $(CSTD_GNU99) 44*486c6fdaSRichard LoweLDLIBS += -lcurses -ldtrace 45*486c6fdaSRichard LoweNATIVE_LIBS += libglib-2.0.so 46*486c6fdaSRichard Loweall install := LDLIBS += -lglib-2.0 47*486c6fdaSRichard Lowe 48*486c6fdaSRichard LoweFILEMODE = 0555 49*486c6fdaSRichard Lowe 50*486c6fdaSRichard LoweWRAPOBJ = latencytop_wrap.o 51*486c6fdaSRichard Lowe 52*486c6fdaSRichard LoweCLEANFILES += $(OBJS) $(WRAPOBJ) ./latencytop_d ./latencytop_trans 5315db2897SKrishnendu Sadhukhan - Sun Microsystems 5415db2897SKrishnendu Sadhukhan - Sun Microsystems.KEEP_STATE: 5515db2897SKrishnendu Sadhukhan - Sun Microsystems 56*486c6fdaSRichard Loweall: $(PROG) 5715db2897SKrishnendu Sadhukhan - Sun Microsystems 58*486c6fdaSRichard Loweinstall: all $(ROOTPROG) 5915db2897SKrishnendu Sadhukhan - Sun Microsystems 60*486c6fdaSRichard Lowe$(PROG): $(OBJS) $(WRAPOBJ) 61*486c6fdaSRichard Lowe $(LINK.c) -o $@ $(OBJS) $(WRAPOBJ) $(LDLIBS) 62*486c6fdaSRichard Lowe $(POST_PROCESS) 63*486c6fdaSRichard Lowe 64*486c6fdaSRichard Lowelatencytop_d: latencytop.d 65*486c6fdaSRichard Lowe $(CP) $^ $@ 66*486c6fdaSRichard Lowe 67*486c6fdaSRichard Lowelatencytop_trans: latencytop.trans 68*486c6fdaSRichard Lowe $(CP) $^ $@ 69*486c6fdaSRichard Lowe 70*486c6fdaSRichard Lowe$(WRAPOBJ): latencytop_d latencytop_trans 71*486c6fdaSRichard Lowe $(ELFWRAP) -64 -o $(WRAPOBJ) latencytop_d \ 72*486c6fdaSRichard Lowe latencytop_trans 73*486c6fdaSRichard Lowe 74*486c6fdaSRichard Loweclean: 75*486c6fdaSRichard Lowe $(RM) $(CLEANFILES) 7615db2897SKrishnendu Sadhukhan - Sun Microsystems 7715db2897SKrishnendu Sadhukhan - Sun Microsystemsinclude ../Makefile.targ 78