de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# This file and its contents are supplied under the terms of the
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# You may only use this file in accordance with the terms of version
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# 1.0 of the CDDL.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# source. A copy of the CDDL is also available via the Internet at
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# http://www.illumos.org/license/CDDL.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org>
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreinclude $(SRC)/Makefile.master
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'AmoreTESTSUBDIR = symbols
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'AmorePROG = symbols_test
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'AmoreKSHPROG = setup
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'AmoreSYMTESTS = \
fc2512cfb727d49529d8ed99164db871f4829b73Robert Mustacchi assert_h \
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore ctype_h \
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore dirent_h \
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore fcntl_h \
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore locale_h \
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore math_h \
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore netdb_h \
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore pthread_h \
fc2512cfb727d49529d8ed99164db871f4829b73Robert Mustacchi stdalign_h \
fc2512cfb727d49529d8ed99164db871f4829b73Robert Mustacchi stddef_h \
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore signal_h \
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore stdio_h \
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore stdlib_h \
fc2512cfb727d49529d8ed99164db871f4829b73Robert Mustacchi stdnoreturn_h \
b599bd937c305a895426e8c412ca920ce7824850Robert Mustacchi string_h \
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore strings_h \
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore sys_stat_h \
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore sys_time_h \
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore sys_timeb_h \
fc2512cfb727d49529d8ed99164db871f4829b73Robert Mustacchi time_h \
fc2512cfb727d49529d8ed99164db871f4829b73Robert Mustacchi threads_h \
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore ucontext_h \
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore unistd_h \
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore wchar_h \
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore wctype_h
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'AmoreEXTRAPROG += $(SYMTESTS)
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreinclude ../Makefile.com
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore
fc2512cfb727d49529d8ed99164db871f4829b73Robert Mustacchi#
fc2512cfb727d49529d8ed99164db871f4829b73Robert Mustacchi# Since we use libcmdutils which is LF64, we need to be LF64 even though we're
fc2512cfb727d49529d8ed99164db871f4829b73Robert Mustacchi# not using the LF64 related features at the moment, lint catches us otherwise.
fc2512cfb727d49529d8ed99164db871f4829b73Robert Mustacchi#
fc2512cfb727d49529d8ed99164db871f4829b73Robert MustacchiCPPFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
fc2512cfb727d49529d8ed99164db871f4829b73Robert Mustacchi
fc2512cfb727d49529d8ed99164db871f4829b73Robert MustacchiLDLIBS += -lcmdutils
fc2512cfb727d49529d8ed99164db871f4829b73Robert MustacchiLDLIBS64 += -lcmdutils
fc2512cfb727d49529d8ed99164db871f4829b73Robert Mustacchi
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore$(SYMTESTS:%=$(TESTDIR)/%): $(TESTDIR)/setup
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore -$(RM) $@
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore $(LN) $(TESTDIR)/setup $@