diff options
| author | Ray <[email protected]> | 2017-03-05 15:49:19 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-03-05 15:49:19 +0100 |
| commit | bb7b9adb371f89f3c8677bdca5418013fe73d9c1 (patch) | |
| tree | 99f1dd9b8c42afb190dc30937dfe2ccc3458ff77 /examples/Makefile | |
| parent | b16f11845259205b484c3633b9b9375a69a917ae (diff) | |
| parent | 203d1a154eb5b78fc5f56e9dead04c3a89bcd39e (diff) | |
| download | raylib-bb7b9adb371f89f3c8677bdca5418013fe73d9c1.tar.gz raylib-bb7b9adb371f89f3c8677bdca5418013fe73d9c1.zip | |
Merge pull request #236 from raysan5/develop
Integrate Develop branch
Diffstat (limited to 'examples/Makefile')
| -rw-r--r-- | examples/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/examples/Makefile b/examples/Makefile index 80437590..98129990 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -147,13 +147,13 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) # libglfw3-dev libopenal-dev libegl1-mesa-dev LIBS = -lraylib -lglfw3 -lGL -lopenal -lm -lpthread -ldl # on XWindow could require also below libraries, just uncomment - #LIBS += -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor + LIBS += -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor else ifeq ($(PLATFORM_OS),OSX) # libraries for OS X 10.9 desktop compiling # requires the following packages: # libglfw3-dev libopenal-dev libegl1-mesa-dev - LIBS = -lraylib -lglfw3 -framework OpenGL -framework OpenAl -framework Cocoa + LIBS = -lraylib -lglfw -framework OpenGL -framework OpenAL -framework Cocoa else # libraries for Windows desktop compiling # NOTE: GLFW3 and OpenAL Soft libraries should be installed @@ -497,6 +497,13 @@ audio_module_playing: audio_module_playing.c audio_raw_stream: audio_raw_stream.c $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDES) $(LFLAGS) $(LIBS) -D$(PLATFORM) $(WINFLAGS) +# Linux Fix to timespect from +ifeq ($(PLATFORM),PLATFORM_DESKTOP) + ifeq ($(PLATFORM_OS),LINUX) + CFLAGS += -D_POSIX_C_SOURCE=199309L + endif +endif + # compile [physac] example - physics demo physics_demo: physics_demo.c $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDES) $(LFLAGS) $(LIBS) -lpthread -D$(PLATFORM) $(WINFLAGS) |
