17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*5f01ecd8SToomas Soome# Common Development and Distribution License (the "License"). 6*5f01ecd8SToomas Soome# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 21*5f01ecd8SToomas Soome# 22*5f01ecd8SToomas Soome# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 25*5f01ecd8SToomas Soome# Copyright (c) 2018, Joyent, Inc. 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gatePROG= swap 28*5f01ecd8SToomas SoomeOBJS= $(PROG).o 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gateinclude ../Makefile.cmd 31*5f01ecd8SToomas Soomeinclude ../Makefile.cmd.64 32*5f01ecd8SToomas Soomeinclude ../Makefile.ctf 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gateCPPFLAGS += -D_LARGEFILE64_SOURCE 35*5f01ecd8SToomas SoomeCFLAGS64 += $(CCVERBOSE) 36*5f01ecd8SToomas SoomeLDLIBS += -ldiskmgt -lcmdutils 377c478bd9Sstevel@tonic-gate 38*5f01ecd8SToomas SoomeCSTD= $(CSTD_GNU99) 39*5f01ecd8SToomas Soome 40*5f01ecd8SToomas SoomeFILEMODE=02555 41*5f01ecd8SToomas Soome 42*5f01ecd8SToomas SoomeCLEANFILES += $(OBJS) 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gateROOTSYMLINK = $(ROOTETCPROG) 457c478bd9Sstevel@tonic-gate 467c478bd9Sstevel@tonic-gate.KEEP_STATE: 477c478bd9Sstevel@tonic-gate 48*5f01ecd8SToomas Soomeall: $(PROG) 49*5f01ecd8SToomas Soome 50*5f01ecd8SToomas Soomeinstall: all $(ROOTUSRSBINPROG) $(ROOTSYMLINK) 51*5f01ecd8SToomas Soome 52*5f01ecd8SToomas Soome$(PROG): $(OBJS) 53*5f01ecd8SToomas Soome $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 54*5f01ecd8SToomas Soome $(POST_PROCESS) 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gate$(ROOTSYMLINK): 577c478bd9Sstevel@tonic-gate $(RM) $@; $(SYMLINK) ../usr/sbin/$(PROG) $@ 587c478bd9Sstevel@tonic-gate 59*5f01ecd8SToomas Soomeclean: 60*5f01ecd8SToomas Soome $(RM) $(CLEANFILES) 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gateinclude ../Makefile.targ 63