Makefile revision 8c4f9701439555b41fbfe7848508f53b52166007
363N/A#
363N/A# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
363N/A#
363N/A
363N/A#
363N/A# BSD 3 Clause License
363N/A#
363N/A# Copyright (c) 2007, The Storage Networking Industry Association.
363N/A#
363N/A# Redistribution and use in source and binary forms, with or without
363N/A# modification, are permitted provided that the following conditions
363N/A# are met:
363N/A# - Redistributions of source code must retain the above copyright
363N/A# notice, this list of conditions and the following disclaimer.
363N/A#
363N/A# - Redistributions in binary form must reproduce the above copyright
363N/A# notice, this list of conditions and the following disclaimer in
363N/A# the documentation and/or other materials provided with the
363N/A# distribution.
363N/A#
3621N/A# - Neither the name of The Storage Networking Industry Association (SNIA)
363N/A# nor the names of its contributors may be used to endorse or promote
364N/A# products derived from this software without specific prior written
363N/A# permission.
797N/A#
797N/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
797N/A# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
797N/A# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
797N/A# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
797N/A# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
5169N/A# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
797N/A# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
797N/A# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
5169N/A# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
797N/A# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
797N/A# POSSIBILITY OF SUCH DAMAGE.
797N/A#
827N/APROG = ndmpd
5169N/A
797N/Ainclude $(SRC)/cmd/Makefile.cmd
2931N/A
363N/ANDMP_DIR = ndmp
5169N/ATLM_DIR = tlm
2899N/A
4368N/Ainclude $(NDMP_DIR)/Makefile.rpcgen
4368N/A
4368N/ACFLAGS += $(CCVERBOSE)
4368N/A
4368N/ACPPFLAGS += $(LFLAGS64)
4368N/A
4368N/ACPPFLAGS += -D_FILE_OFFSET_BITS=64 -DDEBUG
3817N/ACPPFLAGS += -I. -Iinclude
3817N/A
3817N/AC99MODE = $(C99_ENABLE)
3817N/A
363N/A# lint does not like unused _umem_*_init
364N/ALINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2
1845N/A
1845N/A# function argument declared inconsistently
1845N/ALINTFLAGS += -xerroff=E_INCONS_ARG_DECL2
364N/A# value type used inconsistently
797N/ALINTFLAGS += -xerroff=E_INCONS_VAL_TYPE_USED2
797N/A# value type declared inconsistently
797N/ALINTFLAGS += -xerroff=E_INCONS_VAL_TYPE_DECL2
363N/A# argument used inconsistently
363N/ALINTFLAGS += -xerroff=E_INCONS_ARG_USED2
363N/A
5123N/ALDLIBS += -lsocket -lnsl -lzfs -lsec -lndmp -lmd5 -lnvpair -lumem -lbsm -lgen -lcmdutils
5123N/A
5123N/AOBJS= \
5123N/A $(NDMP_DIR)/ndmp_xdr.o \
5123N/A $(NDMP_OBJ:%.o=$(NDMP_DIR)/%.o) $(TLM_OBJ:%.o=$(TLM_DIR)/%.o)
777N/A
777N/ANDMP_OBJ = \
777N/A ndmpd_callbacks.o \
777N/A ndmpd_chkpnt.o \
777N/A ndmpd_comm.o \
363N/A ndmpd_config.o \
363N/A ndmpd_connect.o \
363N/A ndmpd_data.o \
363N/A ndmpd_door.o \
363N/A ndmpd_dtime.o \
363N/A ndmpd_fhistory.o \
797N/A ndmpd_handler.o \
363N/A ndmpd_log.o \
363N/A ndmpd_main.o \
363N/A ndmpd_mark.o \
363N/A ndmpd_mover.o \
363N/A ndmpd_prop.o \
363N/A ndmpd_scsi.o \
363N/A ndmpd_tape.o \
363N/A ndmpd_tar.o \
363N/A ndmpd_tar3.o \
363N/A ndmpd_util.o \
363N/A ndmpd_zfs.o
363N/A
363N/ATLM_OBJ = \
363N/A tlm_backup_reader.o \
363N/A tlm_bitmap.o \
363N/A tlm_buffers.o \
363N/A tlm_info.o \
363N/A tlm_init.o \
363N/A tlm_lib.o \
363N/A tlm_restore_writer.o \
363N/A tlm_traverse.o \
363N/A tlm_util.o \
363N/A tlm_hardlink.o
363N/A
1426N/ASRCS= $(NDMP_OBJ:%.o=$(NDMP_DIR)/%.c) $(TLM_OBJ:%.o=$(TLM_DIR)/%.c)
363N/A
363N/ASVCMETHOD = svc-ndmp
363N/A$(ROOTSVCMETHOD) := FILEMODE = 0555
363N/A
1426N/AMANIFEST = ndmp.xml
4371N/AROOTMANIFESTDIR= $(ROOTSVCSYSTEM)
4371N/A$(ROOTMANIFEST) := FILEMODE = 444
4907N/A
4371N/AROOTNDMPDDIR= $(ROOTLIB)/ndmp
363N/AROOTNDMPDFILE = $(PROG:%=$(ROOTNDMPDDIR)/%)
363N/A
363N/AFILEMODE = 0444
363N/A$(ROOTNDMPDFILE):= FILEMODE = 0555
363N/A
1426N/A$(ROOTNDMPDDIR):
797N/A $(INS.dir)
797N/A
797N/A$(ROOTNDMPDDIR)/%: %
363N/A $(INS.file)
363N/A
363N/A.KEEP_STATE:
363N/A
363N/Aall: $(PROG)
363N/A
363N/Ainstall: all $(ROOTNDMPDDIR) $(ROOTNDMPDFILE) $(ROOTSVCMETHOD) $(ROOTMANIFEST)
363N/A
797N/Acheck: $(CHKMANIFEST)
797N/A
797N/Aclobber:
797N/A
797N/A$(PROG) : $(OBJS)
797N/A $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
797N/A $(POST_PROCESS)
797N/A
797N/A$(NDMP_DIR)/%.o : $(NDMP_DIR)/%.c
797N/A $(COMPILE.c) -o $@ $<
797N/A
797N/A$(TLM_DIR)/%.o : $(TLM_DIR)/%.c
797N/A $(COMPILE.c) -o $@ $<
797N/A
797N/Alint: lint_SRCS
797N/A
797N/Aclean: rpcclean
797N/A rm -f $(NDMP_DIR)/*.o $(TLM_DIR)/*.o
1426N/A
1426N/Ainclude $(SRC)/cmd/Makefile.targ
797N/A