Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (28 sloc) 0.638 kb
VPATH=%VPATH%
CC ?= gcc
CXX ?= g++
CXXFLAGS ?=
AR ?= ar
RUSTC ?= rustc
RUSTFLAGS ?=
UNAME=$(shell uname)
RUST_SRC=$(shell find $(VPATH)/. -type f -name '*.rs')
.PHONY: all
all: extlibs librustcairo.dummy
%.o: %.c
$(CC) $< -o $@ -c $(CFLAGS)
.PHONY: extlibs
extlibs:
@cp ../cairo/src/.libs/libcairo.a .
@cp ../pixman/pixman/.libs/libpixman-1.a .
librustcairo.dummy: cairo.rc $(RUST_SRC)
$(RUSTC) $(RUSTFLAGS) $< -o $@
touch $@
cairo-test: cairo.rc $(RUST_SRC)
$(RUSTC) $(RUSTFLAGS) $< -o $@ --test
.PHONY: check
check: extlibs cairo-test
./cairo-test
.PHONY: clean
clean:
rm -f *.o *.a *.so *.dylib *.dll *.dummy *-test
Jump to Line
Something went wrong with that request. Please try again.