Hi Marek, > Can we bulid with hbmk and above macro, Linux executable aplication > format (ELF ?) on Windows Platform ?
Generally it's possible, it all depends on the capabilities of the C compiler on your platform. Notice that hbmk is a simple wrapper which helps you create Harbour executables using the _compiler tools available on your host system_. hbmk itself doesn't create any kind of object files or binaries. This means, if the C compiler supports this, hbmk may also support it. If not, hbmk won't help us. What you ask for is cross compilation. I haven't heard of this specific scenario, maybe OpenWatcom supports it, I don't know. Since hbmk is pretty new and even straight compilation isn't tested on all platforms / compilers, I haven't yet tried to add features to specifically aid cross-compilation, but it should happen eventually. Some obvious cases are already drafted, but actual support hasn't been added yet (win / poccce for example). I'll most probably replicate the method already used in Harbour builds, by providing a way to point to the target build Harbour installation. Here's a non-extensive list of cross-compilations known to exist/work: - win32 executable on linux + mingw - win64 executable on win + msvc (already working, needs compiler setup only) - win64 executable on win + pocc64 - wince executable on linux + mingw - wince executable on win + poccce - wince executable on win + mingwce - wince executable on win + msvce I invite everyone to peek into hbmk.prg sources and try adding support for combinations we don't yet have. Brgds, Viktor On Mon, Feb 16, 2009 at 5:12 PM, Horodyski Marek (PZUZ) < m.horody...@pzuzycie.com.pl> wrote: > >-----Original Message----- > >From: vszak...@users.sourceforge.net > >[mailto:vszak...@users.sourceforge.net] > >Sent: Sunday, February 15, 2009 10:27 PM > >To: harbour@harbour-project.org > >Subject: [Harbour] SF.net SVN: harbour-project:[10280] trunk/harbour > > > >Revision: 10280 > > [...] > > > * contrib/hbbtree/tests/hbmk.bat > > * contrib/hbbtree/tests/test.prg > > * Cleaned hbct dependency. > > Viktor, in cguide.hlp file from OW 1.8 we can read : > > >>>>> > The macros described below may be used to identify the target system for > which the application is being compiled. (Note: In several places in > the following text, a pair of underscore characters appears as __ which > resembles a single, elongated underscore.) > > The Open Watcom C/C++ compilers support both 16-bit and 32-bit > application development. The following macros are defined for 16-bit > and 32-bit target systems. > > 16-bit 32-bit > ======== ======== > [...] > _M_IX86 _M_IX86 > Notes: > 1. The __X86__ identifies the target as an Intel environment. > 2. The __I86__, M_I86 and _M_I86 macros identify the target as a > 16-bit Intel environment. > 3. The __386__, M_I386 and _M_I386 macros identify the target as a > 32-bit Intel environment. > 4. The _M_IX86 macro is identically equal to 100 times the > architecture compiler option value (/0, /1, /2, /3, /4, /5, etc.). If > "/5" (Pentium instruction timings) was specified as a compiler option, > then the value of _M_IX86 would be 500. > The Open Watcom C/C++ compilers support application development for a > variety of operating systems. The following macros are defined for > particular target operating systems. > > Target Macros > ====== ====================================== > DOS __DOS__, _DOS, MSDOS > [...] > NT __NT__ > Windows __WINDOWS__, _WINDOWS, __WINDOWS_386__ > Linux __LINUX__, __UNIX__ > Notes: > 1. The __DOS__, _DOS and MSDOS macros are defined when the build > target is "DOS" (16-bit DOS or 32-bit extended DOS). > [...] > 9. The __LINUX__ and __UNIX__ macros are defined when the build > target is "LINUX" (32-bit Linux). > >>>>> > > My ask is : > Can we bulid with hbmk and above macro, Linux executable aplication > format (ELF ?) on Windows Platform ? > > Regards, > Marek Horodyski > _______________________________________________ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour >
_______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour