makefile
上传用户:xiaoan1112
上传日期:2013-04-11
资源大小:19621k
文件大小:4k
源码类别:

操作系统开发

开发平台:

Visual C++

  1. #************************** makefile for cmdfdisk ***************************
  2. MSG_DIR=$(LANG_SRC)$(COUNTRY)cmdfdisk
  3. msg =....messages
  4. inc =....inc
  5. hinc    =....h
  6. doslib  =....lib
  7. here =..cmdfdisk
  8. extasw =-I$(inc) -D$(COUNTRY)
  9. extcsw =-I$(hinc) -I$(MSG_DIR)
  10. bins    =....binaries
  11. cprs    =....compress
  12. dest    =fdisk.exe
  13. pkl     =fdisk.pkl
  14. #
  15. ####################### dependencies begin here. #########################
  16. #
  17. !IFNDEF       BUILDER
  18. all: $(dest)
  19. !ELSE
  20. all: $(dest) $(bins)$(dest) $(cprs)$(dest)
  21. $(bins)$(dest): $(pkl)
  22.             copy $(pkl) $(bins)$(dest)
  23. $(cprs)$(dest): $(pkl)
  24.             copy $(pkl) $(cprs)$(dest)
  25. $(pkl): $(dest)
  26.             pklite -o $(dest) $(pkl)
  27. !ENDIF
  28. # Handle the FDISK 'C' source compilations first
  29. fdiskm.c  : $(msg)$(COUNTRY).msg fdisk.msg
  30.         menubld fdisk.msg  $(msg)$(COUNTRY).MSG
  31. fdisk5.cl1 : fdisk5.skl $(msg)$(COUNTRY).msg
  32. fdisk.ctl : fdisk.skl $(msg)$(COUNTRY).msg
  33. main.obj : main.c 
  34.            $(MSG_DIR)fdisk.h subtype.h extern.h fdiskmsg.h msgret.h doscall.h
  35. fdisk.obj : fdisk.c 
  36.             $(MSG_DIR)fdisk.h subtype.h extern.h fdiskmsg.h doscall.h msgret.h
  37. mainmenu.obj : mainmenu.c $(MSG_DIR)fdisk.h subtype.h extern.h fdiskmsg.h
  38. display.obj : display.c 
  39.               $(MSG_DIR)fdisk.h subtype.h extern.h fdiskmsg.h doscall.h
  40. d_menus.obj : d_menus.c $(MSG_DIR)fdisk.h subtype.h extern.h fdiskmsg.h
  41. c_menus.obj : c_menus.c $(MSG_DIR)fdisk.h subtype.h extern.h fdiskmsg.h
  42. input.obj : input.c $(MSG_DIR)fdisk.h subtype.h extern.h fdiskmsg.h doscall.h
  43. tdisplay.obj : tdisplay.c $(MSG_DIR)fdisk.h subtype.h extern.h fdiskmsg.h
  44. vdisplay.obj : vdisplay.c $(MSG_DIR)fdisk.h subtype.h extern.h fdiskmsg.h
  45. space.obj : space.c $(MSG_DIR)fdisk.h subtype.h extern.h
  46. partinfo.obj : partinfo.c $(MSG_DIR)fdisk.h subtype.h extern.h
  47. makepart.obj : makepart.c $(MSG_DIR)fdisk.h subtype.h extern.h
  48. rempart.obj : rempart.c $(MSG_DIR)fdisk.h subtype.h extern.h
  49. video.obj : video.c $(MSG_DIR)fdisk.h extern.h subtype.h fdiskmsg.h doscall.h
  50. int13.obj : int13.c $(MSG_DIR)fdisk.h subtype.h extern.h fdiskmsg.h
  51. diskout.obj : diskout.c $(MSG_DIR)fdisk.h subtype.h extern.h
  52. fdparse.obj : fdparse.c $(MSG_DIR)fdisk.h subtype.h extern.h parse.h msgret.h
  53. convert.obj : convert.c $(MSG_DIR)fdisk.h subtype.h extern.h
  54. global.obj : global.c $(MSG_DIR)fdisk.h makefile
  55. fdiskm.obj : fdiskm.c
  56. messages.obj : messages.c msgret.h extern.h subtype.h $(MSG_DIR)fdisk.h
  57. # Handle the FDISK MASM source
  58. fdboot.obj : fdboot.asm fdisk5.cl1
  59. fdboot.inc: fdboot.obj
  60.         link fdboot;
  61.         reloc fdboot fdboot.bin
  62.         del fdboot.exe
  63.         dbof fdboot.bin fdboot.inc 600 200
  64. _parse.obj : _parse.asm 
  65.              $(inc)version.inc 
  66.              $(inc)psdata.inc 
  67.              $(inc)parse.asm 
  68.              makefile
  69. _msgret.obj : _msgret.asm $(inc)psdata.inc 
  70.              fdisk.ctl 
  71.              makefile
  72. bootrec.obj : bootrec.asm fdboot.inc 
  73.               makefile
  74. reboot.obj : reboot.asm 
  75.              makefile
  76. # Do the link of FDISK
  77. fdisk.exe:    fdisk.obj reboot.obj bootrec.obj fdboot.obj 
  78.               display.obj input.obj tdisplay.obj vdisplay.obj 
  79.               space.obj partinfo.obj video.obj makepart.obj rempart.obj
  80.               int13.obj diskout.obj messages.obj fdparse.obj 
  81.               convert.obj global.obj fdiskm.obj main.obj 
  82.               c_menus.obj d_menus.obj mainmenu.obj _msgret.obj  
  83.               $(doslib)mapper.lib makefile fdisk.lnk fdisk.ctl _parse.obj 
  84.               $(doslib)comsubs.lib
  85.               link @fdisk.lnk