mirror of
https://github.com/darlinghq/darling-dyld.git
synced 2024-11-23 12:29:44 +00:00
34 lines
468 B
Makefile
34 lines
468 B
Makefile
|
|
||
|
|
||
|
|
||
|
|
||
|
#
|
||
|
# test that if the main executable overrides operator new
|
||
|
# that a dylib using operator new is redirected to it.
|
||
|
#
|
||
|
#
|
||
|
|
||
|
TESTROOT = ../..
|
||
|
include ${TESTROOT}/include/common.makefile
|
||
|
|
||
|
|
||
|
all-check: all check
|
||
|
|
||
|
check:
|
||
|
./main
|
||
|
|
||
|
all: main
|
||
|
|
||
|
|
||
|
main: main.cxx libfoo.dylib
|
||
|
${CXX} ${CXXFLAGS} -I${TESTROOT}/include -o main main.cxx libfoo.dylib
|
||
|
|
||
|
libfoo.dylib: foo.cxx
|
||
|
${CXX} ${CXXFLAGS} -dynamiclib foo.cxx -o libfoo.dylib
|
||
|
|
||
|
|
||
|
|
||
|
clean:
|
||
|
${RM} ${RMFLAGS} *~ main libfoo.dylib
|
||
|
|