Makefile revision a192d1c0eb1d05a03ead3c7f898e864e4bf0399c
140N/A#
140N/A# This file and its contents are supplied under the terms of the
140N/A# Common Development and Distribution License ("CDDL"), version 1.0.
140N/A# You may only use this file in accordance with the terms of version
140N/A# 1.0 of the CDDL.
140N/A#
140N/A# A full copy of the text of the CDDL should have accompanied this
140N/A# source. A copy of the CDDL is also available via the Internet at
140N/A# http://www.illumos.org/license/CDDL.
140N/A#
140N/A
140N/A#
140N/A# Copyright (c) 2012 by Delphix. All rights reserved.
140N/A# Copyright 2016 Joyent, Inc.
140N/A#
140N/A
140N/Ainclude $(SRC)/cmd/Makefile.cmd
140N/Ainclude $(SRC)/test/Makefile.com
140N/A
140N/APROG = poll_test epoll_test
710N/AOBJS = $(PROG:%=%.o)
140N/ASRCS = $(OBJS:%.o=%.c)
140N/A
140N/Apoll_test := LDLIBS += -lsocket
140N/Apoll_test.ln := LDLIBS += -lsocket
710N/AC99MODE = -xc99=%all
618N/A
140N/AROOTOPTPKG = $(ROOT)/opt/os-tests
140N/ATESTDIR = $(ROOTOPTPKG)/tests
710N/A
710N/ACMDS = $(PROG:%=$(TESTDIR)/%)
140N/A$(CMDS) := FILEMODE = 0555
140N/A
140N/ALINTS = $(PROG:%=%.ln)
140N/A
140N/Aall: $(PROG)
140N/A
140N/Ainstall: all $(CMDS)
140N/A
140N/Alint: $(LINTS)
140N/A
140N/Aclobber: clean
140N/A -$(RM) $(PROG)
140N/A
140N/Aclean:
140N/A -$(RM) $(OBJS)
140N/A
140N/A%.ln: %.c
140N/A $(LINT.c) $< $(UTILS) $(LDLIBS)
140N/A
140N/A$(CMDS): $(TESTDIR) $(PROG)
140N/A
140N/A$(TESTDIR):
140N/A $(INS.dir)
140N/A
140N/A$(TESTDIR)/%: %
181N/A $(INS.file)
140N/A