diff options
Diffstat (limited to 'usr/src/cmd/fm/mcdecode/Makefile')
| -rw-r--r-- | usr/src/cmd/fm/mcdecode/Makefile | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/usr/src/cmd/fm/mcdecode/Makefile b/usr/src/cmd/fm/mcdecode/Makefile new file mode 100644 index 0000000000..6cfbde5556 --- /dev/null +++ b/usr/src/cmd/fm/mcdecode/Makefile @@ -0,0 +1,59 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2019 Joyent, Inc. +# + +include ../../Makefile.cmd +include ../../Makefile.ctf + +SRCS += mcdecode.c imc_decode.o imc_dump.o +OBJS = $(SRCS:%.c=%.o) + +PROG = mcdecode + +ROOTLIBFM = $(ROOT)/usr/lib/fm +ROOTLIBFMD = $(ROOT)/usr/lib/fm/fmd +ROOTPROG = $(ROOTLIBFMD)/$(PROG) + +$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG +CPPFLAGS += -I$(SRC)/uts/i86pc/io/imc +LDLIBS += -lnvpair + +CSTD = $(CSTD_GNU99) + +all: $(PROG) + +$(PROG): $(OBJS) + $(LINK.c) $(OBJS) -o $@ $(LDLIBS) + $(POST_PROCESS) + +%.o: %.c + $(COMPILE.c) $< + $(POST_PROCESS_O) + +%.o: $(SRC)/common/mc/imc/%.c + $(COMPILE.c) $< + $(POST_PROCESS_O) + +clean: + $(RM) $(OBJS) $(LINTFILES) + +clobber: clean + $(RM) $(PROG) + +$(ROOTLIBFMD)/%: % + $(INS.file) + +install_h: + +install: all $(ROOTPROG) |
