Makefile.subdirs revision d583b39bfb4e2571d3e41097c5c357ffe353ad45
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# This file and its contents are supplied under the terms of the
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# Common Development and Distribution License ("CDDL"), version 1.0.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# You may only use this file in accordance with the terms of version
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# 1.0 of the CDDL.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# A full copy of the text of the CDDL should have accompanied this
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# source. A copy of the CDDL is also available via the Internet at
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# Copyright (c) 2012 by Delphix. All rights reserved.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyROOTOPTPKG = $(ROOT)/opt/zfs-tests
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyROOTBIN = $(ROOTOPTPKG)/bin
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyOBJS = $(PROG:%=%.o)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedySRCS = $(OBJS:%.o=%.c)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyCMDS = $(PROG:%=$(ROOTBIN)/%)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy$(CMDS) := FILEMODE = 0555
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyCPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy$(PROG): $(OBJS)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy $(POST_PROCESS)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyinstall: all $(CMDS)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedylint: lint_SRCS
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy -$(RM) $(PROG)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy -$(RM) $(OBJS)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy$(CMDS): $(ROOTBIN) $(PROG)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy$(ROOTBIN)/%: %