Implement PSEXE Target as separated makefile
This commit is contained in:
parent
b872a8db15
commit
2b9353f445
|
@ -79,13 +79,6 @@ $(OUTPUT_DIR)/%.o: $$(subst !super,..,%.s)
|
||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
$(CC) $(ARCHFLAGS) -I$(PCSX_REDUX) -g -c -o $@ $<
|
$(CC) $(ARCHFLAGS) -I$(PCSX_REDUX) -g -c -o $@ $<
|
||||||
|
|
||||||
$(TARGET).elf: $(OBJS)
|
|
||||||
$(LD) -o $(TARGET).elf $(LDFLAGS_all) $(LDFLAGS) $(OBJS) $(LIBS_all) $(LIBS)
|
|
||||||
|
|
||||||
#Strips the psexe
|
|
||||||
$(TARGET).psexe: $(TARGET).elf
|
|
||||||
$(PREFIX)-objcopy $(addprefix -R , $(OVERLAYSECTION)) -O binary $< $@
|
|
||||||
|
|
||||||
#Rules section for default compilation and linking
|
#Rules section for default compilation and linking
|
||||||
rebuild:
|
rebuild:
|
||||||
$(MAKE) clean
|
$(MAKE) clean
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#Linking rule
|
||||||
|
$(TARGET).elf: $(OBJS)
|
||||||
|
$(LD) -o $(TARGET).elf $(LDFLAGS_all) $(LDFLAGS) $(OBJS) $(LIBS_all) $(LIBS)
|
||||||
|
|
||||||
|
#Strips the psexe
|
||||||
|
$(TARGET).psexe: $(TARGET).elf
|
||||||
|
$(PREFIX)-objcopy $(addprefix -R , $(OVERLAYSECTION)) -O binary $< $@
|
Loading…
Reference in New Issue