Skip to content

Commit ea325c5

Browse files
fix examples Makefile to use Makefile.Web when building for web (#3449)
Co-authored-by: Keith Stellyes <keith@keithstellyes.com>
1 parent da9bc56 commit ea325c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ ifeq ($(PLATFORM),PLATFORM_ANDROID)
156156
MAKE = mingw32-make
157157
endif
158158
ifeq ($(PLATFORM),PLATFORM_WEB)
159-
MAKE = mingw32-make
159+
MAKE = emmake make
160160
endif
161161

162162
# Define compiler flags: CFLAGS
@@ -533,6 +533,8 @@ others: $(OTHERS)
533533
%: %.c
534534
ifeq ($(PLATFORM),PLATFORM_ANDROID)
535535
$(MAKE) -f Makefile.Android PROJECT_NAME=$@ PROJECT_SOURCE_FILES=$<
536+
else ifeq ($(PLATFORM),PLATFORM_WEB)
537+
$(MAKE) -f Makefile.Web $@
536538
else
537539
$(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM)
538540
endif

0 commit comments

Comments
 (0)