| 1 | CXX_SOURCES := main-copy.cpp |
| 2 | LD_EXTRAS := -Wl,-rpath "-Wl,$(shell pwd)" |
| 3 | USE_LIBDL :=1 |
| 4 | |
| 5 | a.out: libother |
| 6 | |
| 7 | include Makefile.rules |
| 8 | |
| 9 | # We copy the source files to move them to test source mapping |
| 10 | other-copy.c: other.c |
| 11 | cp -f $< $@ |
| 12 | |
| 13 | main-copy.cpp: main.cpp |
| 14 | cp -f $< $@ |
| 15 | |
| 16 | # The following shared library will be used to test breakpoints under dynamic loading |
| 17 | libother: other-copy.c |
| 18 | "$(MAKE)" -f $(MAKEFILE_RULES) \ |
| 19 | DYLIB_ONLY=YES DYLIB_C_SOURCES=other-copy.c DYLIB_NAME=other |