#89485 - spencer723 - Sun Jun 25, 2006 3:08 am
Hi, I'm sort of new to using tile maps and I was trying to compile and got errors saying the #includes didn't exist. I haven't exactly figured out how to include my .bin files into my project. I have myBG.bin, myBGpal.bin and myBGmap.bin and I was wondering how to include these into my project...does it have to do with the Makefile? This is my Makefile as of now:
I'll appreciate any help :)
Code: |
# Makefile for framebuffer_demo1.nds # chris.double@double.co.nz NDSLIB_INCLUDE=$(DEVKITPRO)/libnds/include NDSLIB_LIB=$(DEVKITPRO)/libnds/lib all: drds_BETA.nds.gba arm7_main.o: arm7_main.cpp arm-elf-g++ -g -Wall -O2 -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ffast-math -mthumb-interwork -I$(NDSLIB_INCLUDE) -DARM7 -c arm7_main.cpp -oarm7_main.o arm7.elf: arm7_main.o arm-elf-g++ -g -mthumb-interwork -mno-fpu -specs=ds_arm7.specs arm7_main.o -L$(NDSLIB_LIB) -lnds7 -oarm7.elf arm7.bin: arm7.elf arm-elf-objcopy -O binary arm7.elf arm7.bin arm9_main.o: arm9_main.cpp arm-elf-g++ -g -Wall -O2 -mcpu=arm9tdmi -mtune=arm9tdmi -fomit-frame-pointer -ffast-math -mthumb-interwork -I$(NDSLIB_INCLUDE) -DARM9 -c arm9_main.cpp -oarm9_main.o arm9.elf: arm9_main.o arm-elf-g++ -g -mthumb-interwork -mno-fpu -specs=ds_arm9.specs arm9_main.o -L$(NDSLIB_LIB) -lnds9 -o arm9.elf arm9.bin: arm9.elf arm-elf-objcopy -O binary arm9.elf arm9.bin drds_BETA.nds: arm7.bin arm9.bin ndstool -c drds_BETA.nds -9 arm9.bin -7 arm7.bin drds_BETA.nds.gba: drds_BETA.nds dsbuild drds_BETA.nds -o drds_BETA.nds.gba clean: rm -f *.bin rm -f *.elf rm -f *.o rm -f *~ |
I'll appreciate any help :)