Adding new Obj files for Harbour, bcc7

Adding new Obj files for Harbour, bcc7

Postby byron.hopp » 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
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: Adding new Obj files for Harbour, bcc7

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42076
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Adding new Obj files for Harbour, bcc7

Postby Antonio Linares » Sat Jan 02, 2016 8:26 am

Borland makefile example to build a library

go.bat
Code: Select all  Expand view
c:\bcc7\bin\make -fmylib.mak


mylib.mak
Code: Select all  Expand view
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
User avatar
Antonio Linares
Site Admin
 
Posts: 42076
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Adding new Obj files for Harbour, bcc7

Postby byron.hopp » Sun Jan 03, 2016 1:31 am

Thanks for you assistance.
Worked great...
Thanks,
Byron Hopp
Matrix Computer Services
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 110 guests