Skip to content
Permalink
Browse files

Initial import

  • Loading branch information...
Cydrak Cydrak
Cydrak authored and Cydrak committed Jul 12, 2012
1 parent bf1f5f0 commit 45391cdd405d4f6a64fc4c8a863c7845d718cf4d
Showing 1,001 changed files with 227,042 additions and 0 deletions.
@@ -0,0 +1,4 @@
*.ico binary
*.bmp binary
*.png binary
*.rom binary
@@ -0,0 +1,7 @@
*.exe
*.dll
*.res
*.[doa]
*.log
*.bak
*~
674 GPLv3.txt

Large diffs are not rendered by default.

@@ -0,0 +1,47 @@
-------------------------------------------------------------------------------

dasShiny - Nintendo DS emulator (under nds/)

Copyright (c) 2012 Cydrak

ethos - declarative emulator GUI
bsnes - multi-system emulator (sfc/, fc/, gb/, gba/)
laevateinn - SNES debugger

Copyright (c) 2004-2012 byuu

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.

You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.

-------------------------------------------------------------------------------

phoenix - lightweight GUI toolkit wrapper
ruby - portable audio/video/input bindings
libco - cooperative thread switcher
nall - C++11 utility library

Copyright (c) 2004-2012 byuu

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
ND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.

-------------------------------------------------------------------------------
133 Makefile
@@ -0,0 +1,133 @@
include nall/Makefile

fc := fc
sfc := sfc
gb := gb
gba := gba
nds := nds

profile := accuracy
target := ethos

# options += console

# compiler
c := $(compiler) -std=gnu99
cpp := $(subst cc,++,$(compiler)) -std=gnu++0x
flags := -I. -O3
link :=
objects := libco

# gprof mode
# pgo := profile

# profile-guided optimization mode
# pgo := instrument
# pgo := optimize

ifneq ($(findstring debug,$(options)),)
flags += -g
link += -g
else ifneq ($(pgo),profile)
link += -s
endif

ifneq ($(findstring x86,$(options)),)
flags += -m32
link += -m32
resfmt = --target=pe-i386
endif
ifneq ($(findstring x64,$(options)),)
flags += -m64
link += -m64
resfmt = --target=pe-x86-64
endif

ifneq ($(pgo),profile)
flags += -fomit-frame-pointer
endif

ifeq ($(pgo),profile)
flags += -pg
link += -pg -lgcov
else ifeq ($(pgo),instrument)
flags += -fprofile-generate
link += -lgcov
else ifeq ($(pgo),optimize)
flags += -fprofile-use
endif

# platform
ifeq ($(platform),x)
flags += -march=native
link += -ldl -lX11 -lXext
else ifeq ($(platform),osx)
else ifeq ($(platform),win)
link += $(if $(findstring console,$(options)),-mconsole,-mwindows)
link += -mthreads -luuid -lkernel32 -luser32 -lgdi32 -lcomctl32 -lcomdlg32 -lshell32 -lole32
link += -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
else
unknown_platform: help;
endif

ui := target-$(target)

# implicit rules
compile = \
$(strip \
$(if $(filter %.c,$<), \
$(c) -MMD -MP -MF $*.d $(flags) $1 -c $< -o $@, \
$(if $(filter %.cpp,$<), \
$(cpp) -MMD -MP -MF $*.d $(flags) $1 -c $< -o $@ \
) \
) \
)

%.d: ;
%.o: $<; $(call compile)

all: build;

obj/libco.o: libco/libco.c libco/*

include $(ui)/Makefile
flags := $(flags) $(foreach o,$(call strupper,$(options)),-D$o)

# targets
clean:
-@$(call delete,obj/*.d)
-@$(call delete,obj/*.o)
-@$(call delete,obj/*.a)
-@$(call delete,obj/*.so)
-@$(call delete,obj/*.dylib)
-@$(call delete,obj/*.dll)
-@$(call delete,*.res)
-@$(call delete,*.pgd)
-@$(call delete,*.pgc)
-@$(call delete,*.ilk)
-@$(call delete,*.pdb)
-@$(call delete,*.manifest)

sync:
if [ -d ./libco ]; then rm -r ./libco; fi
if [ -d ./nall ]; then rm -r ./nall; fi
if [ -d ./ruby ]; then rm -r ./ruby; fi
if [ -d ./phoenix ]; then rm -r ./phoenix; fi
cp -r ../libco ./libco
cp -r ../nall ./nall
cp -r ../ruby ./ruby
cp -r ../phoenix ./phoenix
rm -r libco/doc
rm -r libco/test
rm -r nall/test
rm -r ruby/_test
rm -r phoenix/nall
rm -r phoenix/test

archive:
if [ -f dasShiny.tar.bz2 ]; then rm dasShiny.tar.bz2; fi
tar -cjf dasShiny.tar.bz2 `ls`

help:;

-include obj/*.d
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity type="win32" name="bsnes" version="1.0.0.0" processorArchitecture="*"/>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"/>
</dependentAssembly>
</dependency>
</assembly>
BIN +21.6 KB data/bsnes.ico
Binary file not shown.
BIN +1.34 KB data/bsnes.png
Binary file not shown.

0 comments on commit 45391cd

Please sign in to comment.
You can’t perform that action at this time.