mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-26 00:33:51 +00:00
15 lines
308 B
Makefile
15 lines
308 B
Makefile
all: hello_world_c
|
|
|
|
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_world_c: hello_triangle_c/main.c
|
|
mkdir -p $(OUTDIR)
|
|
$(CC) $(LINK_ARGS) -o $(OUTDIR)/$@ $^ $(CFLAGS)
|