FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Adding new Obj files for Harbour, bcc7
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Adding new Obj files for Harbour, bcc7
Posted: Fri Jan 01, 2016 10:40 PM

I am new to using Harbour and the newest version of FiveWin. How do I add to the Buildh.bat to add additional source files to my project. Additionally if I wanted to create my own lib how would that be done. Are there examples, I might have missed them.

Thanks,

Byron ...

Thanks,

Byron Hopp

Matrix Computer Services
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Adding new Obj files for Harbour, bcc7
Posted: Fri Jan 01, 2016 11:40 PM
Byron,

If you are going to use several PRGs to build your app then you should consider to use a makefile.

Here you have a working one that you can easily modify:
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=29271&p=165093

I think that we have not published a makefile to build a library using Borland. I am going to
prepare an example.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Adding new Obj files for Harbour, bcc7
Posted: Sat Jan 02, 2016 08:26 AM
Borland makefile example to build a library

go.bat
Code (fw): Select all Collapse
c:\bcc7\bin\make -fmylib.mak


mylib.mak
Code (fw): Select all Collapse
PRG =    \
ONE.PRG  \
TWO.PRG  \
THREE.PRG 

PROJECT    : mylib.lib

mylib.lib : $(PRG:.PRG=.OBJ)

.PRG.OBJ:
   c:\harbour\bin\harbour $< /n /ic:\fwh\include /ic:\harbour\include
   c:\bcc7\bin\bcc32 -c -tWM -Ic:\harbour\include -o$& $&.c
   c:\bcc7\bin\tlib mylib.lib -+$&.obj /0 /P64,,
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Re: Adding new Obj files for Harbour, bcc7
Posted: Sun Jan 03, 2016 01:31 AM

Thanks for you assistance.
Worked great...

Thanks,

Byron Hopp

Matrix Computer Services

Continue the discussion