diff options
| author | Keith Stellyes <[email protected]> | 2023-10-22 05:58:35 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-22 14:58:35 +0200 |
| commit | ea325c54e89743432eef7b22e724515b53501767 (patch) | |
| tree | ac75046b396b779c0df2dd7b700f07fb2a181685 /examples | |
| parent | da9bc564d2534ac447b0a22761e38ed2fd3e717b (diff) | |
| download | raylib-ea325c54e89743432eef7b22e724515b53501767.tar.gz raylib-ea325c54e89743432eef7b22e724515b53501767.zip | |
fix examples Makefile to use Makefile.Web when building for web (#3449)
Co-authored-by: Keith Stellyes <[email protected]>
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/Makefile b/examples/Makefile index 74b3b874..136a0ab4 100644 --- a/examples/Makefile +++ b/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 |
