浏览代码

Add Raspberry Pi to OpenGL ES2 makefile

Dmitry Hrabrov 7 年之前
父节点
当前提交
bb21a3c836
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      demo/sdl_opengles2/Makefile

+ 4 - 1
demo/sdl_opengles2/Makefile

@@ -18,7 +18,10 @@ $(BIN): prepare
 	$(CC) $(SRC) $(CFLAGS) -o bin/$(BIN) $(LIBS)
 	$(CC) $(SRC) $(CFLAGS) -o bin/$(BIN) $(LIBS)
 
 
 web: prepare
 web: prepare
-	emcc $(SRC) -Os -s USE_SDL=2 -o bin/index.html 
+	emcc $(SRC) -Os -s USE_SDL=2 -o bin/index.html
+
+rpi: prepare
+	$(CC) $(SRC) $(CFLAGS) -o bin/$(BIN) `PKG_CONFIG_PATH=/opt/vc/lib/pkgconfig/ pkg-config --cflags --libs bcm_host brcmglesv2` `/usr/local/bin/sdl2-config --libs --cflags`
 
 
 prepare:
 prepare:
 	@mkdir -p bin
 	@mkdir -p bin