home *** CD-ROM | disk | FTP | other *** search
/ CICA 1992 July / Cica_July92.cdr / bbs / pcbtool / makefile < prev    next >
Makefile  |  1992-06-29  |  2KB  |  57 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=        to_pcb.obj
  35. CSRC=     to_pcb.c
  36.  
  37. 2pcb: ${OBJS}
  38.     >foo $(SETARGV) ${OBJS},2pcb,2pcb,${LIBS},
  39.     tlink /m /l /d /c /v @foo
  40.     del foo
  41.  
  42. # just the source in the directory (the define 'CSRC')
  43. depend: ${CSRC}
  44.     del makedep
  45.     ! (cpp ${CFLAGS} $?; makedep $? qsort; del *.i)
  46.     makedep -e
  47.     del makedep
  48.  
  49. # A universally useful target.
  50. clean:
  51.         rm *.bak *.map *.obj make makedep autofile.lan *.i
  52.       ds n
  53.  
  54. # anything after this line will disappear.
  55. # DO NOT DELETE THIS LINE -- make depend uses it
  56. ###
  57.