This makes tests more portable. Make variables for LLVM utils are passed to `make` on Darwin as well. Co-authored-by: Vladimir Vereschaka <vvereschaka@accesssoftek.com>
17 lines
288 B
Makefile
17 lines
288 B
Makefile
DYLIB_NAME := foo
|
|
DYLIB_CXX_SOURCES := foo.cpp
|
|
CXX_SOURCES := main.cpp
|
|
|
|
LD_EXTRAS := -Wl,-rpath "-Wl,$(shell pwd)"
|
|
USE_LIBDL :=1
|
|
|
|
include Makefile.rules
|
|
|
|
all: a.out.stripped
|
|
|
|
a.out.stripped:
|
|
$(STRIP) -o a.out.stripped a.out
|
|
|
|
ifneq "$(CODESIGN)" ""
|
|
$(CODESIGN) -fs - a.out.stripped
|
|
endif |