portability/Makefile
2017-09-06 22:02:03 -04:00

24 lines
462 B
Makefile

HEADER=native/vulkan/vulkan.h
BINDING=src/original.rs
TARGET=native/test
OBJECTS=native/test.o
OUTPUT_DIR=target/debug
OUTPUT=${OUTPUT_DIR}/libvulkan.a
all: ${TARGET}
${BINDING}: ${HEADER}
bindgen --no-layout-tests --rustfmt-bindings ${HEADER} -o ${BINDING}
portability: ${BINDING}
cargo build
${TARGET}: portability ${OBJECTS}
gcc -o ${TARGET} -L${OUTPUT_DIR} -lvulkan ${OBJECTS}
run: ${TARGET}
${TARGET}
clean:
rm -f ${OBJECTS} ${TARGET} ${BINDING}