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
|
||||
compiler = g++
|
||||
options = -l GL -l m -l pthread -l dl -l rt -l X11
|
||||
libGenDirectory = # Empty
|
||||
endif
|
||||
ifeq ($(UNAMEOS), Darwin)
|
||||
# Set macOS compile macros
|
||||
platform = macOS
|
||||
compiler = clang++
|
||||
options = -framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL
|
||||
libGenDirectory = src
|
||||
endif
|
||||
|
||||
# Set UNIX commands
|
||||
@ -40,17 +42,18 @@ setup: include lib
|
||||
|
||||
pull:
|
||||
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
|
||||
$(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
|
||||
|
||||
lib: pull
|
||||
cd vendor/raylib-cpp/vendor/raylib/src; make PLATFORM=PLATFORM_DESKTOP
|
||||
$(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:
|
||||
$(mkdirCommand) build
|
||||
|
Loading…
Reference in New Issue
Block a user