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# 15 16include $(SRC)/Makefile.master 17 18TESTSUBDIR = symbols 19PROG = symbols_test 20KSHPROG = setup 21SYMTESTS = \ 22 assert_h \ 23 ctype_h \ 24 dirent_h \ 25 fcntl_h \ 26 locale_h \ 27 math_h \ 28 netdb_h \ 29 pthread_h \ 30 stdalign_h \ 31 stddef_h \ 32 signal_h \ 33 stdio_h \ 34 stdlib_h \ 35 stdnoreturn_h \ 36 strings_h \ 37 sys_stat_h \ 38 sys_time_h \ 39 sys_timeb_h \ 40 time_h \ 41 threads_h \ 42 ucontext_h \ 43 unistd_h \ 44 wchar_h \ 45 wctype_h 46 47EXTRAPROG += $(SYMTESTS) 48 49include ../Makefile.com 50 51# 52# Since we use libcmdutils which is LF64, we need to be LF64 even though we're 53# not using the LF64 related features at the moment, lint catches us otherwise. 54# 55CPPFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 56 57LDLIBS += -lcmdutils 58LDLIBS64 += -lcmdutils 59 60$(SYMTESTS:%=$(TESTDIR)/%): $(TESTDIR)/setup 61 -$(RM) $@ 62 $(LN) $(TESTDIR)/setup $@ 63