diff options
| author | raysan5 <[email protected]> | 2017-04-23 12:05:18 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2017-04-23 12:05:18 +0200 |
| commit | 9b072dc34677d00155fa8795f863f7ee2fd76b51 (patch) | |
| tree | aed03e27d262b8953c2d36086c2c44271bda17c2 /games/wave_collector | |
| parent | cfec2b40a42c3848d3fc8bd16eb5b7443591fc5a (diff) | |
| download | raylib-9b072dc34677d00155fa8795f863f7ee2fd76b51.tar.gz raylib-9b072dc34677d00155fa8795f863f7ee2fd76b51.zip | |
Review game examples Makefiles
Diffstat (limited to 'games/wave_collector')
| -rw-r--r-- | games/wave_collector/Makefile | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/games/wave_collector/Makefile b/games/wave_collector/Makefile index 80293875..3f22dcce 100644 --- a/games/wave_collector/Makefile +++ b/games/wave_collector/Makefile @@ -2,8 +2,6 @@ # # raylib makefile for desktop platforms, Raspberry Pi and HTML5 (emscripten) # -# NOTE: By default examples are compiled using raylib static library and OpenAL Soft shared library -# # Copyright (c) 2013-2017 Ramon Santamaria (@raysan5) # # This software is provided "as-is", without any express or implied warranty. In no event @@ -38,7 +36,7 @@ ifeq ($(PLATFORM),PLATFORM_WEB) endif # define raylib directory for include and library -RAYLIB_PATH = C:\GitHub\raylib +RAYLIB_PATH ?= D:\GitHub\raylib # determine PLATFORM_OS in case PLATFORM_DESKTOP selected ifeq ($(PLATFORM),PLATFORM_DESKTOP) @@ -180,7 +178,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) LIBS += -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor else ifeq ($(PLATFORM_OS),OSX) - # libraries for OS X 10.9 desktop compiling + # libraries for OSX 10.9 desktop compiling # requires the following packages: # libglfw3-dev libopenal-dev libegl1-mesa-dev LIBS = -lraylib -lglfw -framework OpenGL -framework OpenAL -framework Cocoa @@ -216,7 +214,7 @@ ifeq ($(PLATFORM_OS),WINDOWS) endif ifeq ($(PLATFORM),PLATFORM_WEB) - WEB_EXT = .html + EXT = .html WEB_SHELL = --shell-file $(RAYLIB_PATH)\templates\web_shell\shell.html endif @@ -228,12 +226,11 @@ SCREENS = \ screens/screen_ending.o \ # typing 'make' will invoke the default target entry +default: wave_collector -all: wave_collector - -# compile template - advance_game +# compile program wave_collector: wave_collector.c $(SCREENS) - $(CC) -o $@$(WEB_EXT) $< $(SCREENS) $(CFLAGS) $(INCLUDES) $(LFLAGS) $(LIBS) -D$(PLATFORM) $(WINFLAGS) $(WEB_SHELL) + $(CC) -o $@$(EXT) $^ $(CFLAGS) $(INCLUDES) $(LFLAGS) $(LIBS) -D$(PLATFORM) $(WINFLAGS) $(WEB_SHELL) # compile screen LOGO screens/screen_logo.o: screens/screen_logo.c |
