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]
22 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # Copyright 2018 RackTop Systems.
28 FMADIR = $(SRC)/cmd/fm
29 EVERDIR = $(FMADIR)/eversholt
30 EVERCMNSRC = $(EVERDIR)/common
33 writer_WRTOBJ = eftwrite.o
36 CMNOBJS = alloc.o check.o eftread.o esclex.o io.o literals.o lut.o \
37 out.o ptree.o stable.o stats.o tree.o $($(EFTCLASS)_WRTOBJ)
39 COMMONOBJS = escparse.o $(CMNOBJS)
40 COMMONSRCS = $(COMMONOBJS:%.o=$(EVERCMNSRC)/%.c)
42 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
44 CPPFLAGS += -I$(EVERCMNSRC) -I.
45 CERRWARN += -Wno-uninitialized
46 CERRWARN += -Wno-unused-label
47 CERRWARN += -Wno-parentheses
48 CERRWARN += -Wno-switch
50 CTFCONVO = $(CTFCONVERT_O)
51 CTFMRG = $(CTFMERGE) -L VERSION -o $@ $(OBJS)
56 ROOTPDIR = $(ROOT)/usr/lib/fm
57 ROOTPROG = $(ROOTPDIR)/$(PROG)
59 install: $(PROG) $(ROOTPROG)
61 install_h: $(ROOTHDIR) $(ROOTHDRS)
67 %.o: $(EVERCMNSRC)/%.c
71 escparse.o: $(EVERCMNSRC)/escparse.y
72 $(YACC) -dtv $(EVERCMNSRC)/escparse.y
73 $(COMPILE.c) -DYYDEBUG -c -o $@ y.tab.c
79 $(ROOTPDIR)/%: % $(ROOTPDIR)