Path: utzoo!attcan!lsuc!maccs!johns From: johns@maccs.dcss.mcmaster.ca (Conan the Barbarian) Newsgroups: comp.sys.atari.st Subject: Re: lattice c 5.0 Message-ID: <2788BEE3.19536@maccs.dcss.mcmaster.ca> Date: 7 Jan 91 18:33:07 GMT References: <19914.1113.4481@canrem.uucp> Organization: McMaster University, Hamilton, Ontario, Canada Lines: 57 In article <19914.1113.4481@canrem.uucp> "tellabs canada" 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