@@ -168,27 +168,29 @@ else
168168endif
169169
170170examples/minimal_links/minimal_links : examples/minimal_links/minimal_links.c RGFW.h
171- ifeq ($(detected_OS ) ,Linux)
171+ ifeq ($(CC ) ,emcc)
172+ @echo nostl is not supported on this platform
173+ else ifeq ($(detected_OS),Linux)
172174 $(CC) $(CFLAGS) -I. $< -o $@$(EXT)
173175else ifeq ($(detected_OS),windows)
174176 $(CC) $(CFLAGS) $(WARNINGS) -I. $< -lgdi32 -o $@$(EXT)
175177else ifeq ($(detected_OS),Darwin)
176178 $(CC) $(CFLAGS) $(WARNINGS) -I. $< -framework Foundation -framework AppKit -o $@$(EXT)
177- else ifeq ($(CC),emcc)
178- $(CC) $(CFLAGS) $(WARNINGS) -I. $< $(LIBS) $(LINK_GL3) -o $@$(EXT)
179179else
180180 @echo minimal_links is not supported on this platform
181181endif
182182
183183
184184examples/nostl/nostl : examples/nostl/nostl.c RGFW.h
185- ifeq ($(detected_OS ) ,Linux)
185+ ifeq ($(CC ) ,emcc)
186+ @echo nostl is not supported on this platform
187+ else ifeq ($(detected_OS),Linux)
186188 $(CC) $(CFLAGS) $(LIBS) -nostdlib -I. $< -o $@$(EXT)
187189else ifeq ($(detected_OS),windows)
188190 $(CC) $(CFLAGS) $(WARNINGS) -nostdlib -I. $< -lgdi32 -o $@$(EXT)
189191else ifeq ($(detected_OS),Darwin)
190192 $(CC) $(CFLAGS) $(WARNINGS) -nostdlib -I. $< -framework Foundation -framework AppKit -o $@$(EXT)
191- else ifeq ($(CC),emcc)
193+ else
192194 @echo nostl is not supported on this platform
193195endif
194196
0 commit comments