home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s270 / 1.ddi / PCKDD51B.EXE / A_MAKE.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-01-15  |  1.7 KB  |  33 lines

  1. REM File:  a_make.bat -- build A_DEMO.AOM from scratch
  2. REM ========== ASSEMBLE C Start-Up Routine ==========
  3. REM    X  generate cross-reference listing
  4. REM    S  put all symbols (local and global) into object module
  5. a8051 a_cstart.s03 a_cstart.lst a_cstart.r03 X S
  6. REM Replace default CSTARTUP module in the C library
  7. REM with the one assembled above.  New library will be
  8. REM at MYLIB.R03 (original library not changed).
  9. copy \c51v2\cl8051.r03  mylib.r03
  10. xlib a_make.lcl
  11. REM ========== COMPILE ==========
  12. ECHO OFF
  13. REM -o name.r03    object module                      output to name.r03
  14. REM -l name.lst    generated code listing             output to name.lst
  15. REM -a name.s03    generated assembly language source output to name.s03
  16. REM -V             verbose diagnostics
  17. REM -P             generate PROMable code
  18. REM -m1            large static memory model
  19. REM -g             enable global type checking (compile-/link-time)
  20. REM -e             enable target-dependent extensions
  21. REM -x             generate cross-reference
  22. REM -q             put mnemonics in list (merge C source into .lst file)
  23. REM -j             put static and local symbols into object debug tables
  24. REM -p88           88 lines/page in listing
  25. REM -I\c51v2\      directory to search for '#include' preprocessor directives
  26. ECHO ON
  27. c-51 -o a_hlmain.r03 -l a_hlmain.lst -a a_hlmain.s03 -V -P -m1 -g -e -x -q -j -p88 -I\c51v2\ a_hlmain.c
  28. c-51 -o a_inner.r03  -l a_inner.lst  -a a_inner.s03  -V -P -m1 -g -e -x -q -j -p88 -I\c51v2\ a_inner.c
  29. c-51 -o a_waste.r03  -l a_waste.lst  -a a_waste.s03  -V -P -m1 -g -e -x -q -j -p88 -I\c51v2\ a_waste.c
  30. REM ========== LINK ==========
  31. xlink -f a_make.xcl
  32. del mylib.r03
  33.