diff --git a/harbour/doc/statics.txt b/harbour/doc/statics.txt index 17e664cbd3..f67fef068d 100644 --- a/harbour/doc/statics.txt +++ b/harbour/doc/statics.txt @@ -27,4 +27,4 @@ _STATICS is just called once from an entire PRG from an init function named _INI You are going to see the code for all these. I just wanted to provide a clear idea about how Harbour does its magic :-) -Antonio \ No newline at end of file +Antonio diff --git a/harbour/gt.b32 b/harbour/gt.b32 new file mode 100644 index 0000000000..925b8f82f9 --- /dev/null +++ b/harbour/gt.b32 @@ -0,0 +1,38 @@ +# makefile for Borland C/C++ 32 bits +# porting gt.lib's string functions to harbour + +.path.c = source\tools +.path.h = include +.path.lib = libs\b32 +.path.obj = obj + +libs\b32\hbgt.lib : \ + ascpos.obj atdiff.obj chareven.obj charodd.obj chrcount.obj \ + chrtotal.obj charmix.obj asciisum.obj chrfirst.obj \ + strasint.obj strcount.obj strcspn.obj strdiff.obj strexpan.obj \ + strleft.obj strpbrk.obj strright.obj + +ascpos.obj : ascpos.c extend.h types.h +atdiff.obj : atdiff.c extend.h types.h +chareven.obj : chareven.c extend.h types.h +charodd.obj : charodd.c extend.h types.h +chrcount.obj : chrcount.c extend.h types.h +chrtotal.obj : chrtotal.c extend.h types.h +charmix.obj : charmix.c extend.h types.h +asciisum.obj : asciisum.c extend.h types.h +chrfirst.obj : chrfirst.c extend.h types.h +strasint.obj : strasint.c extend.h types.h +strcount.obj : strcount.c extend.h types.h +strcspn.obj : strcspn.c extend.h types.h +strdiff.obj : strdiff.c extend.h types.h +strexpan.obj : strexpan.c extend.h types.h +strleft.obj : strleft.c extend.h types.h +strpbrk.obj : strpbrk.c extend.h types.h +strright.obj : strright.c extend.h types.h + +.prg.c: + bin\b32\harbour $< /n + +.c.obj: + bcc32 -c -O2 -I.\include -o$@ $< + tlib .\libs\b32\hbgt.lib -+$@,, diff --git a/harbour/tests/working/bld32exe.bat b/harbour/tests/working/bld32exe.bat index cc7d586909..e42fe274a8 100644 --- a/harbour/tests/working/bld32exe.bat +++ b/harbour/tests/working/bld32exe.bat @@ -5,6 +5,7 @@ IF A%2 == A GOTO :NOOUTPUT echo -O2 -e%2.exe -I..\..\include ..\..\source\vm\hvm.c %1.c > b32.bc echo ..\..\libs\b32\harbour.lib ..\..\libs\b32\terminal.lib >> b32.bc +echo ..\..\libs\b32\hbgt.lib >> b32.bc bcc32 @b32.bc del b32.bc GOTO :END @@ -12,6 +13,7 @@ GOTO :END :NOOUTPUT echo -O2 -e%1.exe -I..\..\include ..\..\source\vm\hvm.c %1.c > b32.bc echo ..\..\libs\b32\harbour.lib ..\..\libs\b32\terminal.lib >> b32.bc +echo ..\..\libs\b32\hbgt.lib >> b32.bc bcc32 @b32.bc del b32.bc GOTO :END