1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
  14 # Copyright 2018, Joyent, Inc.
  15 #
  16 
  17 include $(SRC)/Makefile.master
  18 
  19 TESTSUBDIR = symbols
  20 PROG = symbols_test
  21 KSHPROG = setup
  22 SYMTESTS = \
  23         assert_h \
  24         ctype_h \
  25         dirent_h \
  26         fcntl_h \
  27         locale_h \
  28         math_h \
  29         netdb_h \
  30         pthread_h \
  31         stdalign_h \
  32         stddef_h \
  33         signal_h \
  34         stdio_h \
  35         stdlib_h \
  36         stdnoreturn_h \
  37         string_h \
  38         strings_h \
  39         sys_stat_h \
  40         sys_time_h \
  41         sys_timeb_h \
  42         time_h \
  43         threads_h \
  44         ucontext_h \
  45         unistd_h \
  46         wchar_h \
  47         wctype_h
  48 
  49 EXTRAPROG += $(SYMTESTS)
  50 
  51 include ../Makefile.com
  52 
  53 # needs work
  54 SMOFF += testing_index_after_use
  55 
  56 LDLIBS += -lcustr
  57 LDLIBS64 += -lcustr
  58 
  59 $(SYMTESTS:%=$(TESTDIR)/%): $(TESTDIR)/setup
  60         -$(RM) $@
  61         $(LN) $(TESTDIR)/setup $@