Fixed make setup for Ubuntu builds
This commit is contained in:
parent
0ec85ea512
commit
6dcb4ad9c4
9
Makefile
9
Makefile
@ -19,12 +19,14 @@ else
|
|||||||
platform = Linux
|
platform = Linux
|
||||||
compiler = g++
|
compiler = g++
|
||||||
options = -l GL -l m -l pthread -l dl -l rt -l X11
|
options = -l GL -l m -l pthread -l dl -l rt -l X11
|
||||||
|
libGenDirectory = # Empty
|
||||||
endif
|
endif
|
||||||
ifeq ($(UNAMEOS), Darwin)
|
ifeq ($(UNAMEOS), Darwin)
|
||||||
# Set macOS compile macros
|
# Set macOS compile macros
|
||||||
platform = macOS
|
platform = macOS
|
||||||
compiler = clang++
|
compiler = clang++
|
||||||
options = -framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL
|
options = -framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL
|
||||||
|
libGenDirectory = src
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Set UNIX commands
|
# Set UNIX commands
|
||||||
@ -40,17 +42,18 @@ setup: include lib
|
|||||||
|
|
||||||
pull:
|
pull:
|
||||||
git submodule init; git submodule update
|
git submodule init; git submodule update
|
||||||
cd vendor/raylib-cpp; git submodule init ; git submodule update
|
cd vendor/raylib-cpp; git submodule init; git submodule update
|
||||||
|
|
||||||
include: pull
|
include: pull
|
||||||
$(mkdirCommand) include
|
$(mkdirCommand) include
|
||||||
cp vendor/raylib-cpp/vendor/raylib/src/{raylib.h,raymath.h} include
|
cp vendor/raylib-cpp/vendor/raylib/src/raylib.h include/raylib.h
|
||||||
|
cp vendor/raylib-cpp/vendor/raylib/src/raymath.h include/raymath.h
|
||||||
cp vendor/raylib-cpp/include/*.hpp include
|
cp vendor/raylib-cpp/include/*.hpp include
|
||||||
|
|
||||||
lib: pull
|
lib: pull
|
||||||
cd vendor/raylib-cpp/vendor/raylib/src; make PLATFORM=PLATFORM_DESKTOP
|
cd vendor/raylib-cpp/vendor/raylib/src; make PLATFORM=PLATFORM_DESKTOP
|
||||||
$(mkdirCommand) lib/$(platform)
|
$(mkdirCommand) lib/$(platform)
|
||||||
cp vendor/raylib-cpp/vendor/raylib/src/libraylib.a lib/macOS/libraylib.a
|
cp vendor/raylib-cpp/vendor/raylib/$(libGenDirectory)/libraylib.a lib/$(platform)/libraylib.a
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
$(mkdirCommand) build
|
$(mkdirCommand) build
|
||||||
|
Loading…
Reference in New Issue
Block a user