njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 1 | |
njn25 | 8923f55 | 2002-09-23 16:32:40 +0000 | [diff] [blame] | 2 | SUBDIRS = demangle . docs |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 3 | |
sewardj | 3e1eb1f | 2002-05-18 13:14:17 +0000 | [diff] [blame] | 4 | CFLAGS = $(WERROR) -DVG_LIBDIR="\"$(libdir)"\" \ |
sewardj | 47f4b3e | 2002-10-01 00:18:22 +0000 | [diff] [blame] | 5 | -Winline -Wall -Wshadow -O -fomit-frame-pointer \ |
| 6 | @PREFERRED_STACK_BOUNDARY@ -g \ |
| 7 | $(INCLUDES) |
daywalker | a0d3ab6 | 2002-04-21 13:32:28 +0000 | [diff] [blame] | 8 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 9 | valdir = $(libdir)/valgrind |
| 10 | |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 11 | INCLUDES = -I$(srcdir)/demangle -I$(top_srcdir)/include |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 12 | |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 13 | bin_SCRIPTS = valgrind |
gobry | 3b77789 | 2002-04-04 09:18:39 +0000 | [diff] [blame] | 14 | |
| 15 | default.supp: $(SUPP_FILES) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 16 | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 17 | val_PROGRAMS = \ |
| 18 | valgrind.so \ |
| 19 | valgrinq.so \ |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 20 | libpthread.so |
| 21 | |
| 22 | EXTRA_DIST = vg_libpthread.vs |
sewardj | fed4dd0 | 2002-04-14 14:32:54 +0000 | [diff] [blame] | 23 | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 24 | libpthread_so_SOURCES = \ |
| 25 | vg_libpthread.c \ |
| 26 | vg_libpthread_unimp.c |
| 27 | libpthread_so_DEPENDENCIES = $(srcdir)/vg_libpthread.vs |
sewardj | 54945a2 | 2002-10-20 19:50:07 +0000 | [diff] [blame] | 28 | libpthread_so_LDFLAGS = -Werror -fno-omit-frame-pointer -UVG_LIBDIR -shared -fpic \ |
| 29 | -Wl,-version-script $(srcdir)/vg_libpthread.vs \ |
| 30 | -Wl,-z,nodelete,-z,initfirst \ |
| 31 | -Wl,--soname=libpthread.so.0 |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 32 | |
| 33 | valgrinq_so_SOURCES = vg_valgrinq_dummy.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 34 | valgrinq_so_LDFLAGS = -shared |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 35 | |
| 36 | valgrind_so_SOURCES = \ |
sewardj | cf2b14a | 2002-04-12 11:49:29 +0000 | [diff] [blame] | 37 | vg_clientfuncs.c \ |
sewardj | 2e93c50 | 2002-04-12 11:12:52 +0000 | [diff] [blame] | 38 | vg_scheduler.c \ |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 39 | vg_clientmalloc.c \ |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 40 | vg_default.c \ |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 41 | vg_demangle.c \ |
| 42 | vg_dispatch.S \ |
| 43 | vg_errcontext.c \ |
| 44 | vg_execontext.c \ |
| 45 | vg_from_ucode.c \ |
| 46 | vg_helpers.S \ |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 47 | vg_instrument.c \ |
sewardj | f220ccc | 2002-10-23 21:53:49 +0000 | [diff] [blame] | 48 | vg_intercept.c \ |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 49 | vg_main.c \ |
| 50 | vg_malloc2.c \ |
| 51 | vg_memory.c \ |
| 52 | vg_messages.c \ |
| 53 | vg_mylibc.c \ |
| 54 | vg_procselfmaps.c \ |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 55 | vg_dummy_profile.c \ |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 56 | vg_signals.c \ |
| 57 | vg_startup.S \ |
| 58 | vg_symtab2.c \ |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 59 | vg_syscalls.c \ |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 60 | vg_syscall.S \ |
| 61 | vg_to_ucode.c \ |
| 62 | vg_translate.c \ |
sewardj | 92a5956 | 2002-09-30 00:53:10 +0000 | [diff] [blame] | 63 | vg_transtab.c \ |
| 64 | vg_ldt.c |
sewardj | 54945a2 | 2002-10-20 19:50:07 +0000 | [diff] [blame] | 65 | valgrind_so_LDFLAGS = -Wl,-z,initfirst -shared |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 66 | valgrind_so_LDADD = \ |
| 67 | demangle/cp-demangle.o \ |
| 68 | demangle/cplus-dem.o \ |
| 69 | demangle/dyn-string.o \ |
| 70 | demangle/safe-ctype.o |
| 71 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 72 | noinst_HEADERS = \ |
| 73 | vg_kerneliface.h \ |
| 74 | vg_include.h \ |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 75 | vg_constants.h \ |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 76 | vg_unsafe.h |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 77 | |
sewardj | 71889e6 | 2002-05-10 03:03:57 +0000 | [diff] [blame] | 78 | MANUAL_DEPS = $(noinst_HEADERS) $(include_HEADERS) |
| 79 | |
gobry | be54e1f | 2002-04-12 13:32:11 +0000 | [diff] [blame] | 80 | vg_memory.o: vg_memory.c $(MANUAL_DEPS) |
gobry | e721a52 | 2002-03-22 13:38:30 +0000 | [diff] [blame] | 81 | $(COMPILE) -O2 @PREFERRED_STACK_BOUNDARY@ -c $< |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 82 | |
njn | 6ff0fe9 | 2002-11-12 08:41:07 +0000 | [diff] [blame] | 83 | vg_intercept.o vg_libpthread.o vg_clientfuncs.o: CFLAGS += -fno-omit-frame-pointer |
njn | 01fe69e | 2002-11-11 18:54:42 +0000 | [diff] [blame] | 84 | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 85 | ##valgrind.so$(EXEEXT): $(valgrind_so_OBJECTS) |
| 86 | ## $(CC) $(CFLAGS) $(LDFLAGS) -shared -o valgrind.so \ |
| 87 | ## $(valgrind_so_OBJECTS) $(valgrind_so_LDADD) |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 88 | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 89 | ##valgrinq.so$(EXEEXT): $(valgrinq_so_OBJECTS) |
| 90 | ## $(CC) $(CFLAGS) -shared -o valgrinq.so $(valgrinq_so_OBJECTS) |
sewardj | fed4dd0 | 2002-04-14 14:32:54 +0000 | [diff] [blame] | 91 | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 92 | ##libpthread.so$(EXEEXT): $(libpthread_so_OBJECTS) $(srcdir)/vg_libpthread.vs |
| 93 | ## $(CC) -Wall -Werror -g -O -shared -fpic -o libpthread.so \ |
| 94 | ## $(libpthread_so_OBJECTS) \ |
| 95 | ## -Wl,-version-script $(srcdir)/vg_libpthread.vs |