b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi#
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi# This file and its contents are supplied under the terms of the
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0.
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi# You may only use this file in accordance with the terms of version
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi# 1.0 of the CDDL.
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi#
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi# A full copy of the text of the CDDL should have accompanied this
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi# source. A copy of the CDDL is also available via the Internet at
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi# http://www.illumos.org/license/CDDL.
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi#
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi#
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi# Copyright 2015 Joyent, Inc.
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi#
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchiinclude $(SRC)/Makefile.master
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi
b599bd937c305a895426e8c412ca920ce7824850Robert MustacchiROOTOPTPKG = $(ROOT)/opt/libc-tests
b599bd937c305a895426e8c412ca920ce7824850Robert MustacchiTESTDIR = $(ROOTOPTPKG)/tests
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi
b599bd937c305a895426e8c412ca920ce7824850Robert MustacchiPROGS = priv_gettext
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchiinclude $(SRC)/cmd/Makefile.cmd
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchiinclude $(SRC)/test/Makefile.com
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi
b599bd937c305a895426e8c412ca920ce7824850Robert MustacchiCMDS = $(PROGS:%=$(TESTDIR)/%)
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi$(CMDS) := FILEMODE = 0555
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchiall: $(PROGS)
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchiinstall: all $(CMDS)
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchilint:
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchiclobber: clean
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi -$(RM) $(PROGS)
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchiclean:
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi -$(RM) *.o
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi$(CMDS): $(TESTDIR) $(PROGS)
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi$(TESTDIR):
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi $(INS.dir)
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi$(TESTDIR)/%: %
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi $(INS.file)
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi$(TESTDIR)/%: %
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi $(INS.file)