Add libJabyEngine.a to PSEXE Target Makefile
This commit is contained in:
parent
2747433c7f
commit
be29b4bfe2
|
@ -19,6 +19,7 @@ PREFIX ?= mipsel-none-elf
|
|||
FORMAT ?= elf32-littlemips
|
||||
endif
|
||||
|
||||
#Take this to PSEXETarget.mk??
|
||||
LDSCRIPT ?= $(PSCX_REDUX_DIR)/ps-exe.ld
|
||||
ifneq ($(strip $(OVERLAYSCRIPT)),)
|
||||
LDSCRIPT := $(addprefix $(OVERLAYSCRIPT) , -T$(LDSCRIPT))
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
#We use the JabyEngine so we will include ourselves
|
||||
JABY_ENGINE_LIB_DIR = $(JABY_ENGINE_DIR)/lib/PSX-$(BUILD_PROFILE)
|
||||
JABY_ENGINE_LIB_NAME = JabyEngine
|
||||
|
||||
#Linking rule
|
||||
$(TARGET).elf: $(OBJS)
|
||||
$(LD) -o $(TARGET).elf $(LDFLAGS_all) $(LDFLAGS) $(OBJS) $(LIBS)
|
||||
$(TARGET).elf: $(OBJS) $(JABY_ENGINE_LIB_DIR)/lib$(JABY_ENGINE_LIB_NAME).a
|
||||
$(LD) -o $(TARGET).elf $(LDFLAGS_all) $(LDFLAGS) $(OBJS) -L$(JABY_ENGINE_LIB_DIR) -l$(JABY_ENGINE_LIB_NAME) $(LIBS)
|
||||
|
||||
#Strips the psexe
|
||||
$(TARGET).psexe: $(TARGET).elf
|
||||
|
|
Loading…
Reference in New Issue