mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-10-30 22:11:50 +00:00
17 lines
327 B
Makefile
17 lines
327 B
Makefile
CC=gcc
|
|
CFLAGS=-I.
|
|
DEPS=./../wgpu-bindings/wgpu.h
|
|
OUTDIR=./build
|
|
LINK_ARGS=-L ./../target/debug -lwgpu_native
|
|
|
|
%.o: %.c $(DEPS)
|
|
$(CC) $(LINK_ARGS) -c -o $(OUTDIR)/$@ $< $(CFLAGS)
|
|
|
|
hello_triangle_c: hello_triangle_c/main.c
|
|
mkdir -p $(OUTDIR)
|
|
$(CC) $(LINK_ARGS) -o $(OUTDIR)/$@ $^ $(CFLAGS)
|
|
|
|
.PHONY: all
|
|
|
|
all: hello_triangle_c
|