1*f37b3cbbSMatt Barden# 2*f37b3cbbSMatt Barden# This file and its contents are supplied under the terms of the 3*f37b3cbbSMatt Barden# Common Development and Distribution License ("CDDL"), version 1.0. 4*f37b3cbbSMatt Barden# You may only use this file in accordance with the terms of version 5*f37b3cbbSMatt Barden# 1.0 of the CDDL. 6*f37b3cbbSMatt Barden# 7*f37b3cbbSMatt Barden# A full copy of the text of the CDDL should have accompanied this 8*f37b3cbbSMatt Barden# source. A copy of the CDDL is also available via the Internet at 9*f37b3cbbSMatt Barden# http://www.illumos.org/license/CDDL. 10*f37b3cbbSMatt Barden# 11*f37b3cbbSMatt Barden 12*f37b3cbbSMatt Barden# 13*f37b3cbbSMatt Barden# Copyright (c) 2012 by Delphix. All rights reserved. 14*f37b3cbbSMatt Barden# Copyright 2017 Gordon W. Ross 15*f37b3cbbSMatt Barden# Copyright (c) 2018, Joyent, Inc. 16*f37b3cbbSMatt Barden# Copyright 2020 OmniOS Community Edition (OmniOSce) Association. 17*f37b3cbbSMatt Barden# Copyright 2020 Tintri by DDN, Inc. All rights reserved. 18*f37b3cbbSMatt Barden# 19*f37b3cbbSMatt Barden 20*f37b3cbbSMatt Bardeninclude $(SRC)/cmd/Makefile.cmd 21*f37b3cbbSMatt Bardeninclude $(SRC)/test/Makefile.com 22*f37b3cbbSMatt Barden 23*f37b3cbbSMatt BardenPROG = ksid.32 ksid.64 24*f37b3cbbSMatt Barden 25*f37b3cbbSMatt BardenLDLIBS += -lfakekernel 26*f37b3cbbSMatt BardenLDLIBS64 += -lfakekernel 27*f37b3cbbSMatt Barden 28*f37b3cbbSMatt BardenCSTD = $(CSTD_GNU99) 29*f37b3cbbSMatt BardenCPPFLAGS.first += -I$(SRC)/lib/libfakekernel/common -D_FAKE_KERNEL 30*f37b3cbbSMatt Barden 31*f37b3cbbSMatt BardenROOTOPTPKG = $(ROOT)/opt/os-tests 32*f37b3cbbSMatt BardenTESTDIR = $(ROOTOPTPKG)/tests/ksid 33*f37b3cbbSMatt Barden 34*f37b3cbbSMatt BardenCMDS = $(PROG:%=$(TESTDIR)/%) 35*f37b3cbbSMatt Barden$(CMDS) := FILEMODE = 0555 36*f37b3cbbSMatt Barden 37*f37b3cbbSMatt Bardenall: $(PROG) 38*f37b3cbbSMatt Barden 39*f37b3cbbSMatt Bardeninstall: $(CMDS) 40*f37b3cbbSMatt Barden 41*f37b3cbbSMatt Bardenclobber: clean 42*f37b3cbbSMatt Barden -$(RM) $(PROG) 43*f37b3cbbSMatt Barden 44*f37b3cbbSMatt Bardenclean: 45*f37b3cbbSMatt Barden 46*f37b3cbbSMatt Barden$(CMDS): $(TESTDIR) $(PROG) 47*f37b3cbbSMatt Barden 48*f37b3cbbSMatt Barden$(TESTDIR): 49*f37b3cbbSMatt Barden $(INS.dir) 50*f37b3cbbSMatt Barden 51*f37b3cbbSMatt Barden$(TESTDIR)/%: % 52*f37b3cbbSMatt Barden $(INS.file) 53*f37b3cbbSMatt Barden 54*f37b3cbbSMatt Barden%.64: %.c 55*f37b3cbbSMatt Barden $(LINK64.c) -o $@ $< $(LDLIBS64) 56*f37b3cbbSMatt Barden $(POST_PROCESS) 57*f37b3cbbSMatt Barden 58*f37b3cbbSMatt Barden%.32: %.c 59*f37b3cbbSMatt Barden $(LINK.c) -o $@ $< $(LDLIBS) 60*f37b3cbbSMatt Barden $(POST_PROCESS) 61