home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 December / simtel1292_SIMTEL_1292_Walnut_Creek.iso / _bbs / makefile < prev    next >
Makefile  |  1992-12-05  |  2KB  |  59 lines

  1. MODEL= s
  2. #    -v    source level debugging
  3. #    -y    produce line number info
  4. #    -N-    (in production) turn off check for stack overflow
  5. #    -k-   (in production) turn off Standard stack frame
  6. #    -a      generate word alignment -- real win on 8086 and up
  7. #        ...would take some work to get going, though.
  8. #    -H    use precompiled headers
  9. #    -Qxxx   Memory usage control
  10. #    -p      Pascal calls
  11. #    -G    Generate for speed
  12. #    -Ox    Optimizations
  13. #    -O    jump optimization
  14. #    -O1    smallest code, = -O -Ob -Oe -k- -Z -Os 
  15. #    -O2    fastest code,  = -O -Ob -Oe -k- -Z -Og 
  16. #    -Oa    no pointer aliasing
  17. #    -Ob    remove dead code
  18. #    -Oc    common subexpressions in basic blocks only
  19. #    -Oe    global register allocation
  20. #    -Og    like c, whole functions (implies not c)
  21. #    -Oi    inline intrinsic functions (c++ only?)
  22. #    -Ol    loops into rep movsX's
  23. #    -Om    invariants
  24. #    -Op    copies of constants
  25. #    -Os    choose size
  26. #    -Ot    choose speed
  27. #    -Ov    loop induction and strength reduction
  28. OPTIMIZATION= -Ov -Ot -Op -Om -Ol -Og -Oe -Ob
  29. FLAGSBOTH=    -m${MODEL} -w -a -d -G -O -Z -M -p -K -H=sym.dat -Qx
  30. #CFLAGS=    ${OPTIMIZATION} ${FLAGSBOTH} -N
  31. #CFLAGS=    ${OPTIMIZATION} ${FLAGSBOTH} -N -v -y
  32. CFLAGS=                ${FLAGSBOTH} -N -v -y
  33.  
  34. OBJS=        convert.obj
  35. CSRC=     convert.c
  36.  
  37. now: convert
  38.  
  39. convert: ${OBJS}
  40.     >foo $(SETARGV) ${OBJS},convert,convert,${LIBS},
  41.     tlink /m /l /d /c /v @foo
  42.     del foo
  43.  
  44. # just the source in the directory (the define 'CSRC')
  45. depend: ${CSRC}
  46.     del makedep
  47.     ! (cpp ${CFLAGS} $?; makedep $? qsort; del *.i)
  48.     makedep -e
  49.     del makedep
  50.  
  51. # A universally useful target.
  52. clean:
  53.         rm *.bak *.map *.obj make makedep autofile.lan *.i sym.dat logfile
  54.       ds n
  55.  
  56. # anything after this line will disappear.
  57. # DO NOT DELETE THIS LINE -- make depend uses it
  58. ###
  59.