Peter, What does make file do? What other things can You do with it? Andre -----Original Message----- Peter L. Peres wrote: > GNU make is free. Also search simtel archives. I think that NMAKE is not > such a good idea.... Hm, has this mail been on it's way for a day or so ? Or maybe you just didn't check the later posts on the subject. :-) Anyway, I'v got a working make using the make from gnuwin. And someday I might even understand what I'm doing :-) Obviously there are a way to have it working without adding a "all:" goal !? My current makefile looks like this : ------------------------------------------------------------- prepic = c:\embedinc\com\prepic asm = c:\Program\MPLAB IDE\MCHIP_Tools\MPASMWIN.EXE link = c:\Program\MPLAB IDE\MCHIP_Tools\MPLINK.EXE D01_objs = d01_strt.o d01_init.o d01_cmd.o d01_intr.o \ d01_main.o d01_port.o d01_s16.o d01_uart.o %.asm : %.aspic $(prepic) $< $@ %.inc : %.ins.aspic $(prepic) $< $@ %.o : %.asm $(asm) /c- /q /o$@ $< d01.hex : $(D01_objs) echo "FILES $(D01_objs)" > temp.lkr $(link) D01.lkr temp.lkr /m d01.map /o $@ d01_strt.o : d01.inc d01lib.inc [one similar line per "o" file...] ------------------------------------------------------------- The call to make looks like this : ------------------------------------------------------------- @echo off rem rem BUILD_D01 rem rem Build the D01 firmware from the D01 library. rem Using rem cd c:\embedinc\src\D01 copy ..\..\source\D01\*.aspic *.* copy ..\..\source\D01\*.lkr *.* copy ..\..\source\D01\makefile2 *.* make -i -r -f makefile ------------------------------------------------------------- (Yes, I know the "makefile" filename is the default...) I can delete all files in the src directory and all with be rebuild from scratch. Jan-Erik. -----Original Message----- From: Peter L. Peres [mailto:plp@ACTCOM.CO.IL] Sent: den 19 juli 2003 17:16 To: PICLIST@MITVMA.MIT.EDU Subject: [PIC]: Format of makefile ? > Anyone know of any stand-alone, good make utility ? GNU make is free. Also search simtel archives. I think that NMAKE is not such a good idea. M$ has a way of doing things their own way (and not documenting more than 50% of it). Just my opinion. I use GNU make (the DJGPP version) to build under DOS for mcs51 and pic. Also GNU make under Linux for same. It will work in windows. Another make utility is from Borland. If you have any one of their compiler packages then you have it. Anyway in your example, there is only one goal (by default, the first one). So to make them both add a goal like: all: first_product 2nd_product ... at the start of the makefile Peter -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body