mirror of
https://github.com/siemens-mobile-hacks/llvm-c166.git
synced 2026-11-28 11:52:25 +00:00
In #102185, toolchain detection for API tests has been rewritten in Python. Tools paths for tests there are determined from compiler path. Here tools are taken from `--llvm-tools-dir` dotest.py argument, which by default refers to the LLVM build directory, unless they are explicitly redefined in environment variables. It helps to minimize external dependencies and to maximize the reproducibility of the build.
22 lines
456 B
Makefile
22 lines
456 B
Makefile
C_SOURCES := main.c a.c b.c c.c
|
|
EXE := # Define a.out explicitly
|
|
MAKE_DSYM := NO
|
|
|
|
all: a.out libbar.a libfoo-thin.a
|
|
|
|
a.out: main.o libfoo.a
|
|
$(LD) $(LDFLAGS) $^ -o $@
|
|
|
|
libfoo.a: a.o b.o
|
|
$(AR) $(ARFLAGS) $@ $^
|
|
|
|
# This tests whether lldb can load a thin archive
|
|
libbar.a: c.o
|
|
$(eval LLVM_ARFLAGS := -rcsDT)
|
|
$(LLVM_AR) $(LLVM_ARFLAGS) $@ $^
|
|
|
|
libfoo-thin.a: a.o b.o
|
|
$(eval LLVM_ARFLAGS := -rcsUT)
|
|
$(LLVM_AR) $(LLVM_ARFLAGS) $@ $^
|
|
|
|
include Makefile.rules
|