Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (22 sloc) 491 Bytes
VPATH=%VPATH%
CC ?= gcc
CXX ?= g++
CXXFLAGS ?=
AR ?= ar
RUSTC ?= rustc
RUSTFLAGS ?=
RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs')
.PHONE: all
all: librustlayers.dummy
%.o: %.c
$(CC) $< -o $@ -c $(CFLAGS)
librustlayers.dummy: layers.rc $(RUST_SRC)
$(RUSTC) $(RUSTFLAGS) $< -o $@
touch $@
rustlayers-test: layers.rc $(RUST_SRC)
$(RUSTC) $(RUSTFLAGS) $< -o $@ --test
check: rustlayers-test
./rustlayers-test
.PHONY: clean
clean:
rm -f *.o *.a *.so *.dylib *.dll *.dummy