diff options
| author | Ray <[email protected]> | 2020-01-15 18:00:13 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-01-15 18:00:13 +0100 |
| commit | 20e446cc7df3f67a8d1df3146ad0d026b5e0c0b5 (patch) | |
| tree | a9b6ebb73aec53fca14e7399fd5862588ec99635 /examples/Makefile | |
| parent | 1eae4b483b0b1912647b67b6ff78e1b4b22c0920 (diff) | |
| download | raylib-20e446cc7df3f67a8d1df3146ad0d026b5e0c0b5.tar.gz raylib-20e446cc7df3f67a8d1df3146ad0d026b5e0c0b5.zip | |
Review Makefiles for web compilation
Diffstat (limited to 'examples/Makefile')
| -rw-r--r-- | examples/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/Makefile b/examples/Makefile index 4b648f36..5edd2fcf 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -2,7 +2,7 @@ # # raylib makefile for Desktop platforms, Raspberry Pi, Android and HTML5 # -# Copyright (c) 2013-2019 Ramon Santamaria (@raysan5) +# Copyright (c) 2013-2020 Ramon Santamaria (@raysan5) # # This software is provided "as-is", without any express or implied warranty. In no event # will the authors be held liable for any damages arising from the use of this software. @@ -164,7 +164,7 @@ ifeq ($(PLATFORM),PLATFORM_RPI) endif ifeq ($(PLATFORM),PLATFORM_WEB) # HTML5 emscripten compiler - # WARNING: To compile to HTML5, code must be redesigned + # WARNING: To compile to HTML5, code must be redesigned # to use emscripten.h and emscripten_set_main_loop() CC = emcc endif @@ -195,7 +195,11 @@ ifeq ($(BUILD_MODE),DEBUG) CFLAGS += -s ASSERTIONS=1 --profiling endif else - CFLAGS += -s -O1 + ifeq ($(PLATFORM),PLATFORM_WEB) + CFLAGS += -Os + else + CFLAGS += -s -O1 + endif endif # Additional flags for compiler (if desired) |
