10 lines
370 B
Makefile
10 lines
370 B
Makefile
#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 $< $@
|
|
|
|
#Rules section for default compilation and linking
|
|
all: $(TARGET).psexe $(foreach ovl, $(OVERLAYSECTION), $(OUTPUT_DIR)Overlay$(ovl)) |