tellabs_canada@canrem.uucp (tellabs canada) (01/05/91)
Hello all, Only several days ago I purchased Lattice C v5.0. I would like to move all of my future projects over to this compiler system but I'm more than just a little uncomfortable without a make utility (Lattice doesn't include one). I have both MWC and Laser C make (don't ask me why I own both - it's a long story :) and I realize that I could use these with Lattice, but I'm no make guru, and I forsee a long and troublesome time ahead as I try to get either of these makes to work with Lattice. Has anyone successfully modified either of these makes to run with Lattice 5.0? If so, could you show me how? Thanks in advance, Mark -- Canada Remote Systems. Toronto, Ontario NorthAmeriNet Host
johns@maccs.dcss.mcmaster.ca (Conan the Barbarian) (01/08/91)
In article <19914.1113.4481@canrem.uucp> "tellabs canada" <tellabs_canada@canrem.uucp> writes: >Hello all, > >Only several days ago I purchased Lattice C v5.0. I would like to move >all of my future projects over to this compiler system but I'm more than >just a little uncomfortable without a make utility (Lattice doesn't >include one). >[...] I have Sozobon C, and there is a make tool included in that archive that I use. I use EDC.PRG and set up my environment variables from there. Once that is done I use one of the tool slots to call MAKE.TTP when the right key is pressed, and of course I put MAKE.TTP in my LC\BIN directory. When that is done, I can just press ALT-KEYPAD# to call make. You also have to change the current directory under the file menu title to the directory the makefile you want to use is in. The following could be a typical makefile. ------------------------------------------------------------------- CC=LC.TTP EXE=dvert2 OBJ=main.o gui.o DEBUG= CFLAGS=-b1 -ca -cf $(DEBUG) -ma -ms -r1 -rs -w $(EXE).prg: $(OBJ) CLINK.TTP WITH dvert2.LNK # $(CC) $(CFLAGS) -Lgv $(OBJ) main.o: globals.h dvert2.h gui.o: globals.h gui.h sel3.h .c.o: $(CC) $(CFLAGS) $*.c .s.o: $(CC) $(CFLAGS) $*.s --------------------------------------------------------------------- A good idea would probably be to use another macro like LD=CLINK.TTP WITH Line number 9 above is commented out. (The one that begins with the hash ( "#" ) symbol) The first time I use the makefile, I remove the hash symbol, put a hash symbol at the beginning of line 8, and call make. This will create a .lnk file, and then I put the hash symbol at line 9 and remove it from line 8. I hope this helps. I'm doing this from the top of my head, so if anythings is unclear feel free to ask. -- John Schmitt johns@maccs.dcss.mcmaster.ca ...!unet!utai!utgpu!maccs!johns