home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / lisp / interpre / xlispplu / sources / makegcc < prev    next >
Text File  |  1992-01-14  |  1KB  |  42 lines

  1. # The order to search for rules and files is specified by .SUFFIXES
  2. .SUFFIXES : .o .c .s
  3.  
  4. # DEFAULT RULES
  5. # To produce a `.o' file from a `.s' file using gcc.
  6. .s.o:; gcc -c $(AFLAGS) $*.s
  7.  
  8. # To produce a `.o' file from a `.c' file using gcc. 
  9. .c.o:; gcc -c $(CFLAGS) $*.c
  10.  
  11. OFILES=xlisp.o xlbfun.o xlcont.o xldbug.o xldmem.o xleval.o \
  12. xlfio.o xlglob.o xlimage.o xlinit.o xlio.o xljump.o xllist.o \
  13. xlmath.o xlobj.o xlpp.o xlprin.o xlread.o xlstr.o xlsubr.o \
  14. xlsym.o xlsys.o xlseq.o gccstuff.o gccasm.o xlstruct.o xlmath2.o
  15.  
  16. CFLAGS= -O -DGCC -DVMEM=1000000
  17. AFLAGS= 
  18.  
  19. # the following copy statement depends on go32 version
  20. # the 3/91 version can use stub.exe or go32.exe. Using go32.exe 
  21. #  reduces the amount of overhead in SYSTEM function.
  22. # the 2/91 version requires using go32.exe rather than stub.exe
  23. # the 1/91 version cannot do this at all (comment out copy)
  24. #  but requires copying go32.exe into xlispg.exe
  25.  
  26. xlispg.exe:    $(OFILES) xlftab.o xlispg.lnk
  27.     gcc @xlispg.lnk
  28.     nm +nu xlispg >xlispg.map
  29.     copy /b go32.exe+xlispg xlispg.exe 
  30.  
  31. #    erase xlispg
  32.  
  33. xlispg.lnk:    makegcc
  34.     >xlispg.lnk $(OFILES) xlftab.o -lm -o xlispg
  35.  
  36. xlisp.h:    xldmem.h xlftab.h
  37.     touch xlisp.h
  38.  
  39. xlftab.o:    xlisp.h osdefs.h osptrs.h
  40. $(OFILES):    xlisp.h
  41.  
  42.