12 #
13 # Copyright (c) 2012 by Delphix. All rights reserved.
14 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
15 #
16
17 include $(SRC)/Makefile.master
18 include $(SRC)/cmd/Makefile.cmd
19 include $(SRC)/test/Makefile.com
20
21 $(OBJS_OVERRIDE)OBJS = $(PROG).o test_common.o
22 OBJS32 = $(OBJS:%.o=%.$(MACH).o)
23 PROG32 = $(PROG).$(MACH)
24
25 $(BUILD64) OBJS64 = $(OBJS:%.o=%.$(MACH64).o)
26 $(BUILD64) PROG64= $(PROG).$(MACH64)
27
28 $(OBJS_OVERRIDE)SRCS = $(PROG).c ../common/test_common.c
29
30 C99MODE = -xc99=%all
31 LINTFLAGS += -I../common -DARCH=\"ARCH\" -DLINT
32 CPPFLAGS += -I../common
33
34 ROOTOPTPKG = $(ROOT)/opt/libc-tests
35 TESTDIR = $(ROOTOPTPKG)/tests
36
37 CMDS = $(PROG32:%=$(TESTDIR)/%) $(PROG64:%=$(TESTDIR)/%) \
38 $(KSHPROG:%=$(TESTDIR)/%) $(ARCHPROG:%=$(TESTDIR)/%)
39 $(CMDS) := FILEMODE = 0555
40
41 all: $(PROG32) $(PROG64) $(KSHPROG) $(ARCHPROG) $(SUBDIRS)
42
43 $(PROG32): $(OBJS32)
44 $(LINK.c) $(OBJS32) -o $@ $(LDLIBS)
45 $(POST_PROCESS)
46
47 $(PROG64): $(OBJS64)
48 $(LINK64.c) $(OBJS64) -o $@ $(LDLIBS64)
49 $(POST_PROCESS)
50
51 $(KSHPROG): $(KSHPROG).ksh
52 $(RM) $@
53 $(CP) $(KSHPROG).ksh $(@)
54 $(CHMOD) +x $@
55
56 $(ARCHPROG): ../common/run_arch_tests.ksh
57 $(RM) $@
58 $(CP) ../common/run_arch_tests.ksh $(@)
|
12 #
13 # Copyright (c) 2012 by Delphix. All rights reserved.
14 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
15 #
16
17 include $(SRC)/Makefile.master
18 include $(SRC)/cmd/Makefile.cmd
19 include $(SRC)/test/Makefile.com
20
21 $(OBJS_OVERRIDE)OBJS = $(PROG).o test_common.o
22 OBJS32 = $(OBJS:%.o=%.$(MACH).o)
23 PROG32 = $(PROG).$(MACH)
24
25 $(BUILD64) OBJS64 = $(OBJS:%.o=%.$(MACH64).o)
26 $(BUILD64) PROG64= $(PROG).$(MACH64)
27
28 $(OBJS_OVERRIDE)SRCS = $(PROG).c ../common/test_common.c
29
30 C99MODE = -xc99=%all
31 LINTFLAGS += -I../common -DARCH=\"ARCH\" -DLINT
32 CPPFLAGS += -I$(ROOT)/usr/include -I../common
33
34 ROOTOPTPKG = $(ROOT)/opt/libc-tests
35 TESTDIR = $(ROOTOPTPKG)/tests/$(TESTSUBDIR)
36
37 CMDS = $(PROG32:%=$(TESTDIR)/%) $(PROG64:%=$(TESTDIR)/%) \
38 $(KSHPROG:%=$(TESTDIR)/%) $(ARCHPROG:%=$(TESTDIR)/%) \
39 $(EXTRAPROG:%=$(TESTDIR)/%)
40
41 $(CMDS) := FILEMODE = 0555
42
43 all: $(PROG32) $(PROG64) $(KSHPROG) $(ARCHPROG) $(SUBDIRS)
44
45 $(PROG32): $(OBJS32)
46 $(LINK.c) $(OBJS32) -o $@ $(LDLIBS)
47 $(POST_PROCESS)
48
49 $(PROG64): $(OBJS64)
50 $(LINK64.c) $(OBJS64) -o $@ $(LDLIBS64)
51 $(POST_PROCESS)
52
53 $(KSHPROG): $(KSHPROG).ksh
54 $(RM) $@
55 $(CP) $(KSHPROG).ksh $(@)
56 $(CHMOD) +x $@
57
58 $(ARCHPROG): ../common/run_arch_tests.ksh
59 $(RM) $@
60 $(CP) ../common/run_arch_tests.ksh $(@)
|