17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 58a40a695Sgavinm# Common Development and Distribution License (the "License"). 68a40a695Sgavinm# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 2267e3a03eSrie# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate# eft.so (the eversholt DE) 277c478bd9Sstevel@tonic-gate# 285661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gate.KEEP_STATE: 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gateEVERSRCDIR=../../../eversholt/common 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gateMODULE = eft 357c478bd9Sstevel@tonic-gateCLASS = common 368a40a695SgavinmDMOD = $(MODULE).so 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gateYSRCS=escparse.y 397c478bd9Sstevel@tonic-gateSRCS = alloc.c check.c config.c eft.c eftread.c esclex.c eval.c evnv.c \ 407aec1d6eScindi fme.c iexpr.c io.c ipath.c itree.c lut.c literals.c out.c platform.c \ 417c478bd9Sstevel@tonic-gate ptree.c stable.c stats.c tree.c 428a40a695SgavinmDMOD_SRCS = eft_mdb.c 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gateinclude ../../Makefile.plugin 457c478bd9Sstevel@tonic-gate 467c478bd9Sstevel@tonic-gateCPPFLAGS += -DFMAPLUGIN -I$(EVERSRCDIR) -I. 477014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 48*d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 497014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 507014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 517014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration 5267e3a03eSrie 535661bb76SJohn Levon# not linted 545661bb76SJohn LevonSMATCH=off 555661bb76SJohn Levon 5667e3a03eSrie$(PROG) := LDFLAGS += -R/usr/lib/fm 5767e3a03eSrie$(PROG) := LDLIBS += -L$(ROOTLIB)/fm -ltopo 587c478bd9Sstevel@tonic-gate 597aec1d6eScindiCLEANFILES += y.tab.h y.tab.c 607aec1d6eScindi 617c478bd9Sstevel@tonic-gateesclex.o: escparse.o 627c478bd9Sstevel@tonic-gate 637c478bd9Sstevel@tonic-gate%.o: $(EVERSRCDIR)/%.c 647c478bd9Sstevel@tonic-gate $(COMPILE.c) $< 657c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gate%.ln: $(EVERSRCDIR)/%.c 687c478bd9Sstevel@tonic-gate $(LINT.c) -c $< 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gateescparse.o: $(EVERSRCDIR)/escparse.y 717aec1d6eScindi $(YACC) -dt $(EVERSRCDIR)/escparse.y 727c478bd9Sstevel@tonic-gate $(COMPILE.c) -DYYDEBUG -c -o $@ y.tab.c 737c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 74