MAKEFILE
上传用户:better800
上传日期:2022-06-13
资源大小:1853k
文件大小:3k
源码类别:

TCP/IP协议栈

开发平台:

DOS

  1. #
  2. #       Makefile for WatTCP TCP/IP kernal
  3. #
  4. # switches:
  5. # define the ones you want in the CFLAGS definition...
  6. #
  7. # TRACE - turn on tracing/debugging code
  8. #       SKIPINI         - bootp/dhcp only, no WATTCP.CFG (size critical apps)
  9. #       ETH_MSS         - you might set =576 for serial use (EPPPD), mostly
  10. #                          useful if lacking CFG file (SKIPINI, etc)
  11. #       TW_TO           - set between 30 and 240 for an RFC-compliant
  12. #                          TIME_WAIT period (defaults to 2, higher can delay
  13. #                          sock_wait_closed() much longer)
  14. #
  15. DEBUGS= -v
  16. # 'obsolete function' warning can be safely ignored.  There should be
  17. #  no other warnings at the default warning level under bcc3.1 and 4.x;
  18. #  let's keep it that way :)
  19. #CFLAGS= $(DEBUGS) -DMSDOS -ID:bc31include -I..include
  20. #CFLAGS= $(DEBUGS) -DMSDOS -ID:bc31include -I..include
  21. #CFLAGS= $(DEBUGS) -DMSDOS -DSKIPINI -DETH_MSS=576 -ID:bc31include -I..include
  22. CFLAGS= $(DEBUGS) -1 -f- -DMSDOS -DETH_MSS=576 -ID:bc31include -I..include
  23. MODELS=-ms
  24. MODELL=-ml
  25. MODELH=-mh
  26. # Assembler flags
  27. AFLAGS=-mx -t -i..elib
  28. AMODELS=-dFUNC_L=0
  29. AMODELL=-dFUNC_L=1
  30. # Define PC-specific include file
  31. # old pre-BC4
  32. #       bcc -c $(MODELS) $(CFLAGS) $*.c > errout
  33. .c.obj:
  34.         bcc -c $(MODELS) $(CFLAGS) $*.c
  35.         tlib ..libwattcpsm -+$*
  36.         bcc -c $(MODELL) $(CFLAGS) $*.c
  37.         tlib ..libwattcplg -+$*
  38.         bcc -c $(MODELH) $(CFLAGS) $*.c
  39.         tlib ..libwattcphg -+$*
  40. .asm.obj:
  41.         tasm $(AFLAGS) $(AMODELS) $*;
  42.         tlib ..libwattcpsm -+$*
  43.         tasm $(AFLAGS) $(AMODELL) $*;
  44.         tlib ..libwattcplg -+$*
  45.         tlib ..libwattcphg -+$*
  46. objs =pcpkt.obj pctcp.obj pcarp.obj pcsed.obj pcicmp.obj pcping.obj asmpkt.obj 
  47.         sock_prn.obj sock_ini.obj pcbsd.obj pcrecv.obj 
  48.         udp_nds.obj udp_dom.obj pcconfig.obj pc_cbrk.obj pcbuf.obj 
  49.         pcbootp.obj sock_dbu.obj pcdbug.obj test.obj pcintr.obj pcstat.obj 
  50.         bsdname.obj fragment.obj 
  51.         netback.obj select.obj
  52. ..libwattcpsm.lib: $(objs)
  53.         echo done
  54. fragment.obj: fragment.c ..includewattcp.h
  55. select.obj: select.c ..includewattcp.h
  56. pcicmp.obj: pcicmp.c ..includewattcp.h
  57. pcpkt.obj: pcpkt.c ..includewattcp.h
  58. pctcp.obj: pctcp.c ..includewattcp.h
  59. pcarp.obj: pcarp.c ..includewattcp.h
  60. wattcpd.obj: wattcpd.c ..includewattcp.h
  61. pcping.obj: pcping.c ..includewattcp.h
  62. pcsed.obj: pcsed.c ..includewattcp.h ..includeethdev.h
  63. sock_prn.obj: sock_prn.c ..includewattcp.h
  64. sock_ini.obj: sock_ini.c ..includewattcp.h
  65. udp_nds.obj: udp_nds.c ..includewattcp.h
  66. udp_dom.obj: udp_dom.c ..includewattcp.h
  67. pcconfig.obj: pcconfig.c ..includewattcp.h
  68. pc_cbrk.obj: pc_cbrk.c ..includewattcp.h
  69. sock_dbu.obj: sock_dbu.c ..includewattcp.h
  70. pcbsd.obj: pcbsd.c ..includetcp.h ..includewattcp.h
  71. pcbuf.obj: pcbuf.c ..includewattcp.h
  72. pcbootp.obj: pcbootp.c ..includewattcp.h ..includebootp.h
  73. pcrecv.obj: pcrecv.c ..includewattcp.h
  74. asmpkt.obj: asmpkt.asm
  75. pcdbug.obj: pcdbug.c ..includewattcp.h
  76. test.obj : test.c ..includewattcp.h
  77. pcintr.obj: pcintr.c ..includewattcp.h ..includeelib.h
  78. pcstat.obj: pcstat.c ..includewattcp.h
  79. netback.obj: netback.c ..includeelib.h ..includetcp.h
  80. bsdname.obj: bsdname.c ..includewattcp.h