]>
git.proxmox.com Git - rustc.git/blob - src/test/run-make-fulldeps/c-unwind-abi-catch-lib-panic/Makefile
4 # Compile `main.rs`, which will link into our library, and run it.
10 # Now, create an archive using these two objects.
11 $(AR
) crus
$(TMPDIR
)/add.lib
$(TMPDIR
)/add.o
$(TMPDIR
)/panic.o
13 archive
: add.o panic.o
14 # Now, create an archive using these two objects.
15 $(AR
) crus
$(TMPDIR
)/libadd.a
$(TMPDIR
)/add.o
$(TMPDIR
)/panic.o
18 # Compile `panic.rs` into an object file.
20 # Note that we invoke `rustc` directly, so we may emit an object rather
21 # than an archive. We'll do that later.
23 $(BARE_RUSTC
) $(RUSTFLAGS
) \
27 # Compile `add.c` into an object file.
29 $(call COMPILE_OBJ
,$(TMPDIR
)/add.o
,add.c
)