Print this page
5293 desire symbol visibility test
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: TBD
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/test/libc-tests/tests/Makefile.com
+++ new/usr/src/test/libc-tests/tests/Makefile.com
1 1 #
2 2 # This file and its contents are supplied under the terms of the
3 3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 4 # You may only use this file in accordance with the terms of version
5 5 # 1.0 of the CDDL.
6 6 #
7 7 # A full copy of the text of the CDDL should have accompanied this
8 8 # source. A copy of the CDDL is also available via the Internet at
9 9 # http://www.illumos.org/license/CDDL.
10 10 #
11 11
12 12 #
13 13 # Copyright (c) 2012 by Delphix. All rights reserved.
14 14 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
15 15 #
16 16
17 17 include $(SRC)/Makefile.master
18 18 include $(SRC)/cmd/Makefile.cmd
19 19 include $(SRC)/test/Makefile.com
20 20
21 21 $(OBJS_OVERRIDE)OBJS = $(PROG).o test_common.o
↓ open down ↓ |
21 lines elided |
↑ open up ↑ |
22 22 OBJS32 = $(OBJS:%.o=%.$(MACH).o)
23 23 PROG32 = $(PROG).$(MACH)
24 24
25 25 $(BUILD64) OBJS64 = $(OBJS:%.o=%.$(MACH64).o)
26 26 $(BUILD64) PROG64= $(PROG).$(MACH64)
27 27
28 28 $(OBJS_OVERRIDE)SRCS = $(PROG).c ../common/test_common.c
29 29
30 30 C99MODE = -xc99=%all
31 31 LINTFLAGS += -I../common -DARCH=\"ARCH\" -DLINT
32 -CPPFLAGS += -I../common
32 +CPPFLAGS += -I$(ROOT)/usr/include -I../common
33 33
34 34 ROOTOPTPKG = $(ROOT)/opt/libc-tests
35 -TESTDIR = $(ROOTOPTPKG)/tests
35 +TESTDIR = $(ROOTOPTPKG)/tests/$(TESTSUBDIR)
36 36
37 37 CMDS = $(PROG32:%=$(TESTDIR)/%) $(PROG64:%=$(TESTDIR)/%) \
38 - $(KSHPROG:%=$(TESTDIR)/%) $(ARCHPROG:%=$(TESTDIR)/%)
38 + $(KSHPROG:%=$(TESTDIR)/%) $(ARCHPROG:%=$(TESTDIR)/%) \
39 + $(EXTRAPROG:%=$(TESTDIR)/%)
40 +
39 41 $(CMDS) := FILEMODE = 0555
40 42
41 43 all: $(PROG32) $(PROG64) $(KSHPROG) $(ARCHPROG) $(SUBDIRS)
42 44
43 45 $(PROG32): $(OBJS32)
44 46 $(LINK.c) $(OBJS32) -o $@ $(LDLIBS)
45 47 $(POST_PROCESS)
46 48
47 49 $(PROG64): $(OBJS64)
48 50 $(LINK64.c) $(OBJS64) -o $@ $(LDLIBS64)
49 51 $(POST_PROCESS)
50 52
51 53 $(KSHPROG): $(KSHPROG).ksh
52 54 $(RM) $@
53 55 $(CP) $(KSHPROG).ksh $(@)
54 56 $(CHMOD) +x $@
55 57
56 58 $(ARCHPROG): ../common/run_arch_tests.ksh
57 59 $(RM) $@
58 60 $(CP) ../common/run_arch_tests.ksh $(@)
59 61 $(CHMOD) +x $@
60 62
61 63 %.$(MACH).o: %.c
62 64 $(COMPILE.c) -o $@ $(CFLAGS_$(MACH)) -DARCH=\"$(MACH)\" $<
63 65
64 66 %.$(MACH).o: ../common/%.c
65 67 $(COMPILE.c) -o $@ $(CFLAGS_$(MACH)) -DARCH=\"$(MACH)\" $<
66 68
67 69 %.$(MACH64).o: %.c
68 70 $(COMPILE64.c) -o $@ $(CFLAGS_$(MACH64)) -DARCH=\"$(MACH64)\" $<
69 71
70 72 %.$(MACH64).o: ../common/%.c
71 73 $(COMPILE64.c) -o $@ $(CFLAGS_$(MACH64)) -DARCH=\"$(MACH64)\" $<
72 74
73 75 install: $(SUBDIRS) $(CMDS)
74 76
75 77 lint: lint_SRCS
76 78
77 79 clobber: clean
78 80 -$(RM) $(PROG32) $(PROG64) $(KSHPROG) $(ARCHPROG)
79 81
80 82 clean:
81 83 -$(RM) $(OBJS32) $(OBJS64)
82 84
83 85 $(CMDS): $(TESTDIR) $(PROG32) $(PROG64) $(KSHPROG) $(ARCHPROG)
84 86
85 87 $(TESTDIR):
86 88 $(INS.dir)
87 89
88 90 $(TESTDIR)/%: %
89 91 $(INS.file)
↓ open down ↓ |
41 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX