On Fri, 03 Oct 2008, Szak�ts Viktor wrote: Hi Viktor,
> I've tried it, and it's still no go, as now nmake > says it doesn't know how to make "obj\vc\myfirstprg.obj". > Probably because it doesn't see any myfirstprg.c, > and, also cannot see (for some reason) that myfirstprg.c > can be generated from myfirstprg.prg. Can easily be that > I'm missing something more. I do not know MSVC NMAKE but if it supports indirect rules like GNU make then it should be able to build it. {$(OBJ_DIR)}.c{$(OBJ_DIR)}$(OBJEXT):: $(CC) $(CLIBFLAGS) -Fo$(OBJ_DIR)\ $< {$(RTL_DIR)}.prg{$(OBJ_DIR)}.c:: $(HB) $(HARBOURFLAGS) -o$(OBJ_DIR)\ $< These two rules seems to be enough for files located in RTL though I suggest to check what '::' means for NMAKE. Maybe you should use single ':' because '::' means direct rule. Of course each rule like: {$(RTL_DIR)}.prg{$(OBJ_DIR)}.c:: $(HB) $(HARBOURFLAGS) -o$(OBJ_DIR)\ $< should be repeated for other directories. Maybe NMAKE can also support multiple directories in such pattern, f.e.: {$(RTL_DIR),$(PP_DIR)}.prg{$(OBJ_DIR)}.c:: $(HB) $(HARBOURFLAGS) -o$(OBJ_DIR)\ $< or some type of wildcards. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour