modified makefiles

Signed-off-by: h4570 <sandro.sobczynski@gmail.com>
This commit is contained in:
h4570
2021-05-28 19:31:23 +02:00
parent dd8499abad
commit 70ea8e47ba
5 changed files with 43 additions and 42 deletions
Executable → Regular
+11 -10
View File
@@ -1,9 +1,7 @@
EE_BIN = dolphin.elf
TYRA_DIR = ./../../engine
PCSX2_PATH = /mnt/c/Program\ Files\ \(x86\)/PCSX2/pcsx2.exe
WSL_TYRA_PATH = \\\\wsl$$\\PS2-DEV\\repos\\tyra
# Project settings
DIR_NAME = dolphin
EE_LIBS = -ltyra
EE_OBJS = \
camera.o \
objects/player.o \
@@ -12,7 +10,10 @@ EE_OBJS = \
dolphin.o \
main.o
EE_LIBS = -ltyra
# ----------------
# Other
EE_BIN = $(DIR_NAME).elf
all: $(EE_BIN)
$(EE_STRIP) --strip-all $(EE_BIN)
@@ -20,10 +21,10 @@ all: $(EE_BIN)
rm $(EE_OBJS)
rebuild-engine:
cd $(TYRA_DIR) && make clean && make EE_CXXFLAGS="-DNDEBUG $(EE_CXXFLAGS)"
cd $(TYRA)/src/engine && make clean && make EE_CXXFLAGS="-DNDEBUG $(EE_CXXFLAGS)"
rebuild-dbg-engine:
cd $(TYRA_DIR) && make clean && make
cd $(TYRA)/src/engine && make clean && make
clean:
rm -f $(EE_OBJS)
@@ -39,6 +40,6 @@ run: $(EE_BIN)
run-pcsx2:
taskkill.exe /f /t /im pcsx2.exe || true
$(PCSX2_PATH) --elf=$(WSL_TYRA_PATH)\\src\\samples\\dolphin\\bin\\dolphin.elf
$(WSL_LINUX_PCSX2)/pcsx2.exe --elf=$(WSL_MAKE_WINDOWS)\\repos\\tyra\\src\\samples\\$(DIR_NAME)\\bin\\$(EE_BIN)
include $(TYRA_DIR)/Makefile.pref
include $(TYRA)/src/engine/Makefile.pref