瀏覽代碼

fix examples Makefile to use Makefile.Web when building for web (#3449)

Co-authored-by: Keith Stellyes <keith@keithstellyes.com>
pull/3452/head
Keith Stellyes 1 年之前
committed by GitHub
父節點
當前提交
ea325c54e8
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      examples/Makefile

+ 3
- 1
examples/Makefile 查看文件

@ -156,7 +156,7 @@ ifeq ($(PLATFORM),PLATFORM_ANDROID)
MAKE = mingw32-make
endif
ifeq ($(PLATFORM),PLATFORM_WEB)
MAKE = mingw32-make
MAKE = emmake make
endif
# Define compiler flags: CFLAGS
@ -533,6 +533,8 @@ others: $(OTHERS)
%: %.c
ifeq ($(PLATFORM),PLATFORM_ANDROID)
$(MAKE) -f Makefile.Android PROJECT_NAME=$@ PROJECT_SOURCE_FILES=$<
else ifeq ($(PLATFORM),PLATFORM_WEB)
$(MAKE) -f Makefile.Web $@
else
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
endif

Loading…
取消
儲存