Implement PSEXE Target as separated makefile

This commit is contained in:
jaby 2022-08-23 20:13:39 +02:00
parent 220117cf1a
commit 3d61f44cf7
2 changed files with 7 additions and 7 deletions

View File

@ -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

7
lib/PSEXETarget.mk Normal file
View File

@ -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 $< $@