Merge commit 'bf62a5c5b223db5d80a4a241cf0cfb34f8c8ca73'
[unleashed.git] / usr / src / cmd / fm / eversholt / Makefile.esc.com
blob24529b4e79dc1afbd444a645ce5a5f7e783fffe2
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
20
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
32 EFTCLASS = reader
33 writer_WRTOBJ = eftwrite.o
34 reader_WRTOBJ =
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)
53 debug := COPTFLAG =
54 debug := COPTFLAG64 =
56 ROOTPDIR = $(ROOT)/usr/lib/fm
57 ROOTPROG = $(ROOTPDIR)/$(PROG)
59 install: $(PROG) $(ROOTPROG)
61 install_h: $(ROOTHDIR) $(ROOTHDRS)
63 %.o: %.c
64         $(COMPILE.c) $<
65         $(CTFCONVO)
67 %.o: $(EVERCMNSRC)/%.c
68         $(COMPILE.c) $<
69         $(CTFCONVO)
71 escparse.o: $(EVERCMNSRC)/escparse.y
72         $(YACC) -dtv $(EVERCMNSRC)/escparse.y
73         $(COMPILE.c) -DYYDEBUG -c -o $@ y.tab.c
74         $(CTFCONVO)
76 $(ROOTPDIR):
77         $(INS.dir)
79 $(ROOTPDIR)/%: % $(ROOTPDIR)
80         $(INS.file)