home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / CK5A188S.ZIP / ckoker.mak < prev    next >
Makefile  |  1992-11-23  |  5KB  |  128 lines

  1. # CKOKER.MAK, Version 3.00
  2. #
  3. # -- Makefile to build C-Kermit 5A for OS/2 --
  4. #
  5. # The result is a runnable program called CKOKER.EXE in the current
  6. # directory.  After satisfactory testing, you can rename CKOKER.EXE to
  7. # CKERMIT.EXE and install it in the desired directory.
  8. #
  9. # The 32-bit versions run only on OS/2 2.00 or higher.
  10. #
  11. #---------- Compiler targets:
  12.  
  13. unknown:
  14.     @echo Please specify target: "msc ibmc gcc"
  15.  
  16. # Microsoft C 6.00 (16-bit):
  17. #
  18. # To build: "nmake -f ckoker.mak msc"
  19. #
  20. # When (if) the LINK step doesn't work: (a) make sure the MSC directories are
  21. # ahead of the OS/2 directories in your PATH; (b) if LINK complains about not
  22. # finding LLIBCEP.LIB (because NMAKE inserted "/NOD:LLIBCE.LIB LLIBCEP.LIB"
  23. # into the LINK options), just tell it to use LLIBCE.LIB.
  24. # Warning: If the compiler complains about "Unrecoverable heap overflow", add
  25. # the -B3C3L option after -W2, within the quotes.  This requires C3L.EXE on
  26. # disk.  (This problem has been observed with MSC 6.00A, but not 6.00.)
  27. msc:
  28.     $(MAKE) -f ckoker.mak all \
  29.     CC="cl -nologo -W2" OUT="-o" O=".obj" OPT="-Ot -Gs" DEBUG="" \
  30.     CFLAGS="-AL -Au -FPc -J -Zap -G2 -Gt8 -UMSDOS -DNETCONN -DDECNET" \
  31.     LDFLAGS="-F 9A00 -Lp -link /noe /packc /packd /exepack"
  32.  
  33. # and with debug information
  34. mscd:
  35.     $(MAKE) -f ckoker.mak all \
  36.     CC="cl -nologo -W2" OUT="-o" O=".obj" OPT="-Od" DEBUG="-Zi" \
  37.     CFLAGS="-AL -Au -FPc -J -Zap -G2 -Gt8 -UMSDOS -DNETCONN -DDECNET" \
  38.     LDFLAGS="-F 9A00 -Lp -link /noe /packc /packd /exep"
  39.  
  40. # IBM C Set/2 (32-bit) with static linking -- no DLL's required.
  41. # Which is good, because otherwise users would need to have the IBM
  42. # OS/2 development system C libraries on their PCs.
  43. #
  44. ibmc:
  45.     $(MAKE) -f ckoker.mak all \
  46.     CC="icc -q -O -Gd- -Gm" OUT="-Fe" O=".obj" OPT="-O -Gs" DEBUG="" \
  47.     CFLAGS="-Sm -Sp1 -D__STDC__ -DNETCONN -DDECNET" LDFLAGS="-B/ST:0x10000"
  48.     msgbind ckoker.msb
  49.  
  50. # and with debug information.
  51. ibmcd:
  52.     $(MAKE) -f ckoker.mak all \
  53.     CC="icc -q -Gm" OUT="-Fe" O=".obj" OPT="" DEBUG="-D__DEBUG -Ti" \
  54.     CFLAGS="-Sm -Sp1 -D__STDC__ -DNETCONN -DDECNET" LDFLAGS="-B/ST:0x10000"
  55.  
  56. # emx 0.8e + gcc 2.2.2 (32-bit)
  57. #
  58. gcc:
  59.     $(MAKE) -f ckoker.mak all \
  60.     CC="gcc -Zomf -Zmt" OUT="-o" O=".obj" OPT="-O" DEBUG="" \
  61.     CFLAGS="" LDFLAGS="-los2 -l16bit"
  62.  
  63. # and with debug information.
  64. gccd:
  65.     $(MAKE) -f ckoker.mak all \
  66.     CC="gcc" OUT="-o" O=".o" OPT="" DEBUG="-g" \
  67.     CFLAGS="" LDFLAGS="-los2 -l16bit"
  68.  
  69. #---------- Macros:
  70.  
  71. DEFINES = -DOS2 -DDYNAMIC
  72.  
  73. #---------- Inference rules:
  74.  
  75. .c$(O):
  76.     $(CC) $(CFLAGS) $(OPT) $(DEBUG) $(DEFINES) -c $*.c
  77.  
  78. #---------- Targets:
  79.  
  80. OBJS =    ckcmai$(O) ckcfns$(O) ckcfn2$(O) ckcfn3$(O) ckcpro$(O) \
  81.         ckuxla$(O) ckucmd$(O) ckuusr$(O) ckuus2$(O) ckuus3$(O) \
  82.         ckuus4$(O) ckuus5$(O) ckuus6$(O) ckuus7$(O) ckuusx$(O) \
  83.     ckuusy$(O) ckudia$(O) ckuscr$(O) ckufio$(O) ckocon$(O) \
  84.         ckotio$(O) ckonet$(O)
  85. DEF =   ckoker.def
  86.  
  87. all: ckoker.exe
  88.  
  89. ckoker.exe: $(OBJS) $(DEF)
  90.     $(CC) $(CFLAGS) $(DEBUG) $(OBJS) $(DEF) $(OUT) $@ $(LDFLAGS)
  91.  
  92. ckwart.exe: ckwart$(O) $(DEF)
  93.     $(CC) $(CFLAGS) ckwart$(O) $(DEF) $(OUT) $@ $(LDFLAGS)
  94.  
  95. #---------- Dependencies:
  96.  
  97. ckcmai$(O):    ckcmai.c ckcker.h ckcdeb.h ckcasc.h ckcsym.h ckcnet.h
  98. ckcfns$(O):    ckcfns.c ckcker.h ckcdeb.h ckcasc.h ckcsym.h ckcxla.h ckuxla.h
  99. ckcfn2$(O):    ckcfn2.c ckcker.h ckcdeb.h ckcasc.h ckcsym.h ckcxla.h ckuxla.h
  100. ckcfn3$(O):    ckcfn3.c ckcker.h ckcdeb.h ckcasc.h ckcsym.h ckcxla.h ckuxla.h
  101. ckcpro$(O):    ckcpro.c ckcker.h ckcdeb.h ckcasc.h
  102. ckuxla$(O):    ckuxla.c ckcker.h ckcdeb.h ckcxla.h ckuxla.h
  103. ckucmd$(O):    ckucmd.c ckcker.h ckcdeb.h ckcasc.h ckucmd.h
  104. ckuusr$(O):    ckuusr.c ckcker.h ckcdeb.h ckcasc.h ckuusr.h ckucmd.h \
  105.           ckcxla.h ckuxla.h ckcnet.h
  106. ckuus2$(O):    ckuus2.c ckcker.h ckcdeb.h ckcasc.h ckuusr.h ckucmd.h \
  107.           ckcxla.h ckuxla.h
  108. ckuus3$(O):    ckuus3.c ckcker.h ckcdeb.h ckcasc.h ckuusr.h ckucmd.h \
  109. ckcxla.h ckuxla.h ckcnet.h
  110. ckuus4$(O):    ckuus4.c ckcker.h ckcdeb.h ckcasc.h ckuusr.h ckucmd.h \
  111.           ckcxla.h ckuxla.h ckcnet.h ckuver.h
  112. ckuus5$(O):    ckuus5.c ckcker.h ckcdeb.h ckcasc.h ckuusr.h ckucmd.h
  113. ckuus6$(O):    ckuus6.c ckcker.h ckcdeb.h ckcasc.h ckuusr.h ckucmd.h
  114. ckuus7$(O):    ckuus7.c ckcker.h ckcdeb.h ckcasc.h ckuusr.h ckucmd.h \
  115.           ckcxla.h ckuxla.h ckcnet.h
  116. ckuusx$(O):    ckuusx.c ckcker.h ckcdeb.h ckcasc.h ckuusr.h
  117. ckuusy$(O):    ckuusy.c ckcker.h ckcdeb.h ckcasc.h
  118. ckudia$(O):    ckudia.c ckcker.h ckcdeb.h ckcasc.h ckucmd.h
  119. ckuscr$(O):    ckuscr.c ckcker.h ckcdeb.h ckcasc.h
  120. ckufio$(O):    ckufio.c ckcker.h ckcdeb.h ckuver.h ckodir.h ckoker.h
  121. ckocon$(O):    ckocon.c ckcker.h ckcdeb.h ckcasc.h ckoker.h
  122. ckotio$(O):    ckotio.c ckcker.h ckcdeb.h ckuver.h ckodir.h ckoker.h
  123. ckonet$(O):    ckonet.c ckcker.h ckcdeb.h ckcnet.h ckoker.h
  124.  
  125. ckcpro.c:    ckcpro.w ckwart.exe
  126.         ckwart ckcpro.w ckcpro.c
  127.