home *** CD-ROM | disk | FTP | other *** search
/ CICA 1994 September / CICA_Shareware_for_Windows_Walnut_Creek_September_1994.iso / _bbs / file_id / makefile < prev   
Makefile  |  1994-08-03  |  2KB  |  81 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. #all: c.exe get_area.exe makemenu.exe printh.exe find_diz.exe
  35. all: find_diz.exe
  36.  
  37. find_diz.exe: find_diz.obj
  38.     bcc ${CFLAGS} find_diz.obj
  39.     
  40. maxmount.exe: maxmount.obj
  41.     bcc ${CFLAGS} maxmount.obj
  42.     
  43. printh.exe: printh.obj
  44.     bcc ${CFLAGS} printh.obj
  45.     
  46. c.exe: convert.obj
  47.     bcc ${CFLAGS} -ec convert.obj
  48.     
  49. gamedisc.exe: gamedisc.obj
  50.     bcc ${CFLAGS} -ega gamedisc.obj
  51.  
  52. get_area.exe: get_area.obj
  53.     bcc ${CFLAGS} get_area.obj
  54.  
  55. makemenu.exe: makemenu.obj
  56.     bcc ${CFLAGS} makemenu.obj
  57.  
  58. WHERE= m:\_bbs
  59.  
  60. install: convert.exe get_area.exe
  61.     copy convert.exe ${WHERE}
  62.     copy get_area.exe ${WHERE}
  63.     copy convert.exe ${WHERE}\c.exe
  64.     copy convert.exe k:\bin_disc
  65.  
  66. # just the source in the directory (the define 'CSRC')
  67. depend: ${CSRC}
  68.     del makedep
  69.     ! (cpp ${CFLAGS} $?; makedep $? qsort; del *.i)
  70.     makedep -e
  71.     del makedep
  72.  
  73. # A universally useful target.
  74. clean:
  75.         rm *.bak *.map *.obj make makedep autofile.lan *.i sym.dat logfile
  76.       ds n
  77.  
  78. # anything after this line will disappear.
  79. # DO NOT DELETE THIS LINE -- make depend uses it
  80. ###
  81.