xref: /illumos-gate/usr/src/test/os-tests/tests/idmap/Makefile (revision 24987e92ed84693f7d1351de150743664658894f)
1*24987e92SBill Sommerfeld#
2*24987e92SBill Sommerfeld# This file and its contents are supplied under the terms of the
3*24987e92SBill Sommerfeld# Common Development and Distribution License ("CDDL"), version 1.0.
4*24987e92SBill Sommerfeld# You may only use this file in accordance with the terms of version
5*24987e92SBill Sommerfeld# 1.0 of the CDDL.
6*24987e92SBill Sommerfeld#
7*24987e92SBill Sommerfeld# A full copy of the text of the CDDL should have accompanied this
8*24987e92SBill Sommerfeld# source.  A copy of the CDDL is also available via the Internet at
9*24987e92SBill Sommerfeld# http://www.illumos.org/license/CDDL.
10*24987e92SBill Sommerfeld#
11*24987e92SBill Sommerfeld
12*24987e92SBill Sommerfeld#
13*24987e92SBill Sommerfeld# Copyright 2025 Bill Sommerfeld
14*24987e92SBill Sommerfeld#
15*24987e92SBill Sommerfeld
16*24987e92SBill Sommerfeldinclude $(SRC)/cmd/Makefile.cmd
17*24987e92SBill Sommerfeldinclude $(SRC)/test/Makefile.com
18*24987e92SBill Sommerfeld
19*24987e92SBill SommerfeldPROG =	idmaptest.32 idmaptest.64
20*24987e92SBill Sommerfeld
21*24987e92SBill SommerfeldSCRIPTS = idmap_init idmap_fini
22*24987e92SBill Sommerfeld
23*24987e92SBill SommerfeldLDLIBS += -lidmap
24*24987e92SBill SommerfeldLDLIBS64 += -lidmap
25*24987e92SBill Sommerfeld
26*24987e92SBill SommerfeldCSTD = $(CSTD_GNU17)
27*24987e92SBill Sommerfeld
28*24987e92SBill SommerfeldROOTOPTPKG = $(ROOT)/opt/os-tests
29*24987e92SBill SommerfeldTESTDIR = $(ROOTOPTPKG)/tests/idmap
30*24987e92SBill Sommerfeld
31*24987e92SBill SommerfeldCMDS = $(PROG:%=$(TESTDIR)/%) \
32*24987e92SBill Sommerfeld	$(SCRIPTS:%=$(TESTDIR)/%)
33*24987e92SBill Sommerfeld$(CMDS) := FILEMODE = 0555
34*24987e92SBill Sommerfeld
35*24987e92SBill Sommerfeldall: $(PROG)
36*24987e92SBill Sommerfeld
37*24987e92SBill Sommerfeldinstall: $(CMDS)
38*24987e92SBill Sommerfeld
39*24987e92SBill Sommerfeldclobber: clean
40*24987e92SBill Sommerfeld	-$(RM) $(PROG)
41*24987e92SBill Sommerfeld
42*24987e92SBill Sommerfeldclean:
43*24987e92SBill Sommerfeld
44*24987e92SBill Sommerfeld$(CMDS): $(TESTDIR) $(PROG)
45*24987e92SBill Sommerfeld
46*24987e92SBill Sommerfeld$(TESTDIR):
47*24987e92SBill Sommerfeld	$(INS.dir)
48*24987e92SBill Sommerfeld
49*24987e92SBill Sommerfeld$(TESTDIR)/%: %
50*24987e92SBill Sommerfeld	$(INS.file)
51*24987e92SBill Sommerfeld
52*24987e92SBill Sommerfeld$(TESTDIR)/%: %.ksh
53*24987e92SBill Sommerfeld	$(INS.rename)
54*24987e92SBill Sommerfeld
55*24987e92SBill Sommerfeld%.64: %.c
56*24987e92SBill Sommerfeld	$(LINK64.c) -o $@ $< $(LDLIBS64)
57*24987e92SBill Sommerfeld	$(POST_PROCESS)
58*24987e92SBill Sommerfeld
59*24987e92SBill Sommerfeld%.32: %.c
60*24987e92SBill Sommerfeld	$(LINK.c) -o $@ $< $(LDLIBS)
61*24987e92SBill Sommerfeld	$(POST_PROCESS)
62