Browse Source

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 year ago
committed by GitHub
parent
commit
ea325c54e8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      examples/Makefile

+ 3
- 1
examples/Makefile View File

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

Loading…
Cancel
Save