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