Allow for prevention of psp-fixup-imports.

- means export only modules can be built by adding NO_FIXUP_IMPORTS=1
This commit is contained in:
Sam Hegarty
2011-08-13 11:30:36 +12:00
parent 8a3bef9012
commit 62459981b4

View File

@@ -167,9 +167,14 @@ SCEkxploit: $(TARGET).elf $(PSP_EBOOT_SFO)
$(PSP_EBOOT_ICON1) $(PSP_EBOOT_UNKPNG) $(PSP_EBOOT_PIC1) \
$(PSP_EBOOT_SND0) NULL $(PSP_EBOOT_PSAR)
ifeq ($(NO_FIXUP_IMPORTS), 1)
$(TARGET).elf: $(OBJS) $(EXPORT_OBJ)
$(LINK.c) $^ $(LIBS) -o $@
else
$(TARGET).elf: $(OBJS) $(EXPORT_OBJ)
$(LINK.c) $^ $(LIBS) -o $@
$(FIXUP) $@
endif
$(TARGET_LIB): $(OBJS)
$(AR) cru $@ $(OBJS)