Ok, this is it
RC_RULE = $(RC) $(RCFLAGS) $(HB_RCFLAGS) $(HB_USER_RESFLAGS) $(RC_OUT) $< $@ so, .res file gets made into obj\os2\gcc subfolder. Now, lets see how to make it show when browsing a folder containing hbrun.exe Maurilio. Maurilio Longo wrote: > Viktor, > > with these rules inside os2\gcc.mk it build a .res file using rc.exe > > 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. > > Maurilio. > > > vszak...@users.sourceforge.net wrote: >> Revision: 14258 >> >> http://harbour-project.svn.sourceforge.net/harbour-project/?rev=14258&view=rev >> Author: vszakats >> Date: 2010-03-29 20:36:08 +0000 (Mon, 29 Mar 2010) >> >> Log Message: >> ----------- >> 2010-03-29 22:34 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) >> * utils/hbmk2/hbmk2.prg >> ! Fixed to always convert pathseps in icon filename to forward >> slashes. >> >> * utils/hbrun/hbrun.rc >> * Cleaned. Now back to original commit with purely forward >> slashes. Should see if this works with OS/2 GCC windres. >> >> Modified Paths: >> -------------- >> trunk/harbour/ChangeLog >> trunk/harbour/utils/hbmk2/hbmk2.prg >> trunk/harbour/utils/hbrun/hbrun.rc >> >> >> This was sent by the SourceForge.net collaborative development platform, the >> world's largest Open Source development site. >> _______________________________________________ >> Harbour mailing list (attachment size limit: 40KB) >> Harbour@harbour-project.org >> http://lists.harbour-project.org/mailman/listinfo/harbour >> > -- __________ | | | |__| Maurilio Longo |_|_|_|____| farmaconsult s.r.l. _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour