Added a release rule in Makefile.os4 and a new README about this OS4 release.
This commit is contained in:
parent
9725374352
commit
e29be5e0a1
|
@ -0,0 +1,2 @@
|
|||
*.lha
|
||||
|
37
Makefile.os4
37
Makefile.os4
|
@ -65,7 +65,7 @@ CFLAGS := $(MCRT) $(INCPATH) -Wall -Wwrite-strings -Wno-unused-variable -Wno-unu
|
|||
|
||||
.PHONY: all all-before all-after clean clean-custom realclean
|
||||
|
||||
all: all-before libpcre.a libpcre-posix.a pcretest pcregrep all-after
|
||||
all: all-before libpcre.a libpcre-posix.a all-after
|
||||
|
||||
all-before:
|
||||
# You can add rules here to execute before the project is built
|
||||
|
@ -73,6 +73,8 @@ all-before:
|
|||
all-after:
|
||||
# You can add rules here to execute after the project is built
|
||||
|
||||
tests: pcretest pcregrep
|
||||
|
||||
clean: clean-custom
|
||||
@echo "Cleaning compiler objects..."
|
||||
@rm -f $(libpcre_OBJ) $(libpcre-posix_OBJ) $(pcretest_OBJ) $(pcregrep_OBJ) $(pcredemo_OBJ)
|
||||
|
@ -223,6 +225,39 @@ runtests: libpcre.a libpcre-posix.a pcretest pcregrep
|
|||
sh RunTest
|
||||
sh RunGrepTest
|
||||
|
||||
release:
|
||||
@echo "Create release folders..."
|
||||
@mkdir -p release/local/newlib/lib release/local/clib2/lib release/local/Documentation/pcre release/local/common/include
|
||||
|
||||
@echo "Building newlib based libraries..."
|
||||
@make -f Makefile.os4 all
|
||||
@cp libpcre.a release/local/newlib/lib/
|
||||
@cp libpcre-posix.a release/local/newlib/lib/
|
||||
|
||||
@echo "Clean build and libraries files..."
|
||||
@make -f Makefile.os4 cleanall
|
||||
|
||||
@echo "Building clib2 based libraries..."
|
||||
@make -f Makefile.os4 all USE_CLIB2=yes
|
||||
@cp libpcre.a release/local/clib2/lib/
|
||||
@cp libpcre-posix.a release/local/clib2/lib/
|
||||
|
||||
@echo "Copy the necessary files..."
|
||||
@cp pcre.h release/local/common/include/
|
||||
@cp pcreposix.h release/local/common/include/
|
||||
@cp COPYING release/local/Documentation/pcre/
|
||||
@cp LICENCE release/local/Documentation/pcre/
|
||||
@cp README release/local/Documentation/pcre/
|
||||
@cp README-OS4.md release/local/Documentation/pcre/
|
||||
|
||||
@echo "Clean build and libraries files..."
|
||||
@make -f Makefile.os4 cleanall
|
||||
|
||||
@echo "Creating the lha release file..."
|
||||
@rm -f pcre.lha
|
||||
@lha -aeqr3 a pcre.lha release/
|
||||
|
||||
@rm -rf release
|
||||
|
||||
###################################################################
|
||||
|
||||
|
|
|
@ -0,0 +1,42 @@
|
|||
PCRE (Perl-compatible regular expression library)
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
This is a port of PCRE 8.45 by Philip Hazel for AmigaOS 4, as found at the
|
||||
Sourceforge repository (https://sourceforge.net/projects/pcre/files/pcre/)
|
||||
|
||||
More information about PCRE can be found at its official website
|
||||
at https://www.pcre.org
|
||||
|
||||
In the archive both newlib and clib2 libraries are included. It has been
|
||||
tested with various applications, but in case you find issues please
|
||||
contact me.
|
||||
|
||||
This release can replace the old 6.4 from Henning Nielsen Lund, but it
|
||||
might not work well with your application, because of the many changes
|
||||
happened the last 10+ years.
|
||||
|
||||
To install it into your AmigaOS 4 SDK installation, just extract all the
|
||||
files in the SDK: path.
|
||||
|
||||
Compile
|
||||
--------------------------
|
||||
The source and the changes I did can be found at my personale repository
|
||||
https://git.walkero.gr/walkero/pcre
|
||||
|
||||
You can compile it using the Makefile.os4 file, and produce the libraries
|
||||
yourself.
|
||||
|
||||
* with newlib run:
|
||||
```bash
|
||||
make -f Makefile.os4 all
|
||||
```
|
||||
* with clib2 run:
|
||||
```bash
|
||||
make -f Makefile.os4 all USE_CLIB2=yes
|
||||
```
|
||||
|
||||
Changelog
|
||||
--------------------------
|
||||
v8.45r1 - 2022-07-31
|
||||
* First release
|
||||
|
Loading…
Reference in New Issue