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.
26 FMADIR = $(SRC)/cmd/fm
27 EVERDIR = $(FMADIR)/eversholt
28 EVERCMNSRC = $(EVERDIR)/common
31 writer_WRTOBJ = eftwrite.o
34 CMNOBJS = alloc.o check.o eftread.o esclex.o io.o literals.o lut.o \
35 out.o ptree.o stable.o stats.o tree.o $($(EFTCLASS)_WRTOBJ)
37 COMMONOBJS = escparse.o $(CMNOBJS)
38 COMMONSRCS = $(COMMONOBJS:%.o=$(EVERCMNSRC)/%.c)
40 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
42 CPPFLAGS += -I$(EVERCMNSRC) -I.
43 CERRWARN += -Wno-uninitialized
44 CERRWARN += -Wno-unused-label
45 CERRWARN += -Wno-parentheses
46 CERRWARN += -Wno-switch
48 CTFCONVO = $(CTFCONVERT_O)
49 CTFMRG = $(CTFMERGE) -L VERSION -o $@ $(OBJS)
54 ROOTPDIR = $(ROOT)/usr/lib/fm
55 ROOTPROG = $(ROOTPDIR)/$(PROG)
57 install: $(PROG) $(ROOTPROG)
59 install_h: $(ROOTHDIR) $(ROOTHDRS)
65 %.o: $(EVERCMNSRC)/%.c
69 escparse.o: $(EVERCMNSRC)/escparse.y
70 $(YACC) -dtv $(EVERCMNSRC)/escparse.y
71 $(COMPILE.c) -DYYDEBUG -c -o $@ y.tab.c
77 $(ROOTPDIR): $(ROOT)/usr/lib/fm