xref: /illumos-gate/usr/src/test/util-tests/tests/ar/Makefile (revision fb25420ba8dbfa4c292d42c87555eee97a474854)
1*fb25420bSRobert Mustacchi#
2*fb25420bSRobert Mustacchi# This file and its contents are supplied under the terms of the
3*fb25420bSRobert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0.
4*fb25420bSRobert Mustacchi# You may only use this file in accordance with the terms of version
5*fb25420bSRobert Mustacchi# 1.0 of the CDDL.
6*fb25420bSRobert Mustacchi#
7*fb25420bSRobert Mustacchi# A full copy of the text of the CDDL should have accompanied this
8*fb25420bSRobert Mustacchi# source.  A copy of the CDDL is also available via the Internet at
9*fb25420bSRobert Mustacchi# http://www.illumos.org/license/CDDL.
10*fb25420bSRobert Mustacchi#
11*fb25420bSRobert Mustacchi
12*fb25420bSRobert Mustacchi#
13*fb25420bSRobert Mustacchi# Copyright 2021 Oxide Computer Company
14*fb25420bSRobert Mustacchi#
15*fb25420bSRobert Mustacchi
16*fb25420bSRobert Mustacchiinclude $(SRC)/cmd/Makefile.cmd
17*fb25420bSRobert Mustacchiinclude $(SRC)/test/Makefile.com
18*fb25420bSRobert Mustacchi
19*fb25420bSRobert MustacchiROOTOPTPKG = $(ROOT)/opt/util-tests/tests
20*fb25420bSRobert MustacchiROOTOPTPKGAR = $(ROOT)/opt/util-tests/tests/ar
21*fb25420bSRobert MustacchiPROG = artest
22*fb25420bSRobert MustacchiOBJS = ar_test0.o ar_test1.o
23*fb25420bSRobert Mustacchi
24*fb25420bSRobert MustacchiROOTPROG = $(PROG:%=$(ROOTOPTPKGAR)/%)
25*fb25420bSRobert MustacchiROOTOBJS = $(OBJS:%=$(ROOTOPTPKGAR)/%)
26*fb25420bSRobert Mustacchi
27*fb25420bSRobert Mustacchi$(ROOTOBJS) := FILEMODE = 0444
28*fb25420bSRobert Mustacchi
29*fb25420bSRobert Mustacchiall: $(OBJS)
30*fb25420bSRobert Mustacchi
31*fb25420bSRobert Mustacchiinstall: $(ROOTPROG) $(ROOTOBJS)
32*fb25420bSRobert Mustacchi
33*fb25420bSRobert Mustacchiclobber: clean
34*fb25420bSRobert Mustacchi
35*fb25420bSRobert Mustacchiclean:
36*fb25420bSRobert Mustacchi	$(RM) $(OBJS)
37*fb25420bSRobert Mustacchi
38*fb25420bSRobert Mustacchi$(ROOTOPTPKG):
39*fb25420bSRobert Mustacchi	$(INS.dir)
40*fb25420bSRobert Mustacchi
41*fb25420bSRobert Mustacchi$(ROOTOPTPKGAR): $(ROOTOPTPKG)
42*fb25420bSRobert Mustacchi	$(INS.dir)
43*fb25420bSRobert Mustacchi
44*fb25420bSRobert Mustacchi$(ROOTOPTPKGAR)/%: %.ksh $(ROOTOPTPKGAR)
45*fb25420bSRobert Mustacchi	$(INS.rename)
46*fb25420bSRobert Mustacchi
47*fb25420bSRobert Mustacchi$(ROOTOPTPKGAR)/%.o: %.o
48*fb25420bSRobert Mustacchi	$(INS.file)
49