-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from jendo42/devel
Building over existing repositories
- Loading branch information
Showing
4 changed files
with
162 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ | |
# | ||
*_irx.c | ||
build/ | ||
libconfuse/ | ||
libtap/ | ||
lua/ | ||
ps2_drivers/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,152 +1,173 @@ | ||
.PHONY: aalib cmakelibs expat libconfig libconfuse libid3tag libjpeg_ps2_addons libmad libtap libtiff lua madplay ode ps2stuff ps2gl ps2_drivers romfs sdl sdlgfx sdlimage sdlmixer sdlttf SIOCookie unzip | ||
|
||
LIBS := \ | ||
aalib\ | ||
cmakelibs\ | ||
expat\ | ||
libconfig\ | ||
libconfuse\ | ||
libid3tag\ | ||
libjpeg_ps2_addons\ | ||
libmad\ | ||
libtap\ | ||
libtiff\ | ||
lua\ | ||
madplay\ | ||
ps2stuff\ | ||
ps2gl\ | ||
ps2_drivers\ | ||
romfs\ | ||
sdl\ | ||
sdlgfx\ | ||
sdlimag\ | ||
sdlmixer\ | ||
sdlttf\ | ||
SIOCookie\ | ||
unzip\ | ||
|
||
LIBS_SAMPLES := \ | ||
aalib\ | ||
lua\ | ||
|
||
# TODO: Broken samples | ||
# problem seems to be with the C strict mode | ||
# throwing warnings as errors | ||
# sdl | ||
# sdlgfx | ||
# sdlmixer | ||
# ode | ||
# romfs | ||
|
||
.PHONY: $(LIBS) | ||
all: libraries | ||
libraries: aalib cmakelibs expat libconfig libconfuse libid3tag libjpeg_ps2_addons libmad libtap libtiff lua madplay ps2stuff ps2gl ps2_drivers romfs sdl sdlgfx sdlimage sdlmixer sdlttf SIOCookie unzip | ||
libraries: $(LIBS) | ||
|
||
$(addprefix clean-, $(LIBS)): | ||
-$(MAKE) -C $(@:clean-%=%) clean | ||
|
||
$(addprefix sample-, $(LIBS_SAMPLES)): $(@:sample-%=%) | ||
$(MAKE) -C $(@:sample-%=%) sample | ||
|
||
clean: $(addprefix clean-, $(LIBS)) | ||
|
||
samples: $(addprefix sample-, $(LIBS_SAMPLES)) | ||
|
||
aalib: | ||
$(MAKE) -C $@ | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
cmakelibs: ps2_drivers libtiff | ||
./build-cmakelibs.sh | ||
|
||
clean-cmakelibs: | ||
rm -rf ./build | ||
|
||
expat: | ||
$(MAKE) -C $@ | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
libconfig: | ||
$(MAKE) -C $@ | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
libconfuse: | ||
rm -rf $@ | ||
git clone --depth 1 -b v3.3 https://github.com/libconfuse/libconfuse | ||
./fetch.sh v3.3 https://github.com/libconfuse/libconfuse | ||
cd $@ && ./autogen.sh | ||
cd $@ && CFLAGS_FOR_TARGET="-G0 -O2 -gdwarf-2 -gz" ./configure --host=mips64r5900el-ps2-elf --prefix=${PS2SDK}/ports --disable-shared --disable-examples | ||
$(MAKE) -C $@ all | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
libid3tag: cmakelibs | ||
$(MAKE) -C $@ all | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
libjpeg_ps2_addons: cmakelibs | ||
$(MAKE) -C $@ all | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
libmad: cmakelibs | ||
$(MAKE) -C $@ all | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
libtap: | ||
rm -rf $@ | ||
git clone --depth 1 https://github.com/ps2dev/libtap | ||
./fetch.sh master https://github.com/ps2dev/libtap | ||
$(MAKE) -C $@ -f Makefile.PS2 all | ||
$(MAKE) -C $@ -f Makefile.PS2 install | ||
$(MAKE) -C $@ -f Makefile.PS2 clean | ||
|
||
clean-libtap: | ||
$(MAKE) -C libtap -f Makefile.PS2 clean | ||
|
||
libtiff: | ||
$(MAKE) -C $@ all | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
lua: | ||
rm -rf $@ | ||
git clone --depth 1 -b ee-v5.4.6 https://github.com/ps2dev/lua | ||
./fetch.sh ee-v5.4.6 https://github.com/ps2dev/lua | ||
$(MAKE) -C $@ all platform=PS2 | ||
$(MAKE) -C $@ install platform=PS2 | ||
$(MAKE) -C $@ clean platform=PS2 | ||
|
||
clean-lua: | ||
$(MAKE) -C lua clean platform=PS2 | ||
|
||
sample-lua: | ||
$(MAKE) -C lua sample platform=PS2 | ||
|
||
# depends on SjPCM sound library | ||
madplay: cmakelibs libid3tag libmad | ||
$(MAKE) -C $@ all | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
# depends on dream2gl and ps2Perf | ||
# Broken | ||
ode: | ||
$(MAKE) -C $@ | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
ps2_drivers: | ||
rm -rf $@ | ||
git clone --depth 1 -b 1.6.2 https://github.com/fjtrujy/ps2_drivers | ||
./fetch.sh 1.6.2 https://github.com/fjtrujy/ps2_drivers | ||
$(MAKE) -C $@ all | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
ps2stuff: | ||
rm -rf $@ | ||
git clone --depth 1 https://github.com/ps2dev/ps2stuff | ||
./fetch.sh master https://github.com/ps2dev/ps2stuff | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
ps2gl: ps2stuff | ||
rm -rf $@ | ||
git clone --depth 1 https://github.com/ps2dev/ps2gl | ||
./fetch.sh master https://github.com/ps2dev/ps2gl | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
$(MAKE) -C $@/glut install | ||
$(MAKE) -C $@/glut clean | ||
|
||
$(MAKE) -C $@/glut install | ||
|
||
clean-ps2gl: | ||
$(MAKE) -C ps2gl clean | ||
$(MAKE) -C ps2gl/glut clean | ||
|
||
romfs: | ||
$(MAKE) -C $@ | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
sdl: cmakelibs | ||
$(MAKE) -C $@ | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
sdlgfx: sdlimage | ||
$(MAKE) -C $@ | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
sdlimage: cmakelibs libtiff sdl | ||
$(MAKE) -C $@ | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
sdlmixer: sdl | ||
$(MAKE) -C $@ | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
sdlttf: sdl cmakelibs | ||
$(MAKE) -C $@ | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
SIOCookie: | ||
rm -rf $@ | ||
git clone --depth 1 -b v1.0.4 https://github.com/israpps/SIOCookie | ||
./fetch.sh v1.0.4 https://github.com/israpps/SIOCookie | ||
$(MAKE) -C $@ all | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
unzip: cmakelibs | ||
$(MAKE) -C $@ | ||
$(MAKE) -C $@ install | ||
$(MAKE) -C $@ clean | ||
|
||
sample: aalib sdl sdlgfx sdlmixer lua ode romfs | ||
$(MAKE) -C aalib sample | ||
$(MAKE) -C sdl sample | ||
$(MAKE) -C sdlgfx sample | ||
$(MAKE) -C sdlmixer sample | ||
$(MAKE) -C lua sample platform=PS2 | ||
# Broken samples | ||
# $(MAKE) -C ode sample | ||
# $(MAKE) -C romfs sample |
Oops, something went wrong.