diff --git a/contrib/README.txt b/contrib/README.txt deleted file mode 100644 index a4df444..0000000 --- a/contrib/README.txt +++ /dev/null @@ -1,16 +0,0 @@ -This directory contains contibutions that are not tested or maintained -as part of the TRE project but may still be useful. (In some cases we -have no way at all to test these, so there is no guarantee they will -be up to date or work at all.) - - ps3 - a quick PS3 port of the TRE library, contributed by "bucanero" - on 2021/03/25. - - Requirements: - - open-source ps3 toolchain - - open-source PSL1GHT SDK - - Build and install: - - move up from the contrib directory to the main TRE directory - - from the main TRE directory: - make -f ps3/Makefile install diff --git a/contrib/ps3/Makefile b/contrib/ps3/Makefile deleted file mode 100644 index bf610b5..0000000 --- a/contrib/ps3/Makefile +++ /dev/null @@ -1,101 +0,0 @@ -#--------------------------------------------------------------------------------- -# Clear the implicit built in rules -#--------------------------------------------------------------------------------- -.SUFFIXES: -#--------------------------------------------------------------------------------- - -ifeq ($(strip $(PSL1GHT)),) -$(error "Please set PSL1GHT in your environment. export PSL1GHT=") -endif - -include $(PSL1GHT)/ppu_rules - - - -#--------------------------------------------------------------------------------- -ifeq ($(strip $(PLATFORM)),) -#--------------------------------------------------------------------------------- -export BASEDIR := $(CURDIR) -export DEPS := $(BASEDIR)/deps -#export LIBS := $(BASEDIR)/lib - -#--------------------------------------------------------------------------------- -else -#--------------------------------------------------------------------------------- - -export LIBDIR := $(LIBS)/$(PLATFORM) -export DEPSDIR := $(DEPS)/$(PLATFORM) - -#--------------------------------------------------------------------------------- -endif -#--------------------------------------------------------------------------------- - -TARGET := libtre -BUILD := build -SOURCE := lib -INCLUDE := ps3 -DATA := data -LIBS := - -MACHDEP := -DBIGENDIAN -DHAVE_CONFIG_H -CFLAGS += -O2 -Wall -mcpu=cell $(MACHDEP) -fno-strict-aliasing $(INCLUDES) - -LD := ppu-ld - -ifneq ($(BUILD),$(notdir $(CURDIR))) - -export OUTPUT := $(CURDIR)/$(TARGET) -export VPATH := $(foreach dir,$(SOURCE),$(CURDIR)/$(dir)) \ - $(foreach dir,$(DATA),$(CURDIR)/$(dir)) -export BUILDDIR := $(CURDIR)/$(BUILD) -export DEPSDIR := $(BUILDDIR) - -CFILES := $(foreach dir,$(SOURCE),$(notdir $(wildcard $(dir)/*.c))) -CXXFILES := $(foreach dir,$(SOURCE),$(notdir $(wildcard $(dir)/*.cpp))) -SFILES := $(foreach dir,$(SOURCE),$(notdir $(wildcard $(dir)/*.S))) -BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.bin))) -VCGFILES := $(foreach dir,$(SOURCE),$(notdir $(wildcard $(dir)/*.vcg))) -VSAFILES := $(foreach dir,$(SOURCE),$(notdir $(wildcard $(dir)/*.vsa))) - - -export OFILES := $(CFILES:.c=.o) \ - $(CXXFILES:.cpp=.o) \ - $(SFILES:.S=.o) \ - $(BINFILES:.bin=.bin.o) \ - $(VCGFILES:.vcg=.vcg.o) \ - $(VSAFILES:.vsa=.vsa.o) - -export BINFILES := $(BINFILES:.bin=.bin.h) -export VCGFILES := $(VCGFILES:.vcg=.vcg.h) -export VSAFILES := $(VSAFILES:.vsa=.vsa.h) - -export INCLUDES = $(foreach dir,$(INCLUDE),-I$(CURDIR)/$(dir)) \ - -I$(CURDIR)/$(BUILD) -I$(PSL1GHT)/ppu/include -I$(PORTLIBS)/include - -.PHONY: $(BUILD) install clean shader - -$(BUILD): - @[ -d $@ ] || mkdir -p $@ - @make --no-print-directory -C $(BUILD) -f $(CURDIR)/ps3/Makefile - -install: $(BUILD) - @echo Copying... - @[ -d $(PORTLIBS)/include/tre ] || mkdir -p $(PORTLIBS)/include/tre - @cp -frv include/tre/tre.h $(PORTLIBS)/include/tre - @cp -frv ps3/tre-config.h $(PORTLIBS)/include/tre - @cp -frv $(TARGET).a $(PORTLIBS)/lib - @echo lib installed! -clean: - @echo Clean... - @rm -rf $(BUILD) $(OUTPUT).elf $(OUTPUT).self $(OUTPUT).a - -else - -DEPENDS := $(OFILES:.o=.d) - -$(OUTPUT).a: $(OFILES) -$(OFILES): $(BINFILES) $(VCGFILES) $(VSAFILES) - --include $(DEPENDS) - -endif diff --git a/contrib/ps3/config.h b/contrib/ps3/config.h deleted file mode 100644 index 49cfbf6..0000000 --- a/contrib/ps3/config.h +++ /dev/null @@ -1,3 +0,0 @@ -/* lib/config.h. */ - -#define TRE_REGEX_T_FIELD value diff --git a/contrib/ps3/tre-config.h b/contrib/ps3/tre-config.h deleted file mode 100644 index c7c2b12..0000000 --- a/contrib/ps3/tre-config.h +++ /dev/null @@ -1,52 +0,0 @@ -/* tre-config.h. This file defines all compile time definitions - that are needed in `regex.h' for Win32. */ - -/* Define to 1 if you have `alloca', as a function or macro. */ -#define HAVE_ALLOCA 1 - -/* Define to 1 if you have and it should be used (not on Ultrix). - */ -#define HAVE_ALLOCA_H 1 - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_LIBUTF8_H */ - -/* Define to 1 if the system has the type `reg_errcode_t'. */ -/* #undef HAVE_REG_ERRCODE_T */ - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_TYPES_H 1 - -/* Define to 1 if you have the header file. */ -//#define HAVE_WCHAR_H 1 - -/* Define if you want to enable approximate matching functionality. */ -#define TRE_APPROX 1 - -/* Define to enable multibyte character set support. */ -#define TRE_MULTIBYTE 1 - -/* Define to the absolute path to the system regex.h */ -/* #undef TRE_SYSTEM_REGEX_H_PATH */ - -/* Define if you want TRE to use alloca() instead of malloc() when allocating - memory needed for regexec operations. */ -#define TRE_USE_ALLOCA 1 - -/* Define to include the system regex.h from TRE regex.h */ -/* #undef TRE_USE_SYSTEM_REGEX_H */ - -/* Define to enable wide character (wchar_t) support. */ -//#define TRE_WCHAR 1 - -/* TRE version string. */ -#define TRE_VERSION "0.8.0" - -/* TRE version level 1. */ -#define TRE_VERSION_1 0 - -/* TRE version level 2. */ -#define TRE_VERSION_2 8 - -/* TRE version level 3. */ -#define TRE_VERSION_3 0