Initial commit
71
3D/.svn/all-wcprops
Executable file
@ -0,0 +1,71 @@
|
|||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 58
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate
|
||||||
|
END
|
||||||
|
@project@.ico
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 72
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/@project@.ico
|
||||||
|
END
|
||||||
|
project.vho
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 70
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/project.vho
|
||||||
|
END
|
||||||
|
@project@.txt
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 72
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/@project@.txt
|
||||||
|
END
|
||||||
|
build.bat
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 68
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/build.bat
|
||||||
|
END
|
||||||
|
NdsLauncher.exe
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 74
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/NdsLauncher.exe
|
||||||
|
END
|
||||||
|
clean.bat
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 68
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/clean.bat
|
||||||
|
END
|
||||||
|
@project@.vhw
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 72
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/@project@.vhw
|
||||||
|
END
|
||||||
|
logo.ico
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 67
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/logo.ico
|
||||||
|
END
|
||||||
|
logo_wifi.bmp
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 74
|
||||||
|
/svn/!svn/ver/123/trunk/vham/templates/project/PAlibTemplate/logo_wifi.bmp
|
||||||
|
END
|
||||||
|
Makefile
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 67
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/Makefile
|
||||||
|
END
|
||||||
|
logo.bmp
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 67
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/logo.bmp
|
||||||
|
END
|
156
3D/.svn/entries
Executable file
@ -0,0 +1,156 @@
|
|||||||
|
8
|
||||||
|
|
||||||
|
dir
|
||||||
|
116
|
||||||
|
https://palibds.googlecode.com/svn/trunk/vham/templates/project/PAlibTemplate
|
||||||
|
https://palibds.googlecode.com/svn
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
|
||||||
|
svn:special svn:externals svn:needs-lock
|
||||||
|
|
||||||
|
@project@.ico
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2003-05-09T15:53:26.000000Z
|
||||||
|
1d64ae57ec646dc8bbc6294a8bc48566
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
has-props
|
||||||
|
|
||||||
|
source
|
||||||
|
dir
|
||||||
|
|
||||||
|
project.vho
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-01-31T01:51:50.000000Z
|
||||||
|
62f8d3225fbfb3bbd8bebbf0589f716c
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
@project@.txt
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-01-31T01:52:02.000000Z
|
||||||
|
3aaf57a858c308d9952bfb1721859a13
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
build.bat
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2005-11-08T04:24:56.000000Z
|
||||||
|
4af15a2f33b24192e041b721e0e1a7e4
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
NdsLauncher.exe
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-02-02T07:40:04.000000Z
|
||||||
|
2cddbb9d3427a165fc4fd56b19d427e5
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
has-props
|
||||||
|
|
||||||
|
clean.bat
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2005-10-06T08:16:56.000000Z
|
||||||
|
b7f3f6ea67c49ab9187d752ef9052516
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
@project@.vhw
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-08-25T20:19:08.000000Z
|
||||||
|
aba3a9bc8c1e79a1cbfba3f2741c1c0a
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
logo.ico
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2005-11-28T00:37:52.000000Z
|
||||||
|
67bbc374a4d8c1b34b0aff0078409a8d
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
has-props
|
||||||
|
|
||||||
|
logo_wifi.bmp
|
||||||
|
file
|
||||||
|
123
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2007-02-06T17:05:30.609375Z
|
||||||
|
f1cc2221ddb8445b9d6d5c510f1a52a3
|
||||||
|
2007-02-06T17:05:14.209316Z
|
||||||
|
123
|
||||||
|
Molousk
|
||||||
|
has-props
|
||||||
|
|
||||||
|
logo.bmp
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2005-10-18T01:39:22.000000Z
|
||||||
|
94768f0e78d21ecfc7ad4ddcf44596b0
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
has-props
|
||||||
|
|
||||||
|
Makefile
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-08-25T20:11:56.000000Z
|
||||||
|
d280afc4cb3ea1c949ecc9655000a557
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
1
3D/.svn/format
Executable file
@ -0,0 +1 @@
|
|||||||
|
8
|
5
3D/.svn/prop-base/@project@.ico.svn-base
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
K 13
|
||||||
|
svn:mime-type
|
||||||
|
V 24
|
||||||
|
application/octet-stream
|
||||||
|
END
|
5
3D/.svn/prop-base/NdsLauncher.exe.svn-base
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
K 13
|
||||||
|
svn:mime-type
|
||||||
|
V 24
|
||||||
|
application/octet-stream
|
||||||
|
END
|
5
3D/.svn/prop-base/logo.bmp.svn-base
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
K 13
|
||||||
|
svn:mime-type
|
||||||
|
V 24
|
||||||
|
application/octet-stream
|
||||||
|
END
|
5
3D/.svn/prop-base/logo.ico.svn-base
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
K 13
|
||||||
|
svn:mime-type
|
||||||
|
V 24
|
||||||
|
application/octet-stream
|
||||||
|
END
|
5
3D/.svn/prop-base/logo_wifi.bmp.svn-base
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
K 13
|
||||||
|
svn:mime-type
|
||||||
|
V 24
|
||||||
|
application/octet-stream
|
||||||
|
END
|
BIN
3D/.svn/text-base/@project@.ico.svn-base
Executable file
After Width: | Height: | Size: 2.7 KiB |
1
3D/.svn/text-base/@project@.txt.svn-base
Executable file
@ -0,0 +1 @@
|
|||||||
|
A default PAlib Project template
|
6
3D/.svn/text-base/@project@.vhw.svn-base
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
[VisualHAMTreeContentV1]
|
||||||
|
HAM Workspace=
|
||||||
|
HAM Workspace\Source Files=
|
||||||
|
HAM Workspace\Source Files=source/main.c
|
||||||
|
HAM Workspace\Header Files=
|
||||||
|
HAM Workspace=makefile
|
291
3D/.svn/text-base/Makefile.svn-base
Executable file
@ -0,0 +1,291 @@
|
|||||||
|
PROGNAME = PAlib
|
||||||
|
OFILES +=
|
||||||
|
ADD_LIBS +=
|
||||||
|
|
||||||
|
PATH := $(DEVKITARM)/bin:$(PATH)
|
||||||
|
|
||||||
|
ARM7BIN := -7 $(PAPATH)/lib/arm7/arm7.bin
|
||||||
|
TEXT1 := PAlib Demo
|
||||||
|
TEXT2 := using PAlib
|
||||||
|
TEXT3 := www.palib.com
|
||||||
|
ICON := -b $(CURDIR)/../logo.bmp
|
||||||
|
LOGO := -o $(CURDIR)/../logo_wifi.bmp
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
.SUFFIXES:
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
ifeq ($(strip $(DEVKITARM)),)
|
||||||
|
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM)
|
||||||
|
endif
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# TARGET is the name of the output, if this ends with _mb generates a multiboot image
|
||||||
|
# BUILD is the directory where object files & intermediate files will be placed
|
||||||
|
# SOURCES is a list of directories containing source code
|
||||||
|
# INCLUDES is a list of directories containing extra header files
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
TARGET := $(shell basename $(CURDIR))
|
||||||
|
BUILD := build
|
||||||
|
SOURCES := gfx source data
|
||||||
|
INCLUDES := include build data
|
||||||
|
|
||||||
|
EXPORT_DIR := /c/ndsexamples/
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# ARM7BIN is the path to an arm7 binary other than the default
|
||||||
|
# usage: ARM7BIN := -7 binaryName.bin
|
||||||
|
#
|
||||||
|
# ICON is the path to an icon to be used int the header plus text
|
||||||
|
# usage: ICON := -t iconName.bmp "text line one; text line 2; text line 3"
|
||||||
|
#
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# options for code generation
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
ARCH := -mthumb-interwork
|
||||||
|
|
||||||
|
# note: arm9tdmi isn't the correct CPU arch, but anything newer and LD
|
||||||
|
# *insists* it has a FPU or VFP, and it won't take no for an answer!
|
||||||
|
CFLAGS := -g -Wall -O2\
|
||||||
|
-mcpu=arm9tdmi -mtune=arm9tdmi -fomit-frame-pointer\
|
||||||
|
-ffast-math \
|
||||||
|
$(ARCH)
|
||||||
|
|
||||||
|
CFLAGS += $(INCLUDE) -DARM9 -I$(DEVKITPRO)/PAlib/include/nds
|
||||||
|
|
||||||
|
ASFLAGS := -g $(ARCH)
|
||||||
|
LDFLAGS := -g $(ARCH) -mno-fpu -L$(DEVKITPRO)/PAlib/lib
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# path to tools - this can be deleted if you set the path in windows
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# export PATH := /d/dev/ds/devkitARM_r11/bin:/bin
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# PATH to ndslib - just make a system variable called NDSLIBPATH and be done with it
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# NDSLIBPATH := /d/dev/ds/ndslib/
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# the prefix on the compiler executables
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
PREFIX := arm-eabi-
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# any extra libraries we wish to link with the project
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
LIBS := -lnds9
|
||||||
|
LIBSPA := -lpa9
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# list of directories containing libraries, this must be the top level containing
|
||||||
|
# include and lib
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
LIBDIRS := $(DEVKITPRO)/libnds
|
||||||
|
LIBDIRPA := $(PAPATH)
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# no real need to edit anything past this point unless you need to add additional
|
||||||
|
# rules for different file extensions
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
ifneq ($(BUILD),$(notdir $(CURDIR)))
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
export OUTPUT := $(CURDIR)/$(TARGET)
|
||||||
|
|
||||||
|
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir))
|
||||||
|
|
||||||
|
export CC := $(PREFIX)gcc
|
||||||
|
export CXX := $(PREFIX)g++
|
||||||
|
export AR := $(PREFIX)ar
|
||||||
|
export OBJCOPY := $(PREFIX)objcopy
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# use CXX for linking C++ projects, CC for standard C
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
export LD := $(CXX)
|
||||||
|
#export LD := $(CC)
|
||||||
|
|
||||||
|
CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
|
||||||
|
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
|
||||||
|
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
|
||||||
|
PCXFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.pcx)))
|
||||||
|
BINFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.bin)))
|
||||||
|
PALFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.pal)))
|
||||||
|
RAWFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.raw)))
|
||||||
|
MAPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.map)))
|
||||||
|
JPEGFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.jpg)))
|
||||||
|
MODFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.mod)))
|
||||||
|
GIFFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.gif)))
|
||||||
|
BMPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.bmp)))
|
||||||
|
|
||||||
|
export OFILES := $(MAPFILES:.map=.o) $(RAWFILES:.raw=.o) $(PALFILES:.pal=.o) $(BINFILES:.bin=.o) $(PCXFILES:.pcx=.o) $(JPEGFILES:.jpg=.o) $(MODFILES:.mod=.o) $(GIFFILES:.gif=.o) $(BMPFILES:.bmp=.o)\
|
||||||
|
$(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o)
|
||||||
|
|
||||||
|
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
||||||
|
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
|
||||||
|
$(foreach dir,$(LIBDIRS),-I$(dir)/include/nds) \
|
||||||
|
-I$(PAPATH)/include/nds\
|
||||||
|
-I$(CURDIR)/$(BUILD)
|
||||||
|
|
||||||
|
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
|
||||||
|
export LIBPATHPA := $(foreach dir,$(LIBDIRPA),-L$(dir)/lib)
|
||||||
|
|
||||||
|
.PHONY: $(BUILD) clean export
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
$(BUILD):
|
||||||
|
@[ -d $@ ] || mkdir -p $@
|
||||||
|
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
clean:
|
||||||
|
@echo clean ...$(TARGET)
|
||||||
|
@rm -fr $(BUILD) *.elf *.*ds*
|
||||||
|
|
||||||
|
export:
|
||||||
|
@echo exporting ...$(TARGET)
|
||||||
|
@cp *.nds $(EXPORT_DIR)/$(TARGET).nds
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
else
|
||||||
|
|
||||||
|
DEPENDS := $(OFILES:.o=.d)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# main targets
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
$(OUTPUT).ds.gba : $(OUTPUT).nds
|
||||||
|
|
||||||
|
$(OUTPUT).nds : $(OUTPUT).bin
|
||||||
|
|
||||||
|
$(OUTPUT).bin : $(OUTPUT).elf
|
||||||
|
|
||||||
|
$(OUTPUT).elf : $(OFILES)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.ds.gba: %.nds
|
||||||
|
@echo built ... $(notdir $@)
|
||||||
|
@dsbuild $<
|
||||||
|
@cp $(CURDIR)/../$(notdir $@) ../$(notdir $(OUTPUT)).sc.nds
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.nds: %.bin
|
||||||
|
|
||||||
|
@ndstool -c $@ -9 $(TARGET).bin $(ARM7BIN) $(LOGO) $(ICON) "$(TEXT1);$(TEXT2);$(TEXT3)"
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.bin: %.elf
|
||||||
|
|
||||||
|
@$(OBJCOPY) -O binary $(TARGET).elf $(TARGET).bin
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.elf:
|
||||||
|
@echo $(LD) $(LDFLAGS) -specs=ds_arm9.specs $(OFILES) $(LIBPATHPA) $(LIBSPA) $(LIBPATHS) $(LIBS) -o $(TARGET).elf
|
||||||
|
@$(LD) $(LDFLAGS) -specs=ds_arm9.specs $(OFILES) $(LIBPATHPA) $(LIBSPA) $(LIBPATHS) $(LIBS) -o $(TARGET).elf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# Compile Targets for C/C++
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.cpp
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(CXX) -MM $(CFLAGS) -o $*.d $<
|
||||||
|
@$(CXX) $(CFLAGS) -c $< -o$@
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.c
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(CC) -MM $(CFLAGS) -o $*.d $<
|
||||||
|
@$(CC) $(CFLAGS) -c $< -o$@
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.s
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(CC) -MM $(CFLAGS) -o $*.d $<
|
||||||
|
@$(CC) $(ASFLAGS) -c $< -o$@
|
||||||
|
|
||||||
|
define bin2o
|
||||||
|
cp $(<) $(*).tmp
|
||||||
|
$(OBJCOPY) -I binary -O elf32-littlearm -B arm \
|
||||||
|
--rename-section .data=.rodata \
|
||||||
|
--redefine-sym _binary_$*_tmp_start=$*\
|
||||||
|
--redefine-sym _binary_$*_tmp_end=$*_end\
|
||||||
|
--redefine-sym _binary_$*_tmp_size=$*_size\
|
||||||
|
$(*).tmp $(@)
|
||||||
|
echo "extern const u8" $(*)"[];" > $(*).h
|
||||||
|
echo "extern const u32" $(*)_size[]";" >> $(*).h
|
||||||
|
rm $(*).tmp
|
||||||
|
endef
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.pcx
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.bin
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.raw
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.pal
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.map
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.mdl
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.jpg
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.mod
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.gif
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.bmp
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
|
||||||
|
-include $(DEPENDS)
|
||||||
|
#---------------------------------------------------------------------------------------
|
||||||
|
endif
|
||||||
|
#---------------------------------------------------------------------------------------
|
BIN
3D/.svn/text-base/NdsLauncher.exe.svn-base
Executable file
3
3D/.svn/text-base/build.bat.svn-base
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
make clean
|
||||||
|
make
|
||||||
|
pause
|
1
3D/.svn/text-base/clean.bat.svn-base
Executable file
@ -0,0 +1 @@
|
|||||||
|
make clean
|
BIN
3D/.svn/text-base/logo.bmp.svn-base
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
3D/.svn/text-base/logo.ico.svn-base
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
3D/.svn/text-base/logo_wifi.bmp.svn-base
Executable file
After Width: | Height: | Size: 950 B |
2
3D/.svn/text-base/project.vho.svn-base
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
[VisualHamOFileListV1]
|
||||||
|
source/main.c
|
6
3D/3D.vhw.bak
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
[VisualHAMTreeContentV1]
|
||||||
|
HAM Workspace=
|
||||||
|
HAM Workspace\Source Files=
|
||||||
|
HAM Workspace\Source Files=source/main.c
|
||||||
|
HAM Workspace\Header Files=
|
||||||
|
HAM Workspace=makefile
|
299
3D/Makefile
Executable file
@ -0,0 +1,299 @@
|
|||||||
|
PROGNAME = PAlib
|
||||||
|
OFILES +=
|
||||||
|
ADD_LIBS +=
|
||||||
|
|
||||||
|
PATH := $(DEVKITARM)/bin:$(PATH)
|
||||||
|
|
||||||
|
ARM7BIN := -7 $(PAPATH)/lib/arm7/arm7.bin
|
||||||
|
TEXT1 := PAlib Project
|
||||||
|
TEXT2 := using PAlib
|
||||||
|
TEXT3 := www.palib.info
|
||||||
|
ICON := -b $(CURDIR)/../logo.bmp
|
||||||
|
LOGO := -o $(CURDIR)/../logo_wifi.bmp
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
.SUFFIXES:
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
ifeq ($(strip $(DEVKITARM)),)
|
||||||
|
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
include $(DEVKITARM)/ds_rules
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# TARGET is the name of the output, if this ends with _mb generates a multiboot image
|
||||||
|
# BUILD is the directory where object files & intermediate files will be placed
|
||||||
|
# SOURCES is a list of directories containing source code
|
||||||
|
# INCLUDES is a list of directories containing extra header files
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
TARGET := $(shell basename $(CURDIR))
|
||||||
|
BUILD := build
|
||||||
|
SOURCES := gfx source data
|
||||||
|
INCLUDES := include build data
|
||||||
|
|
||||||
|
EXPORT_DIR := /c/ndsexamples/
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# ARM7BIN is the path to an arm7 binary other than the default
|
||||||
|
# usage: ARM7BIN := -7 binaryName.bin
|
||||||
|
#
|
||||||
|
# ICON is the path to an icon to be used int the header plus text
|
||||||
|
# usage: ICON := -t iconName.bmp "text line one; text line 2; text line 3"
|
||||||
|
#
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# options for code generation
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
ARCH := -mthumb-interwork
|
||||||
|
|
||||||
|
# note: arm9tdmi isn't the correct CPU arch, but anything newer and LD
|
||||||
|
# *insists* it has a FPU or VFP, and it won't take no for an answer!
|
||||||
|
CFLAGS := -g -Wformat=2 -Winline -Wall -O2\
|
||||||
|
|
||||||
|
-mcpu=arm946e-s -mtune=arm946e-s -fomit-frame-pointer\
|
||||||
|
-ffast-math \
|
||||||
|
$(ARCH)
|
||||||
|
|
||||||
|
CFLAGS += $(INCLUDE) -DARM9 -I$(DEVKITPRO)/PAlib/include/nds
|
||||||
|
|
||||||
|
ASFLAGS := -g $(ARCH)
|
||||||
|
LDFLAGS := -g $(ARCH) -mno-fpu -L$(DEVKITPRO)/PAlib/lib
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# path to tools - this can be deleted if you set the path in windows
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# export PATH := /d/dev/ds/devkitARM_r11/bin:/bin
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# PATH to ndslib - just make a system variable called NDSLIBPATH and be done with it
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# NDSLIBPATH := /d/dev/ds/ndslib/
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# the prefix on the compiler executables
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
PREFIX := arm-eabi-
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# any extra libraries we wish to link with the project
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
LIBS := -lfat -lnds9 -ldswifi9
|
||||||
|
LIBSPA := -lpa9
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# list of directories containing libraries, this must be the top level containing
|
||||||
|
# include and lib
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
LIBDIRS := $(DEVKITPRO)/libnds
|
||||||
|
LIBDIRPA := $(PAPATH)
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# no real need to edit anything past this point unless you need to add additional
|
||||||
|
# rules for different file extensions
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
ifneq ($(BUILD),$(notdir $(CURDIR)))
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
export OUTPUT := $(CURDIR)/$(TARGET)
|
||||||
|
|
||||||
|
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir))
|
||||||
|
|
||||||
|
export CC := $(PREFIX)gcc
|
||||||
|
export CXX := $(PREFIX)g++
|
||||||
|
export AR := $(PREFIX)ar
|
||||||
|
export OBJCOPY := $(PREFIX)objcopy
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# use CXX for linking C++ projects, CC for standard C
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
export LD := $(CXX)
|
||||||
|
#export LD := $(CC)
|
||||||
|
|
||||||
|
CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
|
||||||
|
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
|
||||||
|
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
|
||||||
|
PCXFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.pcx)))
|
||||||
|
BINFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.bin)))
|
||||||
|
PALFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.pal)))
|
||||||
|
RAWFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.raw)))
|
||||||
|
MAPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.map)))
|
||||||
|
JPEGFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.jpg)))
|
||||||
|
MODFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.mod)))
|
||||||
|
GIFFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.gif)))
|
||||||
|
BMPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.bmp)))
|
||||||
|
|
||||||
|
export OFILES := $(MAPFILES:.map=.o) $(RAWFILES:.raw=.o) $(PALFILES:.pal=.o) $(BINFILES:.bin=.o) $(PCXFILES:.pcx=.o) $(JPEGFILES:.jpg=.o) $(MODFILES:.mod=.o) $(GIFFILES:.gif=.o) $(BMPFILES:.bmp=.o)\
|
||||||
|
$(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o)
|
||||||
|
|
||||||
|
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
||||||
|
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
|
||||||
|
$(foreach dir,$(LIBDIRS),-I$(dir)/include/nds) \
|
||||||
|
-I$(PAPATH)/include/nds\
|
||||||
|
-I$(CURDIR)/$(BUILD)
|
||||||
|
|
||||||
|
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
|
||||||
|
export LIBPATHPA := $(foreach dir,$(LIBDIRPA),-L$(dir)/lib)
|
||||||
|
|
||||||
|
.PHONY: $(BUILD) clean export
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
$(BUILD):
|
||||||
|
@[ -d $@ ] || mkdir -p $@
|
||||||
|
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
clean:
|
||||||
|
@echo clean ...$(TARGET)
|
||||||
|
@rm -fr $(BUILD) *.elf *.*ds*
|
||||||
|
|
||||||
|
export:
|
||||||
|
@echo exporting ...$(TARGET)
|
||||||
|
@cp *.nds $(EXPORT_DIR)/$(TARGET).nds
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
else
|
||||||
|
|
||||||
|
DEPENDS := $(OFILES:.o=.d)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# main targets
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
$(OUTPUT).ds.gba : $(OUTPUT).nds
|
||||||
|
|
||||||
|
$(OUTPUT).nds : $(OUTPUT).bin
|
||||||
|
|
||||||
|
$(OUTPUT).bin : $(OUTPUT).elf
|
||||||
|
|
||||||
|
$(OUTPUT).elf : $(OFILES)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.ds.gba: %.nds
|
||||||
|
@echo built ... $(notdir $@)
|
||||||
|
@dsbuild $<
|
||||||
|
@cp $(CURDIR)/../$(notdir $@) ../$(notdir $(OUTPUT)).sc.nds
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.nds: %.bin
|
||||||
|
|
||||||
|
@ndstool -c $@ -9 $(TARGET).bin $(ARM7BIN) $(LOGO) $(ICON) "$(TEXT1);$(TEXT2);$(TEXT3)"
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.bin: %.elf
|
||||||
|
|
||||||
|
@$(OBJCOPY) -O binary $(TARGET).elf $(TARGET).bin
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.elf:
|
||||||
|
@echo $(LD) $(LDFLAGS) -specs=ds_arm9.specs $(OFILES) $(LIBPATHPA) $(LIBSPA) $(LIBPATHS) $(LIBS) -o $(TARGET).elf
|
||||||
|
@$(LD) $(LDFLAGS) -specs=ds_arm9.specs $(OFILES) $(LIBPATHPA) $(LIBSPA) $(LIBPATHS) $(LIBS) -o $(TARGET).elf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# Compile Targets for C/C++
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.cpp
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(CXX) -MM $(CFLAGS) -o $*.d $<
|
||||||
|
@$(CXX) $(CFLAGS) -c $< -o$@
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.c
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(CC) -MM $(CFLAGS) -o $*.d $<
|
||||||
|
@$(CC) $(CFLAGS) -c $< -o$@
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.s
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(CC) -MM $(CFLAGS) -o $*.d $<
|
||||||
|
@$(CC) $(ASFLAGS) -c $< -o$@
|
||||||
|
|
||||||
|
|
||||||
|
define bin2o
|
||||||
|
cp $(<) $(*).tmp
|
||||||
|
echo -n $$(( `cat $(*).tmp | wc -c` & 3 )) | sed -e 's/0//g' | sed -e 's/1/000/g' | sed -e 's/2/00/g' | sed -e 's/3/0/g' >> $(*).tmp
|
||||||
|
$(OBJCOPY) -I binary -O elf32-littlearm -B arm \
|
||||||
|
--rename-section .data=.rodata \
|
||||||
|
--redefine-sym _binary_$*_tmp_start=$*\
|
||||||
|
--redefine-sym _binary_$*_tmp_end=$*_end\
|
||||||
|
--redefine-sym _binary_$*_tmp_size=$*_size\
|
||||||
|
$(*).tmp $(@)
|
||||||
|
echo "extern const u8" $(*)"[];" > $(*).h
|
||||||
|
echo "extern const u32" $(*)_size[]";" >> $(*).h
|
||||||
|
rm $(*).tmp
|
||||||
|
endef
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.pcx
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.bin
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.raw
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.pal
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.map
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.mdl
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.jpg
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.mod
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.gif
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.bmp
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
|
||||||
|
-include $(DEPENDS)
|
||||||
|
#---------------------------------------------------------------------------------------
|
||||||
|
endif
|
||||||
|
#---------------------------------------------------------------------------------------
|
BIN
3D/NdsLauncher.exe
Executable file
3
3D/build.bat
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
make clean
|
||||||
|
make
|
||||||
|
pause
|
96
3D/build/main.d
Executable file
@ -0,0 +1,96 @@
|
|||||||
|
main.o: c:/devkitPro/proyects/3D/source/main.c \
|
||||||
|
c:/devkitPro/PAlib/include/nds/PA9.h c:/devkitPro/libnds/include/nds.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/jtypes.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/bios.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/card.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/jtypes.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/dma.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/interrupts.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/ipc.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/memory.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/system.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/timers.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/boxtest.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/video.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/videoGL.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/math.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/trig_lut.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/cache.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/console.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/exceptions.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/image.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/pcx.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/input.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/rumble.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/sound.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_IO.h \
|
||||||
|
c:/devkitPro/libnds/include/gbfs.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/gba-jpeg-decode.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/gba-jpeg.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/Sound9.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/SoundCommon.h \
|
||||||
|
c:/devkitPro/libnds/include/fat.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/PA_IPC.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_General.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/PA_IPC.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Text.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_BgTiles.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_General.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/text0.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/text1.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/text2.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/text3.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/text4.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_BgTiles.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_BgLargeMap.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Video.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Sprite.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Math.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Interrupt.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_SpriteDual.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Sprite.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Sound.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/../Sound9.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_GBFS.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Text.h \
|
||||||
|
c:/devkitPro/libnds/include/gbfs.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_FS.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Micro.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Draw.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Palette.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Splash.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Gif.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Draw.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/gif/gif_lib.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Interrupt.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Keys.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Motion.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/ndsmotion.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_BgRot.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Timer.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_API.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Math.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Palette.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_PaletteDual.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Save.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_FS.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_GBFS.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_SpecialFx.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_TileDual.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Keyboard.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Window.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Mode7.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_BgRot.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_3DSprites.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_IA.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Reco.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_16c.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Wifi.h \
|
||||||
|
c:/devkitPro/libnds/include/dswifi9.h \
|
||||||
|
c:/devkitPro/libnds/include/dswifi_version.h \
|
||||||
|
c:/devkitPro/libnds/include/sys/socket.h \
|
||||||
|
c:/devkitPro/libnds/include/netinet/in.h \
|
||||||
|
c:/devkitPro/libnds/include/netdb.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Splash.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_Gif.h \
|
||||||
|
c:/devkitPro/PAlib/include/nds/arm9/PA_BgTrans.h
|
BIN
3D/build/main.o
Executable file
1
3D/clean.bat
Executable file
@ -0,0 +1 @@
|
|||||||
|
make clean
|
BIN
3D/logo.bmp
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
3D/logo.ico
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
3D/logo_wifi.bmp
Executable file
After Width: | Height: | Size: 950 B |
2
3D/project.vho
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
[VisualHamOFileListV1]
|
||||||
|
source/main.c
|
11
3D/source/.svn/all-wcprops
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 65
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/source
|
||||||
|
END
|
||||||
|
main.c
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 72
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/source/main.c
|
||||||
|
END
|
28
3D/source/.svn/entries
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
8
|
||||||
|
|
||||||
|
dir
|
||||||
|
116
|
||||||
|
https://palibds.googlecode.com/svn/trunk/vham/templates/project/PAlibTemplate/source
|
||||||
|
https://palibds.googlecode.com/svn
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
|
||||||
|
svn:special svn:externals svn:needs-lock
|
||||||
|
|
||||||
|
main.c
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-01-31T01:54:02.000000Z
|
||||||
|
b1140899dc28b1a23ba1bc3c72431e7f
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
1
3D/source/.svn/format
Executable file
@ -0,0 +1 @@
|
|||||||
|
8
|
25
3D/source/.svn/text-base/main.c.svn-base
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
// Includes
|
||||||
|
#include <PA9.h> // Include for PA_Lib
|
||||||
|
|
||||||
|
// Function: main()
|
||||||
|
int main(int argc, char ** argv)
|
||||||
|
{
|
||||||
|
PA_Init(); // Initializes PA_Lib
|
||||||
|
PA_InitVBL(); // Initializes a standard VBL
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Infinite loop to keep the program running
|
||||||
|
while (1)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
PA_WaitForVBL();
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
} // End of main()
|
16
3D/source/main.c
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#include <PA9.h>
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
PA_Init3D();//init
|
||||||
|
while(1)
|
||||||
|
{
|
||||||
|
PA_Init3DDrawing(0.0,0.0,1.0,0.0,0.0,0.0);
|
||||||
|
glPushMatrix();
|
||||||
|
PA_3DBox(0.0,0.0,0.0,0.5,0.1,1.0,0.0,0.0,0.0,255,0,0);//box
|
||||||
|
glPopMatrix(1);
|
||||||
|
glFlush();//show
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}//
|
||||||
|
|
71
CocoUniverse/.svn/all-wcprops
Executable file
@ -0,0 +1,71 @@
|
|||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 58
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate
|
||||||
|
END
|
||||||
|
@project@.ico
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 72
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/@project@.ico
|
||||||
|
END
|
||||||
|
project.vho
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 70
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/project.vho
|
||||||
|
END
|
||||||
|
@project@.txt
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 72
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/@project@.txt
|
||||||
|
END
|
||||||
|
build.bat
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 68
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/build.bat
|
||||||
|
END
|
||||||
|
NdsLauncher.exe
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 74
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/NdsLauncher.exe
|
||||||
|
END
|
||||||
|
clean.bat
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 68
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/clean.bat
|
||||||
|
END
|
||||||
|
@project@.vhw
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 72
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/@project@.vhw
|
||||||
|
END
|
||||||
|
logo.ico
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 67
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/logo.ico
|
||||||
|
END
|
||||||
|
logo_wifi.bmp
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 74
|
||||||
|
/svn/!svn/ver/123/trunk/vham/templates/project/PAlibTemplate/logo_wifi.bmp
|
||||||
|
END
|
||||||
|
Makefile
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 67
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/Makefile
|
||||||
|
END
|
||||||
|
logo.bmp
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 67
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/logo.bmp
|
||||||
|
END
|
156
CocoUniverse/.svn/entries
Executable file
@ -0,0 +1,156 @@
|
|||||||
|
8
|
||||||
|
|
||||||
|
dir
|
||||||
|
116
|
||||||
|
https://palibds.googlecode.com/svn/trunk/vham/templates/project/PAlibTemplate
|
||||||
|
https://palibds.googlecode.com/svn
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
|
||||||
|
svn:special svn:externals svn:needs-lock
|
||||||
|
|
||||||
|
@project@.ico
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2003-05-09T15:53:26.000000Z
|
||||||
|
1d64ae57ec646dc8bbc6294a8bc48566
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
has-props
|
||||||
|
|
||||||
|
source
|
||||||
|
dir
|
||||||
|
|
||||||
|
project.vho
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-01-31T01:51:50.000000Z
|
||||||
|
62f8d3225fbfb3bbd8bebbf0589f716c
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
@project@.txt
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-01-31T01:52:02.000000Z
|
||||||
|
3aaf57a858c308d9952bfb1721859a13
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
build.bat
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2005-11-08T04:24:56.000000Z
|
||||||
|
4af15a2f33b24192e041b721e0e1a7e4
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
NdsLauncher.exe
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-02-02T07:40:04.000000Z
|
||||||
|
2cddbb9d3427a165fc4fd56b19d427e5
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
has-props
|
||||||
|
|
||||||
|
clean.bat
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2005-10-06T08:16:56.000000Z
|
||||||
|
b7f3f6ea67c49ab9187d752ef9052516
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
@project@.vhw
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-08-25T20:19:08.000000Z
|
||||||
|
aba3a9bc8c1e79a1cbfba3f2741c1c0a
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
logo.ico
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2005-11-28T00:37:52.000000Z
|
||||||
|
67bbc374a4d8c1b34b0aff0078409a8d
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
has-props
|
||||||
|
|
||||||
|
logo_wifi.bmp
|
||||||
|
file
|
||||||
|
123
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2007-02-06T17:05:30.609375Z
|
||||||
|
f1cc2221ddb8445b9d6d5c510f1a52a3
|
||||||
|
2007-02-06T17:05:14.209316Z
|
||||||
|
123
|
||||||
|
Molousk
|
||||||
|
has-props
|
||||||
|
|
||||||
|
logo.bmp
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2005-10-18T01:39:22.000000Z
|
||||||
|
94768f0e78d21ecfc7ad4ddcf44596b0
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
has-props
|
||||||
|
|
||||||
|
Makefile
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-08-25T20:11:56.000000Z
|
||||||
|
d280afc4cb3ea1c949ecc9655000a557
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
1
CocoUniverse/.svn/format
Executable file
@ -0,0 +1 @@
|
|||||||
|
8
|
5
CocoUniverse/.svn/prop-base/@project@.ico.svn-base
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
K 13
|
||||||
|
svn:mime-type
|
||||||
|
V 24
|
||||||
|
application/octet-stream
|
||||||
|
END
|
5
CocoUniverse/.svn/prop-base/NdsLauncher.exe.svn-base
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
K 13
|
||||||
|
svn:mime-type
|
||||||
|
V 24
|
||||||
|
application/octet-stream
|
||||||
|
END
|
5
CocoUniverse/.svn/prop-base/logo.bmp.svn-base
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
K 13
|
||||||
|
svn:mime-type
|
||||||
|
V 24
|
||||||
|
application/octet-stream
|
||||||
|
END
|
5
CocoUniverse/.svn/prop-base/logo.ico.svn-base
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
K 13
|
||||||
|
svn:mime-type
|
||||||
|
V 24
|
||||||
|
application/octet-stream
|
||||||
|
END
|
5
CocoUniverse/.svn/prop-base/logo_wifi.bmp.svn-base
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
K 13
|
||||||
|
svn:mime-type
|
||||||
|
V 24
|
||||||
|
application/octet-stream
|
||||||
|
END
|
BIN
CocoUniverse/.svn/text-base/@project@.ico.svn-base
Executable file
After Width: | Height: | Size: 2.7 KiB |
1
CocoUniverse/.svn/text-base/@project@.txt.svn-base
Executable file
@ -0,0 +1 @@
|
|||||||
|
A default PAlib Project template
|
6
CocoUniverse/.svn/text-base/@project@.vhw.svn-base
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
[VisualHAMTreeContentV1]
|
||||||
|
HAM Workspace=
|
||||||
|
HAM Workspace\Source Files=
|
||||||
|
HAM Workspace\Source Files=source/main.c
|
||||||
|
HAM Workspace\Header Files=
|
||||||
|
HAM Workspace=makefile
|
291
CocoUniverse/.svn/text-base/Makefile.svn-base
Executable file
@ -0,0 +1,291 @@
|
|||||||
|
PROGNAME = PAlib
|
||||||
|
OFILES +=
|
||||||
|
ADD_LIBS +=
|
||||||
|
|
||||||
|
PATH := $(DEVKITARM)/bin:$(PATH)
|
||||||
|
|
||||||
|
ARM7BIN := -7 $(PAPATH)/lib/arm7/arm7.bin
|
||||||
|
TEXT1 := PAlib Demo
|
||||||
|
TEXT2 := using PAlib
|
||||||
|
TEXT3 := www.palib.com
|
||||||
|
ICON := -b $(CURDIR)/../logo.bmp
|
||||||
|
LOGO := -o $(CURDIR)/../logo_wifi.bmp
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
.SUFFIXES:
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
ifeq ($(strip $(DEVKITARM)),)
|
||||||
|
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM)
|
||||||
|
endif
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# TARGET is the name of the output, if this ends with _mb generates a multiboot image
|
||||||
|
# BUILD is the directory where object files & intermediate files will be placed
|
||||||
|
# SOURCES is a list of directories containing source code
|
||||||
|
# INCLUDES is a list of directories containing extra header files
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
TARGET := $(shell basename $(CURDIR))
|
||||||
|
BUILD := build
|
||||||
|
SOURCES := gfx source data
|
||||||
|
INCLUDES := include build data
|
||||||
|
|
||||||
|
EXPORT_DIR := /c/ndsexamples/
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# ARM7BIN is the path to an arm7 binary other than the default
|
||||||
|
# usage: ARM7BIN := -7 binaryName.bin
|
||||||
|
#
|
||||||
|
# ICON is the path to an icon to be used int the header plus text
|
||||||
|
# usage: ICON := -t iconName.bmp "text line one; text line 2; text line 3"
|
||||||
|
#
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# options for code generation
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
ARCH := -mthumb-interwork
|
||||||
|
|
||||||
|
# note: arm9tdmi isn't the correct CPU arch, but anything newer and LD
|
||||||
|
# *insists* it has a FPU or VFP, and it won't take no for an answer!
|
||||||
|
CFLAGS := -g -Wall -O2\
|
||||||
|
-mcpu=arm9tdmi -mtune=arm9tdmi -fomit-frame-pointer\
|
||||||
|
-ffast-math \
|
||||||
|
$(ARCH)
|
||||||
|
|
||||||
|
CFLAGS += $(INCLUDE) -DARM9 -I$(DEVKITPRO)/PAlib/include/nds
|
||||||
|
|
||||||
|
ASFLAGS := -g $(ARCH)
|
||||||
|
LDFLAGS := -g $(ARCH) -mno-fpu -L$(DEVKITPRO)/PAlib/lib
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# path to tools - this can be deleted if you set the path in windows
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# export PATH := /d/dev/ds/devkitARM_r11/bin:/bin
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# PATH to ndslib - just make a system variable called NDSLIBPATH and be done with it
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# NDSLIBPATH := /d/dev/ds/ndslib/
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# the prefix on the compiler executables
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
PREFIX := arm-eabi-
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# any extra libraries we wish to link with the project
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
LIBS := -lnds9
|
||||||
|
LIBSPA := -lpa9
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# list of directories containing libraries, this must be the top level containing
|
||||||
|
# include and lib
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
LIBDIRS := $(DEVKITPRO)/libnds
|
||||||
|
LIBDIRPA := $(PAPATH)
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# no real need to edit anything past this point unless you need to add additional
|
||||||
|
# rules for different file extensions
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
ifneq ($(BUILD),$(notdir $(CURDIR)))
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
export OUTPUT := $(CURDIR)/$(TARGET)
|
||||||
|
|
||||||
|
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir))
|
||||||
|
|
||||||
|
export CC := $(PREFIX)gcc
|
||||||
|
export CXX := $(PREFIX)g++
|
||||||
|
export AR := $(PREFIX)ar
|
||||||
|
export OBJCOPY := $(PREFIX)objcopy
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# use CXX for linking C++ projects, CC for standard C
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
export LD := $(CXX)
|
||||||
|
#export LD := $(CC)
|
||||||
|
|
||||||
|
CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
|
||||||
|
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
|
||||||
|
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
|
||||||
|
PCXFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.pcx)))
|
||||||
|
BINFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.bin)))
|
||||||
|
PALFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.pal)))
|
||||||
|
RAWFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.raw)))
|
||||||
|
MAPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.map)))
|
||||||
|
JPEGFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.jpg)))
|
||||||
|
MODFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.mod)))
|
||||||
|
GIFFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.gif)))
|
||||||
|
BMPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.bmp)))
|
||||||
|
|
||||||
|
export OFILES := $(MAPFILES:.map=.o) $(RAWFILES:.raw=.o) $(PALFILES:.pal=.o) $(BINFILES:.bin=.o) $(PCXFILES:.pcx=.o) $(JPEGFILES:.jpg=.o) $(MODFILES:.mod=.o) $(GIFFILES:.gif=.o) $(BMPFILES:.bmp=.o)\
|
||||||
|
$(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o)
|
||||||
|
|
||||||
|
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
||||||
|
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
|
||||||
|
$(foreach dir,$(LIBDIRS),-I$(dir)/include/nds) \
|
||||||
|
-I$(PAPATH)/include/nds\
|
||||||
|
-I$(CURDIR)/$(BUILD)
|
||||||
|
|
||||||
|
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
|
||||||
|
export LIBPATHPA := $(foreach dir,$(LIBDIRPA),-L$(dir)/lib)
|
||||||
|
|
||||||
|
.PHONY: $(BUILD) clean export
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
$(BUILD):
|
||||||
|
@[ -d $@ ] || mkdir -p $@
|
||||||
|
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
clean:
|
||||||
|
@echo clean ...$(TARGET)
|
||||||
|
@rm -fr $(BUILD) *.elf *.*ds*
|
||||||
|
|
||||||
|
export:
|
||||||
|
@echo exporting ...$(TARGET)
|
||||||
|
@cp *.nds $(EXPORT_DIR)/$(TARGET).nds
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
else
|
||||||
|
|
||||||
|
DEPENDS := $(OFILES:.o=.d)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# main targets
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
$(OUTPUT).ds.gba : $(OUTPUT).nds
|
||||||
|
|
||||||
|
$(OUTPUT).nds : $(OUTPUT).bin
|
||||||
|
|
||||||
|
$(OUTPUT).bin : $(OUTPUT).elf
|
||||||
|
|
||||||
|
$(OUTPUT).elf : $(OFILES)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.ds.gba: %.nds
|
||||||
|
@echo built ... $(notdir $@)
|
||||||
|
@dsbuild $<
|
||||||
|
@cp $(CURDIR)/../$(notdir $@) ../$(notdir $(OUTPUT)).sc.nds
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.nds: %.bin
|
||||||
|
|
||||||
|
@ndstool -c $@ -9 $(TARGET).bin $(ARM7BIN) $(LOGO) $(ICON) "$(TEXT1);$(TEXT2);$(TEXT3)"
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.bin: %.elf
|
||||||
|
|
||||||
|
@$(OBJCOPY) -O binary $(TARGET).elf $(TARGET).bin
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.elf:
|
||||||
|
@echo $(LD) $(LDFLAGS) -specs=ds_arm9.specs $(OFILES) $(LIBPATHPA) $(LIBSPA) $(LIBPATHS) $(LIBS) -o $(TARGET).elf
|
||||||
|
@$(LD) $(LDFLAGS) -specs=ds_arm9.specs $(OFILES) $(LIBPATHPA) $(LIBSPA) $(LIBPATHS) $(LIBS) -o $(TARGET).elf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# Compile Targets for C/C++
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.cpp
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(CXX) -MM $(CFLAGS) -o $*.d $<
|
||||||
|
@$(CXX) $(CFLAGS) -c $< -o$@
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.c
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(CC) -MM $(CFLAGS) -o $*.d $<
|
||||||
|
@$(CC) $(CFLAGS) -c $< -o$@
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.s
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(CC) -MM $(CFLAGS) -o $*.d $<
|
||||||
|
@$(CC) $(ASFLAGS) -c $< -o$@
|
||||||
|
|
||||||
|
define bin2o
|
||||||
|
cp $(<) $(*).tmp
|
||||||
|
$(OBJCOPY) -I binary -O elf32-littlearm -B arm \
|
||||||
|
--rename-section .data=.rodata \
|
||||||
|
--redefine-sym _binary_$*_tmp_start=$*\
|
||||||
|
--redefine-sym _binary_$*_tmp_end=$*_end\
|
||||||
|
--redefine-sym _binary_$*_tmp_size=$*_size\
|
||||||
|
$(*).tmp $(@)
|
||||||
|
echo "extern const u8" $(*)"[];" > $(*).h
|
||||||
|
echo "extern const u32" $(*)_size[]";" >> $(*).h
|
||||||
|
rm $(*).tmp
|
||||||
|
endef
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.pcx
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.bin
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.raw
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.pal
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.map
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.mdl
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.jpg
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.mod
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.gif
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.bmp
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
|
||||||
|
-include $(DEPENDS)
|
||||||
|
#---------------------------------------------------------------------------------------
|
||||||
|
endif
|
||||||
|
#---------------------------------------------------------------------------------------
|
BIN
CocoUniverse/.svn/text-base/NdsLauncher.exe.svn-base
Executable file
3
CocoUniverse/.svn/text-base/build.bat.svn-base
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
make clean
|
||||||
|
make
|
||||||
|
pause
|
1
CocoUniverse/.svn/text-base/clean.bat.svn-base
Executable file
@ -0,0 +1 @@
|
|||||||
|
make clean
|
BIN
CocoUniverse/.svn/text-base/logo.bmp.svn-base
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
CocoUniverse/.svn/text-base/logo.ico.svn-base
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
CocoUniverse/.svn/text-base/logo_wifi.bmp.svn-base
Executable file
After Width: | Height: | Size: 950 B |
2
CocoUniverse/.svn/text-base/project.vho.svn-base
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
[VisualHamOFileListV1]
|
||||||
|
source/main.c
|
BIN
CocoUniverse/CocoUniverse.ds.gba
Executable file
BIN
CocoUniverse/CocoUniverse.nds
Executable file
BIN
CocoUniverse/CocoUniverse.sc.nds
Executable file
BIN
CocoUniverse/CocoUniverse.vhw
Executable file
6
CocoUniverse/CocoUniverse.vhw.bak
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
[VisualHAMTreeContentV1]
|
||||||
|
HAM Workspace=
|
||||||
|
HAM Workspace\Source Files=
|
||||||
|
HAM Workspace\Source Files=source/main.c
|
||||||
|
HAM Workspace\Header Files=
|
||||||
|
HAM Workspace=makefile
|
299
CocoUniverse/Makefile
Executable file
@ -0,0 +1,299 @@
|
|||||||
|
PROGNAME = PAlib
|
||||||
|
OFILES +=
|
||||||
|
ADD_LIBS +=
|
||||||
|
|
||||||
|
PATH := $(DEVKITARM)/bin:$(PATH)
|
||||||
|
|
||||||
|
ARM7BIN := -7 $(PAPATH)/lib/arm7/arm7.bin
|
||||||
|
TEXT1 := PAlib Project
|
||||||
|
TEXT2 := using PAlib
|
||||||
|
TEXT3 := www.palib.info
|
||||||
|
ICON := -b $(CURDIR)/../logo.bmp
|
||||||
|
LOGO := -o $(CURDIR)/../logo_wifi.bmp
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
.SUFFIXES:
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
ifeq ($(strip $(DEVKITARM)),)
|
||||||
|
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
include $(DEVKITARM)/ds_rules
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# TARGET is the name of the output, if this ends with _mb generates a multiboot image
|
||||||
|
# BUILD is the directory where object files & intermediate files will be placed
|
||||||
|
# SOURCES is a list of directories containing source code
|
||||||
|
# INCLUDES is a list of directories containing extra header files
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
TARGET := $(shell basename $(CURDIR))
|
||||||
|
BUILD := build
|
||||||
|
SOURCES := gfx source data
|
||||||
|
INCLUDES := include build data
|
||||||
|
|
||||||
|
EXPORT_DIR := /c/ndsexamples/
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# ARM7BIN is the path to an arm7 binary other than the default
|
||||||
|
# usage: ARM7BIN := -7 binaryName.bin
|
||||||
|
#
|
||||||
|
# ICON is the path to an icon to be used int the header plus text
|
||||||
|
# usage: ICON := -t iconName.bmp "text line one; text line 2; text line 3"
|
||||||
|
#
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# options for code generation
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
ARCH := -mthumb-interwork
|
||||||
|
|
||||||
|
# note: arm9tdmi isn't the correct CPU arch, but anything newer and LD
|
||||||
|
# *insists* it has a FPU or VFP, and it won't take no for an answer!
|
||||||
|
CFLAGS := -g -Wformat=2 -Winline -Wall -O2\
|
||||||
|
|
||||||
|
-mcpu=arm946e-s -mtune=arm946e-s -fomit-frame-pointer\
|
||||||
|
-ffast-math \
|
||||||
|
$(ARCH)
|
||||||
|
|
||||||
|
CFLAGS += $(INCLUDE) -DARM9 -I$(DEVKITPRO)/PAlib/include/nds
|
||||||
|
|
||||||
|
ASFLAGS := -g $(ARCH)
|
||||||
|
LDFLAGS := -g $(ARCH) -mno-fpu -L$(DEVKITPRO)/PAlib/lib
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# path to tools - this can be deleted if you set the path in windows
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# export PATH := /d/dev/ds/devkitARM_r11/bin:/bin
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# PATH to ndslib - just make a system variable called NDSLIBPATH and be done with it
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# NDSLIBPATH := /d/dev/ds/ndslib/
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# the prefix on the compiler executables
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
PREFIX := arm-eabi-
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# any extra libraries we wish to link with the project
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
LIBS := -lfat -lnds9 -ldswifi9
|
||||||
|
LIBSPA := -lpa9
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# list of directories containing libraries, this must be the top level containing
|
||||||
|
# include and lib
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
LIBDIRS := $(DEVKITPRO)/libnds
|
||||||
|
LIBDIRPA := $(PAPATH)
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# no real need to edit anything past this point unless you need to add additional
|
||||||
|
# rules for different file extensions
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
ifneq ($(BUILD),$(notdir $(CURDIR)))
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
export OUTPUT := $(CURDIR)/$(TARGET)
|
||||||
|
|
||||||
|
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir))
|
||||||
|
|
||||||
|
export CC := $(PREFIX)gcc
|
||||||
|
export CXX := $(PREFIX)g++
|
||||||
|
export AR := $(PREFIX)ar
|
||||||
|
export OBJCOPY := $(PREFIX)objcopy
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# use CXX for linking C++ projects, CC for standard C
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
export LD := $(CXX)
|
||||||
|
#export LD := $(CC)
|
||||||
|
|
||||||
|
CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
|
||||||
|
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
|
||||||
|
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
|
||||||
|
PCXFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.pcx)))
|
||||||
|
BINFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.bin)))
|
||||||
|
PALFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.pal)))
|
||||||
|
RAWFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.raw)))
|
||||||
|
MAPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.map)))
|
||||||
|
JPEGFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.jpg)))
|
||||||
|
MODFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.mod)))
|
||||||
|
GIFFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.gif)))
|
||||||
|
BMPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.bmp)))
|
||||||
|
|
||||||
|
export OFILES := $(MAPFILES:.map=.o) $(RAWFILES:.raw=.o) $(PALFILES:.pal=.o) $(BINFILES:.bin=.o) $(PCXFILES:.pcx=.o) $(JPEGFILES:.jpg=.o) $(MODFILES:.mod=.o) $(GIFFILES:.gif=.o) $(BMPFILES:.bmp=.o)\
|
||||||
|
$(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o)
|
||||||
|
|
||||||
|
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
||||||
|
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
|
||||||
|
$(foreach dir,$(LIBDIRS),-I$(dir)/include/nds) \
|
||||||
|
-I$(PAPATH)/include/nds\
|
||||||
|
-I$(CURDIR)/$(BUILD)
|
||||||
|
|
||||||
|
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
|
||||||
|
export LIBPATHPA := $(foreach dir,$(LIBDIRPA),-L$(dir)/lib)
|
||||||
|
|
||||||
|
.PHONY: $(BUILD) clean export
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
$(BUILD):
|
||||||
|
@[ -d $@ ] || mkdir -p $@
|
||||||
|
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
clean:
|
||||||
|
@echo clean ...$(TARGET)
|
||||||
|
@rm -fr $(BUILD) *.elf *.*ds*
|
||||||
|
|
||||||
|
export:
|
||||||
|
@echo exporting ...$(TARGET)
|
||||||
|
@cp *.nds $(EXPORT_DIR)/$(TARGET).nds
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
else
|
||||||
|
|
||||||
|
DEPENDS := $(OFILES:.o=.d)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# main targets
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
$(OUTPUT).ds.gba : $(OUTPUT).nds
|
||||||
|
|
||||||
|
$(OUTPUT).nds : $(OUTPUT).bin
|
||||||
|
|
||||||
|
$(OUTPUT).bin : $(OUTPUT).elf
|
||||||
|
|
||||||
|
$(OUTPUT).elf : $(OFILES)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.ds.gba: %.nds
|
||||||
|
@echo built ... $(notdir $@)
|
||||||
|
@dsbuild $<
|
||||||
|
@cp $(CURDIR)/../$(notdir $@) ../$(notdir $(OUTPUT)).sc.nds
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.nds: %.bin
|
||||||
|
|
||||||
|
@ndstool -c $@ -9 $(TARGET).bin $(ARM7BIN) $(LOGO) $(ICON) "$(TEXT1);$(TEXT2);$(TEXT3)"
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.bin: %.elf
|
||||||
|
|
||||||
|
@$(OBJCOPY) -O binary $(TARGET).elf $(TARGET).bin
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.elf:
|
||||||
|
@echo $(LD) $(LDFLAGS) -specs=ds_arm9.specs $(OFILES) $(LIBPATHPA) $(LIBSPA) $(LIBPATHS) $(LIBS) -o $(TARGET).elf
|
||||||
|
@$(LD) $(LDFLAGS) -specs=ds_arm9.specs $(OFILES) $(LIBPATHPA) $(LIBSPA) $(LIBPATHS) $(LIBS) -o $(TARGET).elf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# Compile Targets for C/C++
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.cpp
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(CXX) -MM $(CFLAGS) -o $*.d $<
|
||||||
|
@$(CXX) $(CFLAGS) -c $< -o$@
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.c
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(CC) -MM $(CFLAGS) -o $*.d $<
|
||||||
|
@$(CC) $(CFLAGS) -c $< -o$@
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.s
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(CC) -MM $(CFLAGS) -o $*.d $<
|
||||||
|
@$(CC) $(ASFLAGS) -c $< -o$@
|
||||||
|
|
||||||
|
|
||||||
|
define bin2o
|
||||||
|
cp $(<) $(*).tmp
|
||||||
|
echo -n $$(( `cat $(*).tmp | wc -c` & 3 )) | sed -e 's/0//g' | sed -e 's/1/000/g' | sed -e 's/2/00/g' | sed -e 's/3/0/g' >> $(*).tmp
|
||||||
|
$(OBJCOPY) -I binary -O elf32-littlearm -B arm \
|
||||||
|
--rename-section .data=.rodata \
|
||||||
|
--redefine-sym _binary_$*_tmp_start=$*\
|
||||||
|
--redefine-sym _binary_$*_tmp_end=$*_end\
|
||||||
|
--redefine-sym _binary_$*_tmp_size=$*_size\
|
||||||
|
$(*).tmp $(@)
|
||||||
|
echo "extern const u8" $(*)"[];" > $(*).h
|
||||||
|
echo "extern const u32" $(*)_size[]";" >> $(*).h
|
||||||
|
rm $(*).tmp
|
||||||
|
endef
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.pcx
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.bin
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.raw
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.pal
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.map
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.mdl
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.jpg
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.mod
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.gif
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.bmp
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
|
||||||
|
-include $(DEPENDS)
|
||||||
|
#---------------------------------------------------------------------------------------
|
||||||
|
endif
|
||||||
|
#---------------------------------------------------------------------------------------
|
BIN
CocoUniverse/NdsLauncher.exe
Executable file
3
CocoUniverse/build.bat
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
make clean
|
||||||
|
make
|
||||||
|
pause
|
2
CocoUniverse/build/Minuano6-8.h
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
extern const u8 Minuano6-8[];
|
||||||
|
extern const u32 Minuano6-8_size[];
|
BIN
CocoUniverse/build/Minuano6-8.o
Executable file
BIN
CocoUniverse/build/build.bin
Executable file
BIN
CocoUniverse/build/build.elf
Executable file
98
CocoUniverse/build/main.d
Executable file
@ -0,0 +1,98 @@
|
|||||||
|
main.o: c:/devkitPro/proyects/CocoUniverse/source/main.c \
|
||||||
|
c:/devkitPro/PAlib//include/nds/PA9.h c:/devkitPro/libnds/include/nds.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/jtypes.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/bios.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/card.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/jtypes.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/dma.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/interrupts.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/ipc.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/memory.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/system.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/timers.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/background.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/boxtest.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/video.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/videoGL.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/math.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/trig_lut.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/cache.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/console.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/exceptions.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/image.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/pcx.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/input.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/rumble.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/sound.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/sprite.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_IO.h \
|
||||||
|
c:/devkitPro/libnds/include/gbfs.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/gba-jpeg-decode.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/gba-jpeg.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/Sound9.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/SoundCommon.h \
|
||||||
|
c:/devkitPro/libnds/include/fat.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/PA_IPC.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_General.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/PA_IPC.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Text.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_BgTiles.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_General.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/text0.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/text1.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/text2.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/text3.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/text4.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_BgTiles.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_BgLargeMap.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Video.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Sprite.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Math.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Interrupt.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_SpriteDual.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Sprite.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Sound.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/../Sound9.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_GBFS.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Text.h \
|
||||||
|
c:/devkitPro/libnds/include/gbfs.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_FS.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Micro.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Draw.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Palette.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Splash.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Gif.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Draw.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/gif/gif_lib.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Interrupt.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Keys.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Motion.h \
|
||||||
|
c:/devkitPro/libnds/include/nds/arm9/ndsmotion.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_BgRot.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Timer.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_API.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Math.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Palette.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_PaletteDual.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Save.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_FS.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_GBFS.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_SpecialFx.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_TileDual.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Keyboard.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Window.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Mode7.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_BgRot.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_3DSprites.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_IA.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Reco.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_16c.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Wifi.h \
|
||||||
|
c:/devkitPro/libnds/include/dswifi9.h \
|
||||||
|
c:/devkitPro/libnds/include/dswifi_version.h \
|
||||||
|
c:/devkitPro/libnds/include/sys/socket.h \
|
||||||
|
c:/devkitPro/libnds/include/netinet/in.h \
|
||||||
|
c:/devkitPro/libnds/include/netdb.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Splash.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_Gif.h \
|
||||||
|
c:/devkitPro/PAlib//include/nds/arm9/PA_BgTrans.h
|
BIN
CocoUniverse/build/main.o
Executable file
1
CocoUniverse/clean.bat
Executable file
@ -0,0 +1 @@
|
|||||||
|
make clean
|
BIN
CocoUniverse/data/Minuano6-8.raw
Executable file
BIN
CocoUniverse/logo.bmp
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
CocoUniverse/logo.ico
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
CocoUniverse/logo_wifi.bmp
Executable file
After Width: | Height: | Size: 950 B |
2
CocoUniverse/project.vho
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
[VisualHamOFileListV1]
|
||||||
|
source/main.c
|
11
CocoUniverse/source/.svn/all-wcprops
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 65
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/source
|
||||||
|
END
|
||||||
|
main.c
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 72
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/source/main.c
|
||||||
|
END
|
28
CocoUniverse/source/.svn/entries
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
8
|
||||||
|
|
||||||
|
dir
|
||||||
|
116
|
||||||
|
https://palibds.googlecode.com/svn/trunk/vham/templates/project/PAlibTemplate/source
|
||||||
|
https://palibds.googlecode.com/svn
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
|
||||||
|
svn:special svn:externals svn:needs-lock
|
||||||
|
|
||||||
|
main.c
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-01-31T01:54:02.000000Z
|
||||||
|
b1140899dc28b1a23ba1bc3c72431e7f
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
1
CocoUniverse/source/.svn/format
Executable file
@ -0,0 +1 @@
|
|||||||
|
8
|
25
CocoUniverse/source/.svn/text-base/main.c.svn-base
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
// Includes
|
||||||
|
#include <PA9.h> // Include for PA_Lib
|
||||||
|
|
||||||
|
// Function: main()
|
||||||
|
int main(int argc, char ** argv)
|
||||||
|
{
|
||||||
|
PA_Init(); // Initializes PA_Lib
|
||||||
|
PA_InitVBL(); // Initializes a standard VBL
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Infinite loop to keep the program running
|
||||||
|
while (1)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
PA_WaitForVBL();
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
} // End of main()
|
25
CocoUniverse/source/main.c
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
// Includes
|
||||||
|
#include <PA9.h> // Include for PA_Lib
|
||||||
|
|
||||||
|
// Function: main()
|
||||||
|
int main(int argc, char ** argv)
|
||||||
|
{
|
||||||
|
PA_Init(); // Initializes PA_Lib
|
||||||
|
PA_InitVBL(); // Initializes a standard VBL
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Infinite loop to keep the program running
|
||||||
|
while (1)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
PA_WaitForVBL();
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
} // End of main()
|
71
Cumple/.svn/all-wcprops
Executable file
@ -0,0 +1,71 @@
|
|||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 58
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate
|
||||||
|
END
|
||||||
|
@project@.ico
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 72
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/@project@.ico
|
||||||
|
END
|
||||||
|
project.vho
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 70
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/project.vho
|
||||||
|
END
|
||||||
|
@project@.txt
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 72
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/@project@.txt
|
||||||
|
END
|
||||||
|
build.bat
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 68
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/build.bat
|
||||||
|
END
|
||||||
|
NdsLauncher.exe
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 74
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/NdsLauncher.exe
|
||||||
|
END
|
||||||
|
clean.bat
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 68
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/clean.bat
|
||||||
|
END
|
||||||
|
@project@.vhw
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 72
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/@project@.vhw
|
||||||
|
END
|
||||||
|
logo.ico
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 67
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/logo.ico
|
||||||
|
END
|
||||||
|
logo_wifi.bmp
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 74
|
||||||
|
/svn/!svn/ver/123/trunk/vham/templates/project/PAlibTemplate/logo_wifi.bmp
|
||||||
|
END
|
||||||
|
Makefile
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 67
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/Makefile
|
||||||
|
END
|
||||||
|
logo.bmp
|
||||||
|
K 25
|
||||||
|
svn:wc:ra_dav:version-url
|
||||||
|
V 67
|
||||||
|
/svn/!svn/ver/4/trunk/vham/templates/project/PAlibTemplate/logo.bmp
|
||||||
|
END
|
156
Cumple/.svn/entries
Executable file
@ -0,0 +1,156 @@
|
|||||||
|
8
|
||||||
|
|
||||||
|
dir
|
||||||
|
116
|
||||||
|
https://palibds.googlecode.com/svn/trunk/vham/templates/project/PAlibTemplate
|
||||||
|
https://palibds.googlecode.com/svn
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
|
||||||
|
svn:special svn:externals svn:needs-lock
|
||||||
|
|
||||||
|
@project@.ico
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2003-05-09T15:53:26.000000Z
|
||||||
|
1d64ae57ec646dc8bbc6294a8bc48566
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
has-props
|
||||||
|
|
||||||
|
source
|
||||||
|
dir
|
||||||
|
|
||||||
|
project.vho
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-01-31T01:51:50.000000Z
|
||||||
|
62f8d3225fbfb3bbd8bebbf0589f716c
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
@project@.txt
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-01-31T01:52:02.000000Z
|
||||||
|
3aaf57a858c308d9952bfb1721859a13
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
build.bat
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2005-11-08T04:24:56.000000Z
|
||||||
|
4af15a2f33b24192e041b721e0e1a7e4
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
NdsLauncher.exe
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-02-02T07:40:04.000000Z
|
||||||
|
2cddbb9d3427a165fc4fd56b19d427e5
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
has-props
|
||||||
|
|
||||||
|
clean.bat
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2005-10-06T08:16:56.000000Z
|
||||||
|
b7f3f6ea67c49ab9187d752ef9052516
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
@project@.vhw
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-08-25T20:19:08.000000Z
|
||||||
|
aba3a9bc8c1e79a1cbfba3f2741c1c0a
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
||||||
|
logo.ico
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2005-11-28T00:37:52.000000Z
|
||||||
|
67bbc374a4d8c1b34b0aff0078409a8d
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
has-props
|
||||||
|
|
||||||
|
logo_wifi.bmp
|
||||||
|
file
|
||||||
|
123
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2007-02-06T17:05:30.609375Z
|
||||||
|
f1cc2221ddb8445b9d6d5c510f1a52a3
|
||||||
|
2007-02-06T17:05:14.209316Z
|
||||||
|
123
|
||||||
|
Molousk
|
||||||
|
has-props
|
||||||
|
|
||||||
|
logo.bmp
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2005-10-18T01:39:22.000000Z
|
||||||
|
94768f0e78d21ecfc7ad4ddcf44596b0
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
has-props
|
||||||
|
|
||||||
|
Makefile
|
||||||
|
file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2006-08-25T20:11:56.000000Z
|
||||||
|
d280afc4cb3ea1c949ecc9655000a557
|
||||||
|
2006-09-03T16:21:26.676623Z
|
||||||
|
4
|
||||||
|
molousk
|
||||||
|
|
1
Cumple/.svn/format
Executable file
@ -0,0 +1 @@
|
|||||||
|
8
|
5
Cumple/.svn/prop-base/@project@.ico.svn-base
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
K 13
|
||||||
|
svn:mime-type
|
||||||
|
V 24
|
||||||
|
application/octet-stream
|
||||||
|
END
|
5
Cumple/.svn/prop-base/NdsLauncher.exe.svn-base
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
K 13
|
||||||
|
svn:mime-type
|
||||||
|
V 24
|
||||||
|
application/octet-stream
|
||||||
|
END
|
5
Cumple/.svn/prop-base/logo.bmp.svn-base
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
K 13
|
||||||
|
svn:mime-type
|
||||||
|
V 24
|
||||||
|
application/octet-stream
|
||||||
|
END
|
5
Cumple/.svn/prop-base/logo.ico.svn-base
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
K 13
|
||||||
|
svn:mime-type
|
||||||
|
V 24
|
||||||
|
application/octet-stream
|
||||||
|
END
|
5
Cumple/.svn/prop-base/logo_wifi.bmp.svn-base
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
K 13
|
||||||
|
svn:mime-type
|
||||||
|
V 24
|
||||||
|
application/octet-stream
|
||||||
|
END
|
BIN
Cumple/.svn/text-base/@project@.ico.svn-base
Executable file
After Width: | Height: | Size: 2.7 KiB |
1
Cumple/.svn/text-base/@project@.txt.svn-base
Executable file
@ -0,0 +1 @@
|
|||||||
|
A default PAlib Project template
|
6
Cumple/.svn/text-base/@project@.vhw.svn-base
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
[VisualHAMTreeContentV1]
|
||||||
|
HAM Workspace=
|
||||||
|
HAM Workspace\Source Files=
|
||||||
|
HAM Workspace\Source Files=source/main.c
|
||||||
|
HAM Workspace\Header Files=
|
||||||
|
HAM Workspace=makefile
|
291
Cumple/.svn/text-base/Makefile.svn-base
Executable file
@ -0,0 +1,291 @@
|
|||||||
|
PROGNAME = PAlib
|
||||||
|
OFILES +=
|
||||||
|
ADD_LIBS +=
|
||||||
|
|
||||||
|
PATH := $(DEVKITARM)/bin:$(PATH)
|
||||||
|
|
||||||
|
ARM7BIN := -7 $(PAPATH)/lib/arm7/arm7.bin
|
||||||
|
TEXT1 := PAlib Demo
|
||||||
|
TEXT2 := using PAlib
|
||||||
|
TEXT3 := www.palib.com
|
||||||
|
ICON := -b $(CURDIR)/../logo.bmp
|
||||||
|
LOGO := -o $(CURDIR)/../logo_wifi.bmp
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
.SUFFIXES:
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
ifeq ($(strip $(DEVKITARM)),)
|
||||||
|
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM)
|
||||||
|
endif
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# TARGET is the name of the output, if this ends with _mb generates a multiboot image
|
||||||
|
# BUILD is the directory where object files & intermediate files will be placed
|
||||||
|
# SOURCES is a list of directories containing source code
|
||||||
|
# INCLUDES is a list of directories containing extra header files
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
TARGET := $(shell basename $(CURDIR))
|
||||||
|
BUILD := build
|
||||||
|
SOURCES := gfx source data
|
||||||
|
INCLUDES := include build data
|
||||||
|
|
||||||
|
EXPORT_DIR := /c/ndsexamples/
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# ARM7BIN is the path to an arm7 binary other than the default
|
||||||
|
# usage: ARM7BIN := -7 binaryName.bin
|
||||||
|
#
|
||||||
|
# ICON is the path to an icon to be used int the header plus text
|
||||||
|
# usage: ICON := -t iconName.bmp "text line one; text line 2; text line 3"
|
||||||
|
#
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# options for code generation
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
ARCH := -mthumb-interwork
|
||||||
|
|
||||||
|
# note: arm9tdmi isn't the correct CPU arch, but anything newer and LD
|
||||||
|
# *insists* it has a FPU or VFP, and it won't take no for an answer!
|
||||||
|
CFLAGS := -g -Wall -O2\
|
||||||
|
-mcpu=arm9tdmi -mtune=arm9tdmi -fomit-frame-pointer\
|
||||||
|
-ffast-math \
|
||||||
|
$(ARCH)
|
||||||
|
|
||||||
|
CFLAGS += $(INCLUDE) -DARM9 -I$(DEVKITPRO)/PAlib/include/nds
|
||||||
|
|
||||||
|
ASFLAGS := -g $(ARCH)
|
||||||
|
LDFLAGS := -g $(ARCH) -mno-fpu -L$(DEVKITPRO)/PAlib/lib
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# path to tools - this can be deleted if you set the path in windows
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# export PATH := /d/dev/ds/devkitARM_r11/bin:/bin
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# PATH to ndslib - just make a system variable called NDSLIBPATH and be done with it
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# NDSLIBPATH := /d/dev/ds/ndslib/
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# the prefix on the compiler executables
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
PREFIX := arm-eabi-
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# any extra libraries we wish to link with the project
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
LIBS := -lnds9
|
||||||
|
LIBSPA := -lpa9
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# list of directories containing libraries, this must be the top level containing
|
||||||
|
# include and lib
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
LIBDIRS := $(DEVKITPRO)/libnds
|
||||||
|
LIBDIRPA := $(PAPATH)
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# no real need to edit anything past this point unless you need to add additional
|
||||||
|
# rules for different file extensions
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
ifneq ($(BUILD),$(notdir $(CURDIR)))
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
export OUTPUT := $(CURDIR)/$(TARGET)
|
||||||
|
|
||||||
|
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir))
|
||||||
|
|
||||||
|
export CC := $(PREFIX)gcc
|
||||||
|
export CXX := $(PREFIX)g++
|
||||||
|
export AR := $(PREFIX)ar
|
||||||
|
export OBJCOPY := $(PREFIX)objcopy
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# use CXX for linking C++ projects, CC for standard C
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
export LD := $(CXX)
|
||||||
|
#export LD := $(CC)
|
||||||
|
|
||||||
|
CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
|
||||||
|
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
|
||||||
|
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
|
||||||
|
PCXFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.pcx)))
|
||||||
|
BINFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.bin)))
|
||||||
|
PALFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.pal)))
|
||||||
|
RAWFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.raw)))
|
||||||
|
MAPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.map)))
|
||||||
|
JPEGFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.jpg)))
|
||||||
|
MODFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.mod)))
|
||||||
|
GIFFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.gif)))
|
||||||
|
BMPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.bmp)))
|
||||||
|
|
||||||
|
export OFILES := $(MAPFILES:.map=.o) $(RAWFILES:.raw=.o) $(PALFILES:.pal=.o) $(BINFILES:.bin=.o) $(PCXFILES:.pcx=.o) $(JPEGFILES:.jpg=.o) $(MODFILES:.mod=.o) $(GIFFILES:.gif=.o) $(BMPFILES:.bmp=.o)\
|
||||||
|
$(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o)
|
||||||
|
|
||||||
|
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
||||||
|
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
|
||||||
|
$(foreach dir,$(LIBDIRS),-I$(dir)/include/nds) \
|
||||||
|
-I$(PAPATH)/include/nds\
|
||||||
|
-I$(CURDIR)/$(BUILD)
|
||||||
|
|
||||||
|
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
|
||||||
|
export LIBPATHPA := $(foreach dir,$(LIBDIRPA),-L$(dir)/lib)
|
||||||
|
|
||||||
|
.PHONY: $(BUILD) clean export
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
$(BUILD):
|
||||||
|
@[ -d $@ ] || mkdir -p $@
|
||||||
|
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
clean:
|
||||||
|
@echo clean ...$(TARGET)
|
||||||
|
@rm -fr $(BUILD) *.elf *.*ds*
|
||||||
|
|
||||||
|
export:
|
||||||
|
@echo exporting ...$(TARGET)
|
||||||
|
@cp *.nds $(EXPORT_DIR)/$(TARGET).nds
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
else
|
||||||
|
|
||||||
|
DEPENDS := $(OFILES:.o=.d)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# main targets
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
$(OUTPUT).ds.gba : $(OUTPUT).nds
|
||||||
|
|
||||||
|
$(OUTPUT).nds : $(OUTPUT).bin
|
||||||
|
|
||||||
|
$(OUTPUT).bin : $(OUTPUT).elf
|
||||||
|
|
||||||
|
$(OUTPUT).elf : $(OFILES)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.ds.gba: %.nds
|
||||||
|
@echo built ... $(notdir $@)
|
||||||
|
@dsbuild $<
|
||||||
|
@cp $(CURDIR)/../$(notdir $@) ../$(notdir $(OUTPUT)).sc.nds
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.nds: %.bin
|
||||||
|
|
||||||
|
@ndstool -c $@ -9 $(TARGET).bin $(ARM7BIN) $(LOGO) $(ICON) "$(TEXT1);$(TEXT2);$(TEXT3)"
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.bin: %.elf
|
||||||
|
|
||||||
|
@$(OBJCOPY) -O binary $(TARGET).elf $(TARGET).bin
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.elf:
|
||||||
|
@echo $(LD) $(LDFLAGS) -specs=ds_arm9.specs $(OFILES) $(LIBPATHPA) $(LIBSPA) $(LIBPATHS) $(LIBS) -o $(TARGET).elf
|
||||||
|
@$(LD) $(LDFLAGS) -specs=ds_arm9.specs $(OFILES) $(LIBPATHPA) $(LIBSPA) $(LIBPATHS) $(LIBS) -o $(TARGET).elf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
# Compile Targets for C/C++
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.cpp
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(CXX) -MM $(CFLAGS) -o $*.d $<
|
||||||
|
@$(CXX) $(CFLAGS) -c $< -o$@
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.c
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(CC) -MM $(CFLAGS) -o $*.d $<
|
||||||
|
@$(CC) $(CFLAGS) -c $< -o$@
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.s
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(CC) -MM $(CFLAGS) -o $*.d $<
|
||||||
|
@$(CC) $(ASFLAGS) -c $< -o$@
|
||||||
|
|
||||||
|
define bin2o
|
||||||
|
cp $(<) $(*).tmp
|
||||||
|
$(OBJCOPY) -I binary -O elf32-littlearm -B arm \
|
||||||
|
--rename-section .data=.rodata \
|
||||||
|
--redefine-sym _binary_$*_tmp_start=$*\
|
||||||
|
--redefine-sym _binary_$*_tmp_end=$*_end\
|
||||||
|
--redefine-sym _binary_$*_tmp_size=$*_size\
|
||||||
|
$(*).tmp $(@)
|
||||||
|
echo "extern const u8" $(*)"[];" > $(*).h
|
||||||
|
echo "extern const u32" $(*)_size[]";" >> $(*).h
|
||||||
|
rm $(*).tmp
|
||||||
|
endef
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.pcx
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.bin
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.raw
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.pal
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.map
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.mdl
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.jpg
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.mod
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.gif
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
%.o : %.bmp
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
@echo $(notdir $<)
|
||||||
|
@$(bin2o)
|
||||||
|
|
||||||
|
|
||||||
|
-include $(DEPENDS)
|
||||||
|
#---------------------------------------------------------------------------------------
|
||||||
|
endif
|
||||||
|
#---------------------------------------------------------------------------------------
|
BIN
Cumple/.svn/text-base/NdsLauncher.exe.svn-base
Executable file
3
Cumple/.svn/text-base/build.bat.svn-base
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
make clean
|
||||||
|
make
|
||||||
|
pause
|
1
Cumple/.svn/text-base/clean.bat.svn-base
Executable file
@ -0,0 +1 @@
|
|||||||
|
make clean
|
BIN
Cumple/.svn/text-base/logo.bmp.svn-base
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
Cumple/.svn/text-base/logo.ico.svn-base
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
Cumple/.svn/text-base/logo_wifi.bmp.svn-base
Executable file
After Width: | Height: | Size: 950 B |
2
Cumple/.svn/text-base/project.vho.svn-base
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
[VisualHamOFileListV1]
|
||||||
|
source/main.c
|