mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-03-25 03:24:11 -05:00
33 lines
971 B
Plaintext
33 lines
971 B
Plaintext
ifeq ($(strip $(DEVKITPRO)),)
|
|
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro)
|
|
endif
|
|
|
|
include $(DEVKITARM)/base_rules
|
|
|
|
LIBNDS := $(DEVKITPRO)/libnds
|
|
|
|
#---------------------------------------------------------------------------------
|
|
%.ds.gba: %.nds
|
|
@dsbuild $<
|
|
@echo built ... $(notdir $@)
|
|
|
|
#---------------------------------------------------------------------------------
|
|
%.nds: %.arm9
|
|
@ndstool -c $@ -9 $<
|
|
@echo built ... $(notdir $@)
|
|
|
|
#---------------------------------------------------------------------------------
|
|
%.arm9: %.elf
|
|
@$(OBJCOPY) -O binary $< $@
|
|
@echo built ... $(notdir $@)
|
|
|
|
#---------------------------------------------------------------------------------
|
|
%.arm7: %.elf
|
|
@$(OBJCOPY) -O binary $< $@
|
|
@echo built ... $(notdir $@)
|
|
|
|
#---------------------------------------------------------------------------------
|
|
%.elf:
|
|
@echo linking $(notdir $@)
|
|
@$(LD) $(LDFLAGS) $(OFILES) $(LIBPATHS) $(LIBS) -o $@
|