mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-17 01:26:07 +00:00

This replaces `include $(LEVEL)/Makefile.rules` with `include Makefile.rules`. The lldb test driver already passes the include path when running make, and specifically looking for "../../Makefile.rules" forces the test to be in a specific location. Removing this hardcoded relative path will make it possible to move this test as-is.
14 lines
273 B
Makefile
14 lines
273 B
Makefile
C_SOURCES := main.c
|
|
LD_EXTRAS := -L. -lfoo
|
|
|
|
TRIPLE := x86_64-apple-ios13.0-macabi
|
|
CFLAGS_EXTRAS := -target $(TRIPLE)
|
|
|
|
all: libfoo.dylib a.out
|
|
|
|
libfoo.dylib: foo.c
|
|
$(MAKE) -f $(MAKEFILE_RULES) \
|
|
DYLIB_ONLY=YES DYLIB_NAME=foo DYLIB_C_SOURCES=foo.c
|
|
|
|
include Makefile.rules
|