home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / ham / k5jb.zip / K5JB.K28 / Makefile.unix next >
Makefile  |  1992-12-27  |  6KB  |  168 lines

  1. #    Makefile for KA9Q TCP/IP package for UNIX System V
  2. #
  3. # Only the SCO Unix 3.2 (native and GNU compilers), AT&T Sys V, v3.2
  4. # have been used to compile with this Makefile recently.  See Makefile.coh
  5. # for Coherent.  All common option macros have been defined in config.h
  6. # options.h, and unixopt.h. -- Joe, K5JB
  7. #
  8.  
  9. SHELL = /bin/sh
  10. TAR = tar
  11.  
  12. # If you have shared libraries (usually /lib/libc_s.a) you can make
  13. # smaller executable with SHLIB defined:
  14. SHLIB=-lc_s
  15. # Otherwise, enable:
  16. #SHLIB=
  17.  
  18. ####################################################################
  19. # The W5GFE video modification has been put in unixopt.h. This modifi-
  20. # cation cause inverse video on incoming telnet data.
  21. # Change unixopt.h, if necessary, and define your curses library.
  22. CURSES=-lcurses
  23. # Or, if you don't have curses, forget the whole thing and enable:
  24. #CURSES=
  25. #
  26. ####################################################################
  27. #
  28. # GNU v 1.39 C compiler on SCO Unix 3.2,  (80386) with shared libraries.
  29. #
  30. # More from W5GFE:
  31. # Here is a portion of a makefile that works under the GNU C compiler,
  32. # version 1.39.  That compiler is a very strict one, and I recommend it
  33. # to all comers.
  34. # The compile will be "noisy" due the the much better error checking
  35. # of the GNU C compiler.  (Editor's note: "Errors"?  Not here sir!
  36. # "Quibbling" maybe, but not errors, harrumph!)
  37. #
  38. # Under gcc, to set the "Quibble Level" (not unlike the S/N ratio)
  39. # uncover one of the next three options.
  40. #    "-w" - no noise;  "" - some noise;  "-Wall" - a LOT of noise
  41. #QUIBBLEFLAG= -w
  42. #QUIBBLEFLAG=
  43. #QUIBBLEFLAG= -Wall
  44. #
  45. #   73 de Bill W5GFE [44.78.32.12] w5gfe@w5gfe.okla.ampr
  46. # Use the next three options for gcc compiler on SCO Unix.  
  47. #CFLAGS= -s -O -DUNIX -DSYS5 -DSLOWCHECK -DLITTLE_ENDIAN -DMSPTICK=17 \
  48. #    -U__STDC__ $(QUIBBLEFLAG)
  49. #
  50. # These flags should be used for gcc
  51. #LINTFLAGS = -s -O -DUNIX -DSYS5 -DSLOWCHECK -DLITTLE_ENDIAN -DMSPTICK=17
  52. #LIBS =$(SHLIB) $(CURSES)
  53. # And use the gcc compiler
  54. #CC= gcc
  55. #
  56. #######################################################################
  57. #
  58. # Uncomment the next three options for 
  59. # SCO Unix 3.2,  (80386) with shared libraries. (From W5GFE)
  60. # (Is same for Microport Sys V, rel 3 -- 80386 with shared libraries)
  61. #
  62. #CFLAGS = -g -O -DUNIX -DSYS5 -DSLOWCHECK -DLITTLE_ENDIAN -DMSPTICK=17
  63. #LINTFLAGS = -g -O -DUNIX -DSYS5 -DSLOWCHECK -DLITTLE_ENDIAN -DMSPTICK=17
  64. #LIBS =$(SHLIB) $(CURSES)
  65. ########################################################################
  66. #
  67. # Uncomment the next three lines for
  68. # Microport System V -- 80286 without shared libraries.
  69. #
  70. #CFLAGS = -g -Ml -O -DUNIX -DSYS5 -DSLOWCHECK -DMSPTICK=17
  71. #LINTFLAGS = -g -Ml -O -DUNIX -DSYS5 -DSLOWCHECK -DMSPTICK=17
  72. #LIBS =
  73. ########################################################################
  74. #
  75. # Uncomment the next three lines for
  76. # Unix System V -- (AT&T 3B2 - K5JB)
  77. #
  78. CFLAGS = -O -DUNIX -DSYS5 -DSLOWCHECK -DMSPTICK=10
  79. LINTFLAGS = -O -DUNIX -DSYS5 -DSLOWCHECK -DMSPTICK=10
  80. LIBS =$(SHLIB) $(CURSES)
  81. ########################################################################
  82. #
  83. # Uncomment the next three lines for
  84. # Unix System V -- Motorola 680x0 
  85. #
  86. #CFLAGS = -g -DUNIX -DSYS5 -DSLOWCHECK -DMSPTICK=17
  87. #LINTFLAGS = -DUNIX -DSYS5 -DSLOWCHECK -DMSPTICK=17
  88. #LIBS =
  89. ########################################################################
  90. #
  91. # Uncomment the next three lines for
  92. # HP9000/500 - HP-UX 5.21 (not confident MSPTICK is correct!)
  93. #
  94. #CFLAGS =    -DUNIX -DSYS5 -DSLOWCHECK -DMSPTICK=17
  95. #LINTFLAGS = -DUNIX -DSYS5 -DSLOWCHECK -DMSPTICK=17
  96. #LIBS =
  97. ########################################################################
  98.  
  99. SRCS =    main.c arp.c arpcmd.c arpdump.c ax25.c ax25cmd.c \
  100.     ax25dump.c ax25subr.c ax25user.c ax_mbx.c cmdparse.c \
  101.     files.c fingcli.c fingserv.c ftp.c ftpcli.c ftpserv.c icmp.c \
  102.     icmpcmd.c icmpdump.c icmpmsg.c iface.c ip.c ipcmd.c ipdump.c \
  103.     iproute.c kiss.c kpc.c lapb.c lapbtime.c lcsum.c mbuf.c misc.c \
  104.     mulport.c ndir.c netuser.c nrcmd.c nrs.c nr3.c nrsubr.c nr4.c \
  105.     nr4subr.c nr4user.c nr4timer.c pathname.c session.c slip.c \
  106.     smisc.c smtpcli.c smtpserv.c sys5_io.c sys5unix.c tcpcmd.c \
  107.     tcpdump.c tcpin.c tcpout.c tcpsubr.c tcptimer.c tcpuser.c telnet.c \
  108.     telunix.c timer.c tnserv.c trace.c ttydriv.c udp.c udpcmd.c \
  109.     udpdump.c vcircuit.c version.c wildmat.c
  110.  
  111. OBJS =    main.o arp.o arpcmd.o arpdump.o ax25.o ax25cmd.o \
  112.     ax25dump.o ax25subr.o ax25user.o ax_mbx.o cmdparse.o \
  113.     files.o fingcli.o fingserv.o ftp.o ftpcli.o ftpserv.o icmp.o \
  114.     icmpcmd.o icmpdump.o icmpmsg.o iface.o ip.o ipcmd.o ipdump.o \
  115.     iproute.o kiss.o kpc.o lapb.o lapbtime.o lcsum.o mbuf.o misc.o \
  116.     mulport.o ndir.o netuser.o nrcmd.o nrs.o nr3.o nrsubr.o nr4.o \
  117.     nr4subr.o nr4user.o nr4timer.o pathname.o session.o slip.o \
  118.     smisc.o smtpcli.o smtpserv.o sys5_io.o sys5unix.o tcpcmd.o \
  119.     tcpdump.o tcpin.o tcpout.o tcpsubr.o tcptimer.o tcpuser.o telnet.o \
  120.     telunix.o timer.o tnserv.o trace.o ttydriv.o udp.o udpcmd.o \
  121.     udpdump.o vcircuit.o version.o wildmat.o
  122.  
  123. net:    $(OBJS)
  124.     $(CC) $(CFLAGS) -s -o net $(OBJS) $(LIBS)
  125.  
  126. lint:    $(SRCS)
  127.     lint $(LINTFLAGS) $(SRCS) > lint.out 2>&1
  128.  
  129. # My lint couldn't handle the number of variables so I had to split pass
  130. # two in to chunks, as follows:
  131. #lint:    $(SRCS)
  132. #    lint -c $(LINTFLAGS) $(SRCS) > lint1.out 2>&1
  133. #
  134. #lint2:    *.ln
  135. #    lint $(LINTFLAGS) [a-r]*.ln  > lint2.out 2>&1
  136. #
  137. #lint3:    *.ln
  138. #    lint $(LINTFLAGS) [i-z]*.ln  > lint3.out 2>&1
  139.  
  140. depend:
  141.     mkdep $(LINTFLAGS) $(SRCS) > depend.out
  142.  
  143. clean:
  144.     -rm *.o
  145.  
  146.  
  147. # here are some choices for archiving your files:
  148. #
  149. tar:
  150.     $(TAR) cvf net.tar Makefile.unix Makefile.coh mkdep depend.out *.note *.[hc]
  151.     compress -f net.tar
  152.  
  153. lharc:
  154.     lharc f netunix
  155.  
  156. uptar:
  157.     $(TAR) uvf net.tar Makefile.unix Makefile.coh mkdep depend.out *.note *.[hc]
  158.     #    net.tar not compressed - do it manually
  159.  
  160. pak:
  161.     ls Makefile.* *.note mkdep depend.out *.h | cpio -ocm >./net.h.cpio
  162.     compress net.h.cpio
  163.     ls *.c | cpio -ocm >./net.c.cpio
  164.     compress net.c.cpio
  165.     compress -f net
  166.  
  167. # Be sure and make a new depend.out because the one in the tar kit came
  168. # of