Skip to content

Commit

Permalink
add SDL2 build target
Browse files Browse the repository at this point in the history
  • Loading branch information
AI-WAIFU committed Jul 12, 2023
1 parent cd46a16 commit d415e8f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
17 changes: 13 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
all:
.PHONY: all deps repos sdl2 package
SDL2_CMAKE_FILE := lib/SDL/build/lib/cmake/SDL2/sdl2-config.cmake

all: package

deps:
#Install dependencies
# Install dependencies
util/minetester/install_deps.sh

repos:
#Init all submodules
# Init all submodules
git submodule update --init --recursive

$(SDL2_CMAKE_FILE):
# compile sdl2
util/minetester/build_sdl2.sh

package: deps repos

sdl2: $(SDL2_CMAKE_FILE)

package: deps repos

4 changes: 4 additions & 0 deletions util/minetester/build_sdl2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cd lib/SDL
mkdir build
cd build
../configure --prefix=`pwd` && make && make install

0 comments on commit d415e8f

Please sign in to comment.