nethercote | 6a67435 | 2004-10-19 19:07:32 +0000 | [diff] [blame] | 1 | SUBDIRS = ${VG_ARCH} . |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 2 | |
njn | d0eab5f | 2003-09-30 16:52:47 +0000 | [diff] [blame] | 3 | noinst_SCRIPTS = filter_allocs filter_leak_check_size \ |
nethercote | 4a02e1e | 2004-10-20 11:43:01 +0000 | [diff] [blame] | 4 | filter_stderr filter_stderr_backtrace |
daywalker | 677e061 | 2003-04-24 00:40:38 +0000 | [diff] [blame] | 5 | |
nethercote | 75a8c98 | 2004-11-11 19:03:34 +0000 | [diff] [blame] | 6 | noinst_HEADERS = scalar.h |
| 7 | |
njn | a63e2d7 | 2003-06-12 14:13:05 +0000 | [diff] [blame] | 8 | EXTRA_DIST = $(noinst_SCRIPTS) \ |
njn | d8ced86 | 2003-04-08 00:47:05 +0000 | [diff] [blame] | 9 | badaddrvalue.stderr.exp \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 10 | badaddrvalue.stdout.exp badaddrvalue.vgtest \ |
| 11 | badfree-2trace.stderr.exp badfree-2trace.vgtest \ |
| 12 | badfree.stderr.exp badfree.vgtest \ |
| 13 | badjump.stderr.exp badjump.vgtest \ |
nethercote | 4d71438 | 2004-10-13 09:47:24 +0000 | [diff] [blame] | 14 | badjump2.stderr.exp badjump2.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 15 | badloop.stderr.exp badloop.vgtest \ |
nethercote | eb0592d | 2004-11-05 12:02:27 +0000 | [diff] [blame] | 16 | badpoll.stderr.exp badpoll.vgtest \ |
njn | c2699f6 | 2003-09-05 23:29:33 +0000 | [diff] [blame] | 17 | badrw.stderr.exp badrw.vgtest \ |
njn | 7360f8e | 2003-09-04 20:57:51 +0000 | [diff] [blame] | 18 | brk.stderr.exp brk.vgtest \ |
nethercote | ce47126 | 2004-08-25 13:43:44 +0000 | [diff] [blame] | 19 | brk2.stderr.exp brk2.vgtest \ |
njn | d8ced86 | 2003-04-08 00:47:05 +0000 | [diff] [blame] | 20 | buflen_check.stderr.exp buflen_check.vgtest \ |
| 21 | clientperm.stderr.exp \ |
njn | 4d5490d | 2002-10-04 14:16:38 +0000 | [diff] [blame] | 22 | clientperm.stdout.exp clientperm.vgtest \ |
njn | 1078545 | 2003-05-20 16:38:24 +0000 | [diff] [blame] | 23 | custom_alloc.stderr.exp custom_alloc.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 24 | doublefree.stderr.exp doublefree.vgtest \ |
njn | 1140b24 | 2003-04-22 20:58:02 +0000 | [diff] [blame] | 25 | error_counts.stderr.exp error_counts.stdout.exp error_counts.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 26 | errs1.stderr.exp errs1.vgtest \ |
| 27 | exitprog.stderr.exp exitprog.vgtest \ |
nethercote | a81e916 | 2004-02-12 14:34:14 +0000 | [diff] [blame] | 28 | execve.stderr.exp execve.vgtest \ |
nethercote | f6a1d50 | 2004-08-09 12:21:57 +0000 | [diff] [blame] | 29 | execve2.stderr.exp execve2.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 30 | fprw.stderr.exp fprw.vgtest \ |
| 31 | fwrite.stderr.exp fwrite.stdout.exp fwrite.vgtest \ |
| 32 | inits.stderr.exp inits.vgtest \ |
| 33 | inline.stderr.exp inline.stdout.exp inline.vgtest \ |
| 34 | malloc1.stderr.exp malloc1.vgtest \ |
| 35 | malloc2.stderr.exp malloc2.vgtest \ |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 36 | malloc3.stderr.exp malloc3.stdout.exp malloc3.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 37 | manuel1.stderr.exp manuel1.stdout.exp manuel1.vgtest \ |
| 38 | manuel2.stderr.exp manuel2.stdout.exp manuel2.vgtest \ |
| 39 | manuel3.stderr.exp manuel3.vgtest \ |
| 40 | memalign_test.stderr.exp memalign_test.vgtest \ |
nethercote | 2d5b816 | 2004-08-11 09:40:52 +0000 | [diff] [blame] | 41 | memalign2.stderr.exp memalign2.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 42 | memcmptest.stderr.exp memcmptest.stdout.exp memcmptest.vgtest \ |
rjwalsh | bc0bb83 | 2004-06-19 18:12:36 +0000 | [diff] [blame] | 43 | mempool.stderr.exp mempool.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 44 | mismatches.stderr.exp mismatches.vgtest \ |
| 45 | mmaptest.stderr.exp mmaptest.vgtest \ |
| 46 | nanoleak.stderr.exp nanoleak.vgtest \ |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 47 | nanoleak_supp.stderr.exp nanoleak_supp.vgtest nanoleak.supp \ |
njn | 32a17d1 | 2003-10-10 11:01:44 +0000 | [diff] [blame] | 48 | new_nothrow.stderr.exp new_nothrow.vgtest \ |
nethercote | ea169c0 | 2004-07-18 12:05:37 +0000 | [diff] [blame] | 49 | new_override.stderr.exp new_override.stdout.exp new_override.vgtest \ |
njn | 0c5fac8 | 2003-05-02 16:19:10 +0000 | [diff] [blame] | 50 | null_socket.stderr.exp null_socket.vgtest \ |
sewardj | ea5cf54 | 2003-07-16 19:03:10 +0000 | [diff] [blame] | 51 | overlap.stderr.exp overlap.stdout.exp overlap.vgtest \ |
nethercote | d3de730 | 2003-10-30 09:11:03 +0000 | [diff] [blame] | 52 | pth_once.stderr.exp pth_once.stdout.exp pth_once.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 53 | realloc1.stderr.exp realloc1.vgtest \ |
| 54 | realloc2.stderr.exp realloc2.vgtest \ |
njn | 398044f | 2003-07-24 17:39:59 +0000 | [diff] [blame] | 55 | realloc3.stderr.exp realloc3.vgtest \ |
nethercote | 9b9b74b | 2004-11-15 16:11:20 +0000 | [diff] [blame^] | 56 | scalar.stderr.exp scalar.vgtest \ |
nethercote | 75a8c98 | 2004-11-11 19:03:34 +0000 | [diff] [blame] | 57 | scalar_fork.stderr.exp scalar_fork.vgtest \ |
nethercote | 9b9b74b | 2004-11-15 16:11:20 +0000 | [diff] [blame^] | 58 | scalar_exit_group.stderr.exp scalar_exit_group.vgtest \ |
nethercote | 8b305af | 2004-11-14 17:58:27 +0000 | [diff] [blame] | 59 | scalar_supp.stderr.exp scalar_supp.vgtest scalar_supp.supp \ |
nethercote | 2b0cae6 | 2004-11-12 14:57:34 +0000 | [diff] [blame] | 60 | scalar_vfork.stderr.exp scalar_vfork.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 61 | sigaltstack.stderr.exp sigaltstack.vgtest \ |
njn | d8ced86 | 2003-04-08 00:47:05 +0000 | [diff] [blame] | 62 | signal2.stderr.exp \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 63 | signal2.stdout.exp signal2.vgtest \ |
nethercote | d91ea07 | 2004-11-07 10:58:19 +0000 | [diff] [blame] | 64 | str_tester.stderr.exp str_tester.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 65 | supp1.stderr.exp supp1.vgtest \ |
| 66 | supp2.stderr.exp supp2.vgtest \ |
| 67 | supp.supp \ |
| 68 | suppfree.stderr.exp suppfree.vgtest \ |
nethercote | 57e36b3 | 2004-07-10 14:56:28 +0000 | [diff] [blame] | 69 | toobig-allocs.stderr.exp toobig-allocs.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 70 | trivialleak.stderr.exp trivialleak.vgtest \ |
sewardj | 51a9fe1 | 2003-07-07 00:03:52 +0000 | [diff] [blame] | 71 | weirdioctl.stderr.exp weirdioctl.stdout.exp weirdioctl.vgtest \ |
sewardj | 58bef2e | 2003-07-13 11:13:37 +0000 | [diff] [blame] | 72 | metadata.stderr.exp metadata.stdout.exp metadata.vgtest \ |
njn | aca67c5 | 2003-09-04 21:57:45 +0000 | [diff] [blame] | 73 | threadederrno.stderr.exp threadederrno.stdout.exp \ |
| 74 | threadederrno.vgtest \ |
nethercote | e65e47b | 2004-10-14 08:38:06 +0000 | [diff] [blame] | 75 | vgtest_ume.stderr.exp vgtest_ume.vgtest \ |
nethercote | 18a71b7 | 2004-11-05 13:45:53 +0000 | [diff] [blame] | 76 | writev.stderr.exp writev.stderr.exp2 writev.vgtest \ |
thughes | d41cd6c | 2004-10-13 16:48:21 +0000 | [diff] [blame] | 77 | zeropage.stderr.exp zeropage.stderr.exp2 zeropage.vgtest |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 78 | |
daywalker | c42d8bc | 2003-04-17 17:00:43 +0000 | [diff] [blame] | 79 | check_PROGRAMS = \ |
nethercote | 4d71438 | 2004-10-13 09:47:24 +0000 | [diff] [blame] | 80 | badaddrvalue badfree badjump badjump2 \ |
nethercote | eb0592d | 2004-11-05 12:02:27 +0000 | [diff] [blame] | 81 | badloop badpoll badrw brk brk2 buflen_check \ |
njn | 7360f8e | 2003-09-04 20:57:51 +0000 | [diff] [blame] | 82 | clientperm custom_alloc \ |
nethercote | f6a1d50 | 2004-08-09 12:21:57 +0000 | [diff] [blame] | 83 | doublefree error_counts errs1 exitprog execve execve2 \ |
nethercote | 4a02e1e | 2004-10-20 11:43:01 +0000 | [diff] [blame] | 84 | fprw fwrite hello inits inline \ |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 85 | malloc1 malloc2 malloc3 manuel1 manuel2 manuel3 \ |
nethercote | 2d5b816 | 2004-08-11 09:40:52 +0000 | [diff] [blame] | 86 | memalign_test memalign2 memcmptest mempool mmaptest \ |
| 87 | nanoleak new_nothrow \ |
nethercote | 4a02e1e | 2004-10-20 11:43:01 +0000 | [diff] [blame] | 88 | null_socket overlap \ |
nethercote | 8b305af | 2004-11-14 17:58:27 +0000 | [diff] [blame] | 89 | realloc1 realloc2 realloc3 \ |
nethercote | 9b9b74b | 2004-11-15 16:11:20 +0000 | [diff] [blame^] | 90 | scalar scalar_exit_group scalar_fork scalar_supp scalar_vfork \ |
nethercote | 6c0e2d0 | 2004-11-14 18:11:55 +0000 | [diff] [blame] | 91 | sigaltstack signal2 \ |
nethercote | d91ea07 | 2004-11-07 10:58:19 +0000 | [diff] [blame] | 92 | str_tester supp1 supp2 suppfree \ |
nethercote | 4a02e1e | 2004-10-20 11:43:01 +0000 | [diff] [blame] | 93 | trivialleak weirdioctl \ |
nethercote | e65e47b | 2004-10-14 08:38:06 +0000 | [diff] [blame] | 94 | mismatches new_override metadata threadederrno \ |
| 95 | vgtest_ume \ |
| 96 | writev zeropage |
| 97 | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 98 | |
nethercote | bfcc707 | 2004-10-21 14:07:58 +0000 | [diff] [blame] | 99 | AM_CPPFLAGS = -I$(top_builddir)/include |
daywalker | c42d8bc | 2003-04-17 17:00:43 +0000 | [diff] [blame] | 100 | AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g |
| 101 | AM_CXXFLAGS = $(AM_CFLAGS) |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 102 | |
| 103 | # C ones |
| 104 | badaddrvalue_SOURCES = badaddrvalue.c |
| 105 | badfree_SOURCES = badfree.c |
| 106 | badjump_SOURCES = badjump.c |
nethercote | 4d71438 | 2004-10-13 09:47:24 +0000 | [diff] [blame] | 107 | badjump2_SOURCES = badjump2.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 108 | badloop_SOURCES = badloop.c |
nethercote | eb0592d | 2004-11-05 12:02:27 +0000 | [diff] [blame] | 109 | badpoll_SOURCES = badpoll.c |
njn | c2699f6 | 2003-09-05 23:29:33 +0000 | [diff] [blame] | 110 | badrw_SOURCES = badrw.c |
njn | 7360f8e | 2003-09-04 20:57:51 +0000 | [diff] [blame] | 111 | brk_SOURCES = brk.c |
nethercote | ce47126 | 2004-08-25 13:43:44 +0000 | [diff] [blame] | 112 | brk2_SOURCES = brk2.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 113 | buflen_check_SOURCES = buflen_check.c |
njn | 4d5490d | 2002-10-04 14:16:38 +0000 | [diff] [blame] | 114 | clientperm_SOURCES = clientperm.c |
njn | 1078545 | 2003-05-20 16:38:24 +0000 | [diff] [blame] | 115 | custom_alloc_SOURCES = custom_alloc.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 116 | doublefree_SOURCES = doublefree.c |
njn | 47363ab | 2003-04-21 13:24:40 +0000 | [diff] [blame] | 117 | error_counts_SOURCES = error_counts.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 118 | errs1_SOURCES = errs1.c |
nethercote | a81e916 | 2004-02-12 14:34:14 +0000 | [diff] [blame] | 119 | execve_SOURCES = execve.c |
nethercote | f6a1d50 | 2004-08-09 12:21:57 +0000 | [diff] [blame] | 120 | execve2_SOURCES = execve2.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 121 | exitprog_SOURCES = exitprog.c |
| 122 | fprw_SOURCES = fprw.c |
| 123 | fwrite_SOURCES = fwrite.c |
| 124 | inits_SOURCES = inits.c |
| 125 | inline_SOURCES = inline.c |
| 126 | malloc1_SOURCES = malloc1.c |
| 127 | malloc2_SOURCES = malloc2.c |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 128 | malloc3_SOURCES = malloc3.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 129 | manuel1_SOURCES = manuel1.c |
| 130 | manuel2_SOURCES = manuel2.c |
| 131 | manuel3_SOURCES = manuel3.c |
| 132 | mmaptest_SOURCES = mmaptest.c |
| 133 | memalign_test_SOURCES = memalign_test.c |
nethercote | 2d5b816 | 2004-08-11 09:40:52 +0000 | [diff] [blame] | 134 | memalign2_SOURCES = memalign2.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 135 | memcmptest_SOURCES = memcmptest.c |
rjwalsh | bc0bb83 | 2004-06-19 18:12:36 +0000 | [diff] [blame] | 136 | mempool_SOURCES = mempool.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 137 | nanoleak_SOURCES = nanoleak.c |
njn | 0c5fac8 | 2003-05-02 16:19:10 +0000 | [diff] [blame] | 138 | null_socket_SOURCES = null_socket.c |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 139 | overlap_SOURCES = overlap.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 140 | realloc1_SOURCES = realloc1.c |
| 141 | realloc2_SOURCES = realloc2.c |
njn | 398044f | 2003-07-24 17:39:59 +0000 | [diff] [blame] | 142 | realloc3_SOURCES = realloc3.c |
nethercote | 8b76fe5 | 2004-11-08 19:20:09 +0000 | [diff] [blame] | 143 | scalar_SOURCES = scalar.c |
nethercote | 9b9b74b | 2004-11-15 16:11:20 +0000 | [diff] [blame^] | 144 | scalar_exit_group_SOURCES = scalar_exit_group.c |
nethercote | 75a8c98 | 2004-11-11 19:03:34 +0000 | [diff] [blame] | 145 | scalar_fork_SOURCES = scalar_fork.c |
nethercote | e824cc4 | 2004-11-09 16:20:46 +0000 | [diff] [blame] | 146 | scalar_supp_SOURCES = scalar_supp.c |
nethercote | 2b0cae6 | 2004-11-12 14:57:34 +0000 | [diff] [blame] | 147 | scalar_vfork_SOURCES = scalar_vfork.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 148 | signal2_SOURCES = signal2.c |
| 149 | supp1_SOURCES = supp.c |
| 150 | supp2_SOURCES = supp.c |
| 151 | suppfree_SOURCES = suppfree.c |
| 152 | sigaltstack_SOURCES = sigaltstack.c |
| 153 | trivialleak_SOURCES = trivialleak.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 154 | weirdioctl_SOURCES = weirdioctl.c |
sewardj | 51a9fe1 | 2003-07-07 00:03:52 +0000 | [diff] [blame] | 155 | metadata_SOURCES = metadata.c |
nethercote | d91ea07 | 2004-11-07 10:58:19 +0000 | [diff] [blame] | 156 | str_tester_SOURCES = str_tester.c |
| 157 | str_tester_CFLAGS = $(AM_CFLAGS) -Wno-shadow |
sewardj | 58bef2e | 2003-07-13 11:13:37 +0000 | [diff] [blame] | 158 | threadederrno_SOURCES = threadederrno.c |
| 159 | threadederrno_LDADD = -lpthread |
njn | aca67c5 | 2003-09-04 21:57:45 +0000 | [diff] [blame] | 160 | writev_SOURCES = writev.c |
nethercote | db23332 | 2003-12-02 14:56:04 +0000 | [diff] [blame] | 161 | zeropage_SOURCES = zeropage.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 162 | |
| 163 | # C++ ones |
| 164 | mismatches_SOURCES = mismatches.cpp |
njn | 32a17d1 | 2003-10-10 11:01:44 +0000 | [diff] [blame] | 165 | new_nothrow_SOURCES = new_nothrow.cpp |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 166 | new_override_SOURCES = new_override.cpp |
| 167 | |
nethercote | e65e47b | 2004-10-14 08:38:06 +0000 | [diff] [blame] | 168 | # Valgrind unit self-tests |
| 169 | hello_SOURCES = hello.c |
nethercote | 3f131f1 | 2004-10-27 12:05:59 +0000 | [diff] [blame] | 170 | ## If we support PIE, build hello as a PIE, otherwise vgtest_ume cannot load |
| 171 | ## (I'm not completely sure why, since stage2 can load both PIEs and non-PIEs, |
| 172 | ## maybe it's because stage2 is loaded up high; anyway, it doesn't really |
| 173 | ## matter so long as vgtest_ume can load hello ok. --njn) |
| 174 | if USE_PIE |
| 175 | hello_CFLAGS = $(AM_CFLAGS) -fpie |
| 176 | hello_LDFLAGS = -pie |
| 177 | else |
nethercote | e65e47b | 2004-10-14 08:38:06 +0000 | [diff] [blame] | 178 | hello_LDFLAGS = -Wl,-defsym,kickstart_base=0x50000000 \ |
| 179 | -Wl,-T,../../coregrind/${VG_ARCH}/stage2.lds |
nethercote | 3f131f1 | 2004-10-27 12:05:59 +0000 | [diff] [blame] | 180 | hello_DEPENDENCIES = ../../coregrind/${VG_ARCH}/stage2.lds |
| 181 | endif |
| 182 | |
nethercote | 543a63f | 2004-10-14 09:28:11 +0000 | [diff] [blame] | 183 | vgtest_ume_SOURCES = vgtest_ume.c |
nethercote | e65e47b | 2004-10-14 08:38:06 +0000 | [diff] [blame] | 184 | vgtest_ume_LDADD = ../../coregrind/ume.o \ |
nethercote | e65e47b | 2004-10-14 08:38:06 +0000 | [diff] [blame] | 185 | ../../coregrind/jmp_with_stack.o |
| 186 | |