mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
40 lines
712 B
Makefile
40 lines
712 B
Makefile
VPATH=%VPATH%
|
|
|
|
RUSTC?=rustc
|
|
RUSTFLAGS?=
|
|
|
|
RUSTFLAGS += -L src/rust-azure -L src/rust-sdl
|
|
|
|
RUST_SRC=$(shell find $(VPATH)/src -type f -name '*.rs')
|
|
|
|
.PHONY: all
|
|
all: servo
|
|
|
|
servo: \
|
|
src/servo/servo.rc $(RUST_SRC) \
|
|
src/rust-azure/libazure.dummy \
|
|
src/rust-sdl/libsdl.dummy
|
|
$(RUSTC) $(RUSTFLAGS) -o $@ $<
|
|
|
|
servo-test: \
|
|
src/servo/servo.rc $(RUST_SRC) \
|
|
src/rust-azure/libazure.dummy \
|
|
src/rust-sdl/libsdl.dummy
|
|
$(RUSTC) $(RUSTFLAGS) --test -o $@ $<
|
|
|
|
src/rust-azure/libazure.dummy:
|
|
make -C src/rust-azure
|
|
|
|
src/rust-sdl/libsdl.dummy:
|
|
make -C src/rust-sdl
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
make clean -C src/rust-azure
|
|
make clean -C src/rust-sdl
|
|
rm -f servo servo-test
|
|
|
|
.PHONY: test
|
|
test: servo-test
|
|
./servo-test
|