Index: dumpadm/usr/src/cmd/savecore/Makefile =================================================================== --- dumpadm.orig/usr/src/cmd/savecore/Makefile 2012-10-08 04:25:33.000000000 +0400 +++ dumpadm/usr/src/cmd/savecore/Makefile 2013-05-10 15:50:48.430525002 +0400 @@ -31,29 +31,8 @@ PROG= savecore include ../Makefile.cmd - -SUBDIRS = $(MACH) -$(BUILD64)SUBDIRS += $(MACH64) - -all := TARGET = all -install := TARGET = install -clean := TARGET = clean -clobber := TARGET = clobber -lint := TARGET = lint - -.KEEP_STATE: - -all: $(SUBDIRS) - -clean clobber lint: $(SUBDIRS) - -install: $(SUBDIRS) - -$(RM) $(ROOTPROG) - -$(LN) $(ISAEXEC) $(ROOTPROG) - -$(SUBDIRS): FRC - @cd $@; pwd; $(MAKE) $(TARGET) - -FRC: +include Makefile.com +LDLIBS += -lfmevent -lnvpair +install: all $(ROOTPROG) include ../Makefile.targ Index: dumpadm/usr/src/cmd/savecore/Makefile.com =================================================================== --- dumpadm.orig/usr/src/cmd/savecore/Makefile.com 2012-10-08 04:25:33.000000000 +0400 +++ dumpadm/usr/src/cmd/savecore/Makefile.com 2013-05-10 15:51:30.959388322 +0400 @@ -23,10 +23,10 @@ # PROG= savecore -SRCS= ../savecore.c ../../../uts/common/os/compress.c +SRCS= savecore.c ../../uts/common/os/compress.c OBJS= savecore.o compress.o -include ../../Makefile.cmd +include ../Makefile.cmd C99MODE = $(C99_ENABLE) @@ -79,16 +79,16 @@ lint: $(LINTSRCS) $(LINT.c) $(SRCS) $(LDLIBS) -include ../../Makefile.targ +include ../Makefile.targ -%.o: ../%.c +%.o: %.c $(COMPILE.c) -I$(SRC)/common $< $(POST_PROCESS_O) -%.o: ../../../uts/common/os/%.c +%.o: ../../uts/common/os/%.c $(COMPILE.c) $< $(POST_PROCESS_O) -bz2%.o: ../../../common/bzip2/%.c +bz2%.o: ../../common/bzip2/%.c $(COMPILE.c) -o $@ -I$(SRC)/common -I$(SRC)/common/bzip2 $< $(POST_PROCESS_O)