Makefile.subdirs revision d583b39bfb4e2571d3e41097c5c357ffe353ad45
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger#
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# This file and its contents are supplied under the terms of the
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# Common Development and Distribution License ("CDDL"), version 1.0.
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# You may only use this file in accordance with the terms of version
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# 1.0 of the CDDL.
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger#
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# A full copy of the text of the CDDL should have accompanied this
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# source. A copy of the CDDL is also available via the Internet at
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# http://www.illumos.org/license/CDDL.
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger#
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger#
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger# Copyright (c) 2012 by Delphix. All rights reserved.
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger#
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulingerinclude $(SRC)/test/Makefile.com
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerROOTOPTPKG = $(ROOT)/opt/zfs-tests
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerROOTBIN = $(ROOTOPTPKG)/bin
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerOBJS = $(PROG:%=%.o)
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerSRCS = $(OBJS:%.o=%.c)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerCMDS = $(PROG:%=$(ROOTBIN)/%)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger$(CMDS) := FILEMODE = 0555
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof TulingerCPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulingerall: $(PROG)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger$(PROG): $(OBJS)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(POST_PROCESS)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger%.o: ../%.c
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(COMPILE.c) $<
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
4095b5839a2805b2313532c995ad3d444f596d03Kryštof Tulingerinstall: all $(CMDS)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulingerlint: lint_SRCS
4095b5839a2805b2313532c995ad3d444f596d03Kryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulingerclobber: clean
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger -$(RM) $(PROG)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulingerclean:
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger -$(RM) $(OBJS)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger$(CMDS): $(ROOTBIN) $(PROG)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger$(ROOTBIN):
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(INS.dir)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger$(ROOTBIN)/%: %
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger $(INS.file)
838924562130977ca1a3d3839d146fcda39ea1afKryštof Tulinger