diff --git a/Makefile b/Makefile index 2646318..30920fd 100644 --- a/Makefile +++ b/Makefile @@ -362,7 +362,16 @@ chip-lto-pro: $(eval OPT += $(OPT_PRO)) make chip-lto OPT="$(OPT)" -linux: +WREN_A=$(3RD_PARTY)/wren-0.1.0/lib/libwren.a +SDLGPU_A=$(3RD_PARTY)/sdl-gpu/build/linux/libsdlgpu.a + +$(WREN_A): + make static -C $(3RD_PARTY)/wren-0.1.0/ + +$(SDLGPU_A): + make -C $(3RD_PARTY)/sdl-gpu/build/linux/ + +linux: $(WREN_A) $(SDLGPU_A) $(CC) $(LINUX_INCLUDES) $(SOURCES) $(SYSTEM) $(LPEG_SRC) $(GIF_SRC) $(SOURCES_EXT) $(TIC80_SRC) $(OPT) $(INCLUDES) $(LINUX_LIBS) $(LINUX_LINKER_FLAGS) -o $(BIN_NAME) linux-pro: diff --git a/README.md b/README.md index 174bf28..714c6b4 100644 --- a/README.md +++ b/README.md @@ -68,8 +68,6 @@ run the following commands in the Terminal ``` sudo apt-get install git build-essential libgtk-3-dev libsdl2-dev lua5.3-dev zlib1g-dev git clone --recursive https://github.com/nesbox/TIC-80 -make static -C 3rd-party/wren-0.1.0/ -make -C 3rd-party/sdl-gpu/build/linux/ make linux ```