13 lines · plain
1CXX_SOURCES := main.cpp2LD_EXTRAS := -Wl,-rpath "-Wl,$(shell pwd)"3USE_LIBDL :=14 5a.out: libother6 7include Makefile.rules8 9# The following shared library will be used to test breakpoints under dynamic loading10libother: other.c11 "$(MAKE)" -f $(MAKEFILE_RULES) \12 DYLIB_ONLY=YES DYLIB_C_SOURCES=other.c DYLIB_NAME=other13