Hi Maurilio,

> RC := $(HB_CCPATH)$(HB_CCPREFIX)rc
> RC_OUT := -DOS2 -r
> RC_RULE = $(RC) $(RCFLAGS) $(HB_RCFLAGS) $(HB_USER_RESFLAGS) $(RC_OUT) $<
> BUT, it builds the .res file at the same dir level of hbrun.rc and, even
> moving it inside obj\os2\gcc the final .exe has not the icon, here I fear this
> could be caused by the fact that hbrun.exe is a console app, but I'm not sure
> about this issue.
> 
> So, can you tell me how to build the correct path to hbrun.res, I mean, how to
> add obj\os2\gcc to the clean hbrun.rc file name?
> 
> $<
> 
> contains the full upward path to hbrun.rc so I have to strip all those
> ..\..\.. and add obj\$compiler\$arch or something like that.

The most important thing to check is whether gcc's linker 
can link the .res file created by rc.exe. You can verify 
this outside of our make system using a small example.

If yes, we should try to avoid -DOS2, which is a manual 
hack and should be used only if all other options are out.
For this, we need to find out what is the official way to 
detect OS/2 in .rc files.

Finally we should try to find a way to specify output file 
and avoid making local redefine of RC_RULE.

Brgds,
Viktor

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to