diff --git a/dka-rules/base_rules b/dka-rules/base_rules index 0a38afc..ffa6bf4 100644 --- a/dka-rules/base_rules +++ b/dka-rules/base_rules @@ -1,3 +1,8 @@ +#--------------------------------------------------------------------------------- +# path to tools - this can be deleted if you set the path in windows +#--------------------------------------------------------------------------------- +export PATH := $(DEVKITARM)/bin:$(PATH) + #--------------------------------------------------------------------------------- # the prefix on the compiler executables #--------------------------------------------------------------------------------- diff --git a/dka-rules/ds_rules b/dka-rules/ds_rules index 96e8f00..f6ea414 100644 --- a/dka-rules/ds_rules +++ b/dka-rules/ds_rules @@ -2,3 +2,22 @@ LIBNDS := $(DEVKITPRO)/libnds +#--------------------------------------------------------------------------------- +%.ds.gba: %.nds + @dsbuild $< + @echo built ... $(notdir $@) + +#--------------------------------------------------------------------------------- +%.nds: %.bin + @ndstool -c $@ -9 $< + @echo built ... $(notdir $@) + +#--------------------------------------------------------------------------------- +%.bin: %.elf + @$(OBJCOPY) -O binary $< $@ + @echo built ... $(notdir $@) + +#--------------------------------------------------------------------------------- +%.elf: + @echo linking binary + @$(LD) $(LDFLAGS) $(OFILES) $(LIBPATHS) $(LIBS) -o $@