1
2include $(top_srcdir)/Makefile.tool-tests.am
3
4dist_noinst_SCRIPTS = \
5	filter_ldynsym \
6	filter_name_service_door \
7	filter_scalar \
8	filter_sendfilev \
9	filter_stderr \
10	filter_syscall_at
11
12noinst_HEADERS = scalar.h
13
14EXTRA_DIST = \
15	brk.stderr.exp brk.stdout.exp brk.vgtest \
16	context_stack_die.stderr.exp context_stack_die.stdout.exp context_stack_die.vgtest \
17	door_data.stderr.exp door_data.stdout.exp door_data.vgtest \
18	door_kill.stderr.exp door_kill.stdout.exp door_kill.vgtest \
19	execx.stderr.exp execx.stdout.exp execx.vgtest \
20	getzoneoffset.stderr.exp getzoneoffset.vgtest \
21	gethrtime.stderr.exp gethrtime.stdout.exp gethrtime.vgtest \
22	gethrusec.stderr.exp gethrusec.stdout.exp gethrusec.vgtest \
23	ioctl.stderr.exp ioctl.stdout.exp ioctl.vgtest \
24	ldynsym.stderr.exp ldynsym.stdout.exp ldynsym.vgtest \
25	lsframe1.stderr.exp lsframe1.stdout.exp lsframe1.vgtest \
26	lsframe2.stderr.exp lsframe2.stdout.exp lsframe2.vgtest \
27	mmapobj_bssonly.stderr.exp mmapobj_bssonly.stdout.exp mmapobj_bssonly.vgtest \
28	name_service_door.stderr.exp-amd64 name_service_door.stderr.exp-x86 \
29	name_service_door.stdout.exp name_service_door.vgtest \
30	pkcs11.stderr.exp-illumos pkcs11.stderr.exp-solaris pkcs11.stdout.exp pkcs11.vgtest \
31	scalar.stderr.exp scalar.stdout.exp scalar.vgtest \
32	scalar_frealpathat.stderr.exp scalar_frealpathat.stdout.exp scalar_frealpathat.vgtest \
33	scalar_ioctl.stderr.exp scalar_ioctl.stdout.exp scalar_ioctl.vgtest \
34	scalar_lwp_kill.stderr.exp scalar_lwp_kill.stdout.exp scalar_lwp_kill.vgtest \
35	scalar_lwp_name.stderr.exp scalar_lwp_name.stdout.exp scalar_lwp_name.vgtest \
36	scalar_lwp_sigqueue.stderr.exp scalar_lwp_sigqueue.stdout.exp scalar_lwp_sigqueue.vgtest \
37	scalar_lwp_sigqueue_pid.stderr.exp scalar_lwp_sigqueue_pid.vgtest \
38	scalar_obsolete.stderr.exp scalar_obsolete.stdout.exp scalar_obsolete.vgtest \
39	scalar_shm_new.stderr.exp scalar_shm_new.stdout.exp scalar_shm_new.vgtest \
40	scalar_spawn.stderr.exp scalar_spawn.stdout.exp scalar_spawn.vgtest \
41	scalar_system_stats.stderr.exp scalar_system_stats.stdout.exp scalar_system_stats.vgtest \
42	scalar_tsol_clearance.stderr.exp scalar_tsol_clearance.vgtest \
43	scalar_utimensat.stderr.exp scalar_utimensat.stdout.exp scalar_utimensat.vgtest \
44	scalar_utimesys.stderr.exp scalar_utimesys.stdout.exp scalar_utimesys.vgtest \
45	scalar_uuidsys.stderr.exp scalar_uuidsys.stdout.exp scalar_uuidsys.vgtest \
46	scalar_zone_defunct.stderr.exp scalar_zone_defunct.stdout.exp scalar_zone_defunct.vgtest \
47	sendfilev.stderr.exp sendfilev.stdout.exp sendfilev.vgtest \
48	shmat.stderr.exp shmat.stdout.exp shmat.vgtest \
49	spawn.stderr.exp spawn.stdout.exp spawn.vgtest \
50	strlcpy.stderr.exp strlcpy.stdout.exp strlcpy.vgtest \
51	supponlyobj.stderr.exp supponlyobj.supp supponlyobj.vgtest \
52	syscall_at.stderr.exp syscall_at.stdout.exp syscall_at.vgtest \
53	thr_daemon_exit_libc.stderr.exp thr_daemon_exit_libc.stdout.exp thr_daemon_exit_libc.vgtest \
54	thr_daemon_exit_standalone.stderr.exp thr_daemon_exit_standalone.stdout.exp thr_daemon_exit_standalone.vgtest
55
56check_PROGRAMS = \
57	brk \
58	context_stack_die \
59	door_data \
60	door_kill \
61	gethrtime \
62	inlinfo \
63	inlinfo_nested.so \
64	ioctl \
65	ldynsym \
66	lsframe1 \
67	lsframe2 \
68	mmapobj_bssonly \
69	mmapobj_bssonly.so \
70	name_service_door \
71	pkcs11 \
72	scalar \
73	scalar_ioctl \
74	sendfilev \
75	shmat \
76	strlcpy \
77	syscall_at \
78	thr_daemon_exit_libc \
79	thr_daemon_exit_standalone
80
81if SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS
82check_PROGRAMS += execx
83endif
84
85if SOLARIS_RESERVE_SYSSTAT_ADDR
86check_PROGRAMS += gethrusec
87endif
88
89if SOLARIS_GETZONEOFFSET_FASTTRAP
90check_PROGRAMS += getzoneoffset
91endif
92
93if SOLARIS_OLD_SYSCALLS
94check_PROGRAMS += scalar_obsolete
95endif
96
97if SOLARIS_FREALPATHAT_SYSCALL
98check_PROGRAMS += scalar_frealpathat
99endif
100
101if SOLARIS_LWP_NAME_SYSCALL
102check_PROGRAMS += scalar_lwp_name
103endif
104
105if SOLARIS_LWP_SIGQUEUE_SYSCALL
106if SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID
107check_PROGRAMS += scalar_lwp_sigqueue_pid
108else
109check_PROGRAMS += scalar_lwp_sigqueue
110endif
111else
112check_PROGRAMS += scalar_lwp_kill
113endif
114
115if SOLARIS_SHM_NEW
116check_PROGRAMS += scalar_shm_new
117endif
118
119if SOLARIS_SPAWN_SYSCALL
120check_PROGRAMS += scalar_spawn spawn
121endif
122
123if SOLARIS_SYSTEM_STATS_SYSCALL
124check_PROGRAMS += scalar_system_stats
125endif
126
127if SOLARIS_TSOL_CLEARANCE
128check_PROGRAMS += scalar_tsol_clearance
129scalar_tsol_clearance_LDADD = -ltsol
130endif
131
132if SOLARIS_UTIMENSAT_SYSCALL
133check_PROGRAMS += scalar_utimensat
134endif
135
136if SOLARIS_UTIMESYS_SYSCALL
137check_PROGRAMS += scalar_utimesys
138endif
139
140if SOLARIS_UUIDSYS_SYSCALL
141check_PROGRAMS += scalar_uuidsys
142endif
143
144if SOLARIS_ZONE_DEFUNCT
145check_PROGRAMS += scalar_zone_defunct
146endif
147
148AM_CFLAGS   += $(AM_FLAG_M3264_PRI)
149AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
150
151door_kill_LDADD = -lpthread
152ioctl_LDADD = -lsocket
153ldynsym_LDFLAGS = -Wl,--strip-all
154pkcs11_LDADD = -lpkcs11
155sendfilev_LDADD = -lsendfile
156
157inlinfo_SOURCES = inlinfo.c
158inlinfo_DEPENDENCIES = inlinfo_nested.so
159inlinfo_LDFLAGS = -Wl,-rpath,$(top_builddir)/memcheck/tests/solaris
160inlinfo_LDADD = inlinfo_nested.so
161inlinfo_nested_so_SOURCES = inlinfo_nested.c
162inlinfo_nested_so_CFLAGS = $(AM_CFLAGS) -fPIC
163inlinfo_nested_so_LDFLAGS = -Wl,-rpath,$(top_builddir)/memcheck/tests/solaris -shared -fPIC
164
165mmapobj_bssonly_SOURCES = mmapobj_bssonly.c
166mmapobj_bssonly_DEPENDENCIES = mmapobj_bssonly.so
167mmapobj_bssonly_LDFLAGS = -Wl,-rpath,$(top_builddir)/memcheck/tests/solaris
168mmapobj_bssonly_LDADD = mmapobj_bssonly.so
169mmapobj_bssonly_so_SOURCES = mmapobj_bssonly_lib.c
170mmapobj_bssonly_so_CFLAGS = $(AM_CFLAGS) -fPIC
171mmapobj_bssonly_so_LDFLAGS = -nostartfiles -nodefaultlibs -shared
172
173thr_daemon_exit_standalone_LDFLAGS = -nostartfiles -nodefaultlibs
174