mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-07-16 02:03:02 -07:00
25 lines
796 B
Text
25 lines
796 B
Text
ifeq ($(strip $(DEVKITPRO)),)
|
|
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro)
|
|
endif
|
|
|
|
include $(DEVKITARM)/base_rules
|
|
|
|
PORTLIBS := $(PORTLIBS_PATH)/gba $(PORTLIBS_PATH)/armv4
|
|
|
|
LIBGBA := $(DEVKITPRO)/libgba
|
|
|
|
#---------------------------------------------------------------------------------
|
|
%.gba: %.elf
|
|
@$(OBJCOPY) -O binary $< $@
|
|
@echo built ... $(notdir $@)
|
|
@gbafix $@
|
|
|
|
#---------------------------------------------------------------------------------
|
|
%_mb.elf:
|
|
@echo linking multiboot
|
|
@$(LD) -specs=gba_mb.specs $(LDFLAGS) $(OFILES) $(LIBPATHS) $(LIBS) -o $@
|
|
|
|
#---------------------------------------------------------------------------------
|
|
%.elf:
|
|
@echo linking cartridge
|
|
@$(LD) $(LDFLAGS) -specs=gba.specs $(OFILES) $(LIBPATHS) $(LIBS) -o $@
|