mirror of
https://github.com/italicsjenga/portability.git
synced 2024-11-22 07:01:29 +11:00
24 lines
462 B
Makefile
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}
|