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