[teklib-general] teklib: Playstation 2 build configuration improved and completed

Timm S. Mueller tmueller at neoscientists.org
Mon Apr 7 03:41:39 CEST 2008


details:   http://hg.teklib.org/teklib/rev/641afe54cfd8
changeset: 166:641afe54cfd8
user:      Timm S. Mueller <tmueller at neoscientists.org>
date:      Sat Apr 05 07:38:50 2008 +0200
description:
Playstation 2 build configuration improved and completed

diffs (truncated from 386 to 100 lines):

diff -r 8eb5c4a30807 -r 641afe54cfd8 build/config/ps2_ps2_gcc.tmk
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build/config/ps2_ps2_gcc.tmk	Sat Apr 05 07:38:50 2008 +0200
@@ -0,0 +1,275 @@
+
+[!-------------------------------------------------------------------------
+
+	$Id: config_ps2.tmk,v 1.10 2006/12/30 04:22:07 tmueller Exp $
+	build/ps2_ps2_gcc.tmk - tmkmf configuration file for Playstation 2
+
+--------------------------------------------------------------------------]
+
+[body name="help"]
+	help:
+		\t at echo "==================================================================="
+		\t at echo "=="
+		\t at echo "== ps2_gcc supported builds"
+		\t at echo "== --------------------------"
+		\t at echo "== all ............... build linklibs, modules, executables"
+		\t at echo "== libs .............. build linklibs"
+		\t at echo "== modules ........... build shared modules"
+		\t at echo "== tools ............. build executables"
+		\t at echo "== install ........... install modules"
+		\t at echo "== clean ............. clean"
+		\t at echo "== make .............. regenerate makefiles"
+		\t at echo "== help .............. this help"
+		\t at echo "=="
+		\t at echo "==================================================================="
+[/body]
+
+[body name="config"]
+
+	#
+	#\tTEKlib ps2_ps2_gcc makefile
+	#\tAutomatically generated with tmkmf TEKlib Makefile generator
+	#
+
+	PLATFORM	= ps2
+	HOST        = ps2
+
+	PARENT      = ../
+	DEF			= -DTEKLIB -DTSYS_PS2 $(EXTRADEFS)
+	WARN		= -Wall
+
+	MKDIR       = mkdir -p
+	RM          = rm
+	RMDIR       = rm -R
+	CAT         = cat
+	ECHO        = echo
+
+	PREFIX	= ee-
+	AS 		= $(PREFIX)as
+	CC		= $(PREFIX)gcc
+	LD		= $(PREFIX)gcc
+	DVPASM	= $(PREFIX)dvp-as
+	AR      = $(PREFIX)ar r
+	RANLIB  = $(PREFIX)ranlib
+	STRIP   = $(PREFIX)strip
+
+	CFLAGS 	= -G0 -mips3 -mcpu=r5900 -D_EE -ffreestanding -fno-builtin \
+				-mlong64 -mhard-float -mno-abicalls -EL
+
+	LIBPREFIX    = lib
+	LIBSUFFIX    = a
+	MODSUFFIX    = so
+
+	[switch]
+		[case config="_gcc_release"]
+			OPT 	= -O2
+		[/case]
+		[case config="_gcc_debug"]
+			OPT 	= -O1
+			DEBUG	= -DTDEBUG=5 -g
+		[/case]
+		[default]
+			OPT 	= -O2
+			DEBUG	= -DTDEBUG=10 -g
+		[/default]
+	[/switch]
+
+	#
+
+	[embed body="help"/]
+
+	#
+
+	INCL		 = -I$(TEKLIB) -I. -I./include -I$(PS2DEV)/newlib/include -I$(PS2LIB)/common/include -I$(PS2LIB)/ee/include
+	OBJDIR       = build/obj_$(HOST)
+	TEKSYSDIR    = /usr/local/tek/
+	MODINSTDIR   = $(TEKSYSDIR)mod
+
+	LIBDIR       = $(TEKLIB)/lib/$(HOST)
+	BINDIR       = $(TEKLIB)/bin/$(HOST)
+	MODDIR       = $(BINDIR)/mod
+	SRCDIR       = $(TEKLIB)/lib/$(HOST)/src
+
+[/body]
+
+[body name="teklib"]
+[/body]


More information about the teklib-general mailing list