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