diff options
| author | raysan5 <raysan5@gmail.com> | 2016-07-25 19:43:59 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-07-25 19:43:59 +0200 |
| commit | c604b53f78adc2c96d5f0ee6cd1becb3429c778a (patch) | |
| tree | c6a0e13ed348848b9e16d488f6c5a3cf88ea94f2 | |
| parent | 020601092e1dd873fbf067743ffaf9214c45341a (diff) | |
| download | raylib-c604b53f78adc2c96d5f0ee6cd1becb3429c778a.tar.gz raylib-c604b53f78adc2c96d5f0ee6cd1becb3429c778a.zip | |
Corrected issue with paths on RPI
| -rw-r--r-- | examples/Makefile | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/examples/Makefile b/examples/Makefile index 39765f15..b4bc0411 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -77,8 +77,27 @@ endif #CFLAGSEXTRA = -Wextra -Wmissing-prototypes -Wstrict-prototypes +# define raylib release directory for compiled library +ifeq ($(PLATFORM),PLATFORM_DESKTOP) + ifeq ($(PLATFORM_OS),WINDOWS) + RAYLIB_PATH = ../release/win32/mingw32 + endif + ifeq ($(PLATFORM_OS),LINUX) + RAYLIB_PATH = ../release/linux + endif + ifeq ($(PLATFORM_OS),OSX) + RAYLIB_PATH = ../release/osx + endif +endif +ifeq ($(PLATFORM),PLATFORM_WEB) + RAYLIB_PATH = ../release/html5 +endif +ifeq ($(PLATFORM),PLATFORM_RPI) + RAYLIB_PATH = ../release/rpi +endif + # define any directories containing required header files -INCLUDES = -I. -I../src -I../src/external +INCLUDES = -I. -I../src -I../src/external -I$(RAYLIB_PATH) ifeq ($(PLATFORM),PLATFORM_RPI) INCLUDES += -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads @@ -97,7 +116,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) endif # define library paths containing required libs -LFLAGS = -L. -L../src +LFLAGS = -L. -L../src -L$(RAYLIB_PATH) ifeq ($(PLATFORM),PLATFORM_RPI) LFLAGS += -L/opt/vc/lib |
