Makefile revision fc2512cfb727d49529d8ed99164db871f4829b73
2N/A#
2N/A# This file and its contents are supplied under the terms of the
2N/A# Common Development and Distribution License ("CDDL"), version 1.0.
2N/A# You may only use this file in accordance with the terms of version
2N/A# 1.0 of the CDDL.
2N/A#
2N/A# A full copy of the text of the CDDL should have accompanied this
2N/A# source. A copy of the CDDL is also available via the Internet at
2N/A# http://www.illumos.org/license/CDDL.
2N/A#
2N/A
2N/A#
2N/A# Copyright (c) 2012 by Delphix. All rights reserved.
2N/A# Copyright 2015 Garrett D'Amore <garrett@damore.org>
2N/A# Copyright 2016 Joyent, Inc.
2N/A#
2N/A
2N/ASUBDIRS = \
2N/A catopen \
2N/A fpround \
2N/A newlocale \
2N/A nl_langinfo \
2N/A priv_gettext \
2N/A random \
2N/A strerror \
2N/A symbols \
2N/A wcsrtombs \
2N/A wctype
2N/A
2N/APROGS = \
2N/A aligned_alloc \
2N/A c11_threads \
2N/A c11_tss \
2N/A call_once \
2N/A quick_exit_order \
2N/A quick_exit_status \
2N/A timespec_get
2N/A
2N/ASCRIPTS = \
2N/A quick_exit
2N/A
2N/ACPPFLAGS += -D_REENTRANT
2N/A
2N/APROGS32 = $(PROGS:%=%.32)
2N/APROGS64 = $(PROGS:%=%.64)
2N/A
2N/Aaligned_alloc.32 := LDLIBS += -lproc
2N/Aaligned_alloc.64 := LDLIBS64 += -lproc
2N/A
2N/AROOTOPTDIR = $(ROOT)/opt/libc-tests/tests
2N/AROOTOPTPROGS = $(PROGS32:%=$(ROOTOPTDIR)/%) \
2N/A $(PROGS64:%=$(ROOTOPTDIR)/%) \
$(SCRIPTS:%=$(ROOTOPTDIR)/%)
include $(SRC)/cmd/Makefile.cmd
all := TARGET = all
install := TARGET = install
clean := TARGET = clean
clobber := TARGET = clobber
lint := TARGET = lint
.KEEP_STATE:
install: $(SUBDIRS) $(ROOTOPTPROGS)
all: $(SUBDIRS) $(PROGS32) $(PROGS64)
clean lint: $(SUBDIRS)
$(ROOTOPTPROGS): $(PROGS32) $(PROGS64) $(ROOTOPTDIR)
$(ROOTOPTDIR):
$(INS.dir)
$(ROOTOPTDIR)/%: %
$(INS.file)
$(ROOTOPTDIR)/%: %.ksh
$(INS.rename)
%.64: %.c
$(LINK.c) -m64 -o $@ $< $(LDLIBS64)
$(POST_PROCESS)
%.32: %.c
$(LINK.c) -m32 -o $@ $< $(LDLIBS)
$(POST_PROCESS)
clobber: $(SUBDIRS)
$(RM) $(PROGS32) $(PROGS64)
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC: