Merge pull request #1 from SamRH/master

Allow for export only modules to be built using sdk makefiles
This commit is contained in:
Dan Peori
2011-08-14 21:42:32 -07:00
2 changed files with 10 additions and 1 deletions

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)

View File

@@ -69,10 +69,14 @@ endif
FINAL_TARGET = $(TARGET).prx
all: $(FINAL_TARGET)
ifeq ($(NO_FIXUP_IMPORTS), 1)
$(TARGET).elf: $(OBJS)
$(LINK.c) $^ $(LIBS) -o $@
else
$(TARGET).elf: $(OBJS)
$(LINK.c) $^ $(LIBS) -o $@
$(FIXUP) $@
endif
%.prx: %.elf
psp-prxgen $< $@