home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / lw42n2.exe / MAKEFILE < prev    next >
Text File  |  1994-12-09  |  8KB  |  177 lines

  1. #################################################
  2. #                                               #
  3. # BWNFSD Makefile Version 3.2    10/13/94    fjw #
  4. #                                               #
  5. #################################################
  6. #                                               #
  7. # One can enable various debugging options here #
  8. #                                               #
  9. #################################################
  10. CC  = cc
  11. CC2 = cc
  12.  
  13. ##########################
  14. #                        #
  15. # Dependencies Section:  #
  16. #                        #
  17. ##########################
  18. make:
  19.     @echo 'Make what?  You must tell which system to make BWNFSD for:'
  20.     @echo 'make sun       - Sun or compatible running Sun-OS'
  21.     @echo 'make bsd       - Generic Berkeley Unix'
  22.     @echo 'make linux     - Linux'
  23.     @echo 'make bsdi      - Berkeley Software Design Unix'
  24.     @echo 'make sys3      - Generic ATT System III or System V'
  25.     @echo 'make sys5      - Generic ATT System III or System V'
  26.     @echo 'make svr4      - ATT System V.4 UNIX'
  27.     @echo 'make univel    - Univel System VR4 variant'
  28.     @echo 'make solaris21 - Solaris 2.1'
  29.     @echo 'make solaris22 - Solaris 2.2'
  30.     @echo 'make hpux      - HPUX 8.07 System (Possibly others)'
  31.     @echo 'make sgi       - Silicon Graphics machine'
  32.     @echo 'make sco       - Santa Cruz Organization (SCO)'
  33.     @echo 'make aix       - IBM AIX for RS/6000 or PS/2'
  34.  
  35.  
  36. ################################
  37. #                              #
  38. # Please add your system here  #
  39. #                              #
  40. ################################
  41. OBJS        = bwnfsd.o bwprint.o bwlock.o
  42.  
  43. all: bwnfsd
  44.  
  45. bwnfsd: $(OBJS)
  46.     $(CC) -o bwnfsd $(OBJS) $(CFLAGS)
  47.  
  48. ########################################
  49. #
  50. # Possible defines and their uses include:
  51. # SYSV_PGRP - Indicates that the system wants the SystemV form of the
  52. #    setpgrp() function; that is no arguments.
  53. # INT_SIG - Indicates that this system thinks that the signal() function
  54. #       takes an integer functional argument, rather than void.
  55. # USE_BCOPY - Indicates that this system doesn't understand memcmp() and
  56. #       memcopy(), and that bcmp() and bcopy() should be used instead.
  57. # FOURTEEN_CHAR - Indicates that there is a fourteen character limit on
  58. #       filenames, which affects print-job queueing
  59. # SHADW - Indicates that a Shadow password file is in use
  60. # WINNFS - Indicates that compilation is for a Wollongong WIN system
  61. # DONT_USE_NETINET_IN - Indicates that the system does not have/need the
  62. #       include of <netinet/in.h>
  63. # P_TITLE_LOWERT - Indicates that the print command wants the printjob title
  64. #       to be indicated with a -t keyword rather than with a -T keyword.
  65. # PORTMAP - Indicates that a Univel machine should include some include files
  66. #       that it otherwise doesn't.  This symbol is checked by the include
  67. #       files on the Univel machine, not in this source code
  68. # INCLUDE_BOGOSITY - Indicates that this machine's include files are not
  69. #       set up so that they can be multiply included.  Some versions of
  70. #       HP/UX suffer from this, as do some AT&T machines.
  71. # USE_ALARM - Indicates that this system uses the alarm() system call to set
  72. #       a timer event. The other mechanism is to use setitimer() calls.
  73. #
  74. # FIND_QUEUES_AIX - Indicates that we can determine the names of the queues
  75. #       on this machine in the AIX manner (parse the /etc/qconfig file)
  76. # Q_CMDS_AIX - Indicates that this machine uses the standard AIX commands
  77. #       (bin/enq) for determining the status of and removing jobs from a print
  78. #       queue
  79. # P_CMDS_AIX - Indicates that this machine uses the standard AIX command
  80. #       (/bin/enq) for printing to a print queue
  81. # P_CMDS_AIX_PIOBE - Indicates that this machine uses the extended ASCII filter
  82. #       which requires the use of the pass-through option for printing.
  83. # P_CMDS_AIX_ENSCRIPT - Indicates that this machine uses the AIX enscript
  84. #       command for printing to a print queue
  85. #
  86. # FIND_QUEUES_PRINTCAP - Indicates that we should determine the names of
  87. #       the queues on this machine by parsing the /etc/printcap file.
  88. # Q_CMDS_BSD - Indicates that this machine uses the standard BSD commands
  89. #       (/usr/ucb/lp{q,rm}) for determining the status of and removing
  90. #       jobs from a print queue
  91. # P_CMDS_BSD - Indicates that this machine uses the standard BSD command
  92. #       (/usr/ucb/lpr) for printing to a print queue
  93. # P_CMDS_BSDI - Like BSD, but use /usr/bin/lpr
  94. # Q_CMDS_BSDI - Like BSD, but use /usr/bin/lp{q,rm}
  95. #
  96. # FIND_QUEUES_SVR4 - Indicates that we should determine the names of the
  97. #       queues on this machine by reading the ASCII files that are in
  98. #       /usr/spool/lp/system/pstatus and /usr/spool/lp/system/cstatus
  99. # CHECK_PRINTER_ACCESS - Indicates that users are to be allowed/disallowed
  100. #       access to printers on a username basis.  This is only used in SVR4
  101. #       -style printing. 
  102. # Q_CMDS_SVR4 - Indicates that this machine uses the standard SVR4 commands
  103. #       (/usr/bin/lpstat /usr/bin/cancel) for determining the status of and
  104. #       removing jobs from a print queue
  105. # P_CMDS_SVR4 - Indicates that this machine uses the standard SVR4 command
  106. #       (/usr/bin/lp) for printing to a print queue
  107. #
  108. # Q_CMDS_SCO - Indicates that this machine uses modified SVR4 commands like
  109. #       SCO does (/usr/bin/lpstat /usr/bin/cancel) for determining the
  110. #       status of and removing jobs from a print queue
  111. #
  112. # SCO - Indicates an SCO system
  113. ########################################
  114. #
  115. # Make commands for specific systems:
  116. #
  117. ########################################
  118. #IBM RS/6000 or PS/2 running AIX
  119. aix:
  120.     make bwnfsd "CFLAGS= -O -DSYSV_PGRP -DFIND_QUEUES_AIX -DQ_CMDS_AIX -DP_CMDS_AIX"
  121.  
  122. #Sun
  123. sun:
  124.     make bwnfsd "CFLAGS= -O -DUSE_BCOPY -DQ_CMDS_BSD -DP_CMDS_BSD -DFIND_QUEUES_PRINTCAP"
  125.  
  126. #Berkeley Unix
  127. bsd:
  128.     make bwnfsd "CFLAGS= -O -DUSE_BCOPY -DQ_CMDS_BSD -DP_CMDS_BSD -DFIND_QUEUES_PRINTCAP"
  129.  
  130. #Linux
  131. linux:
  132.     make bwnfsd "CFLAGS= -O -DSYSV_PGRP -DUSE_BCOPY -DQ_CMDS_BSD -DP_CMDS_BSD -DFIND_QUEUES_PRINTCAP"
  133.  
  134. #Berkeley Software Design Unix
  135. bsdi:
  136.     make bwnfsd "CFLAGS= -O -DQ_CMDS_BSDI -DP_CMDS_BSDI -DFIND_QUEUES_PRINTCAP -DDONT_USE_NETINET_IN -lrpc"
  137.  
  138. #HPUX Version 8.07 (possibly others) NOTE: uses printcap
  139. hpux:
  140.     make bwnfsd "CFLAGS= -O -DINCLUDE_BOGOSITY -DP_CMDS_SVR4 -DQ_CMDS_SVR4 -DFIND_QUEUES_PRINTCAP"
  141.  
  142. #Generic ATT System III or System V (not R4)
  143. sys5:
  144.     make bwnfsd "CFLAGS= -O -DUSE_BCOPY -DQ_CMDS_BSD -DP_CMDS_SYSV32 -DFIND_QUEUES_PRINTCAP -DFOURTEEN_CHAR"
  145.  
  146. #Generic ATT System III or System V (not R4)
  147. sys3:
  148.     make bwnfsd "CFLAGS= -O -DUSE_BCOPY -DQ_CMDS_BSD -DP_CMDS_SYSV32 -DFIND_QUEUES_PRINTCAP -DFOURTEEN_CHAR"
  149.  
  150. #Generic System V R4
  151. svr4:
  152.     make bwnfsd "CFLAGS= -O -DINT_SIG -DFOURTEEN_CHAR -DCHECK_PRINTER_ACCESS -DFIND_QUEUES_SVR4 -DP_CMDS_SVR4 -DQ_CMDS_SVR4 -DSHADW -lrpcsvc -lsocket -lresolv -lnsl -lx -lnls /usr/ucblib/libucb.a"
  153.  
  154. #Univel System V R4
  155. univel:
  156. #old    make bwnfsd "CFLAGS= -O -DPORTMAP -DCHECK_PRINTER_ACCESS -DFIND_QUEUES_SVR4 -DP_CMDS_SVR4 -DQ_CMDS_SVR4 -DSHADW -lrpcsvc -lsocket -lresolv -lnsl -lx -lnls /usr/ucblib/libucb.a"
  157.     make bwnfsd "CFLAGS= -O -DPORTMAP -DCHECK_PRINTER_ACCESS -DFIND_QUEUES_SVR4 -DP_CMDS_SVR4 -DQ_CMDS_SVR4 -DSHADW -lsocket -lresolv -lnsl -lx -lnls /usr/ucblib/libucb.a"
  158.  
  159. #Solaris 2.1
  160. solaris21:
  161.     make bwnfsd "CFLAGS= -w -O -DINT_SIG -DFIND_QUEUES_PRINTCAP -DP_CMDS_SVR4 -DQ_CMDS_SCO -DSHADW -lrpcsvc -lsocket -lresolv -lnsl"
  162.  
  163. #Solaris 2.2
  164. solaris22:
  165.     make bwnfsd "CFLAGS= -w -O -DINT_SIG -DFIND_QUEUES_SVR4 -DP_CMDS_SVR4 -DQ_CMDS_SCO -DSHADW -lrpcsvc -lsocket -lresolv -lnsl"
  166.  
  167. #Silicon Graphics machine
  168. sgi:
  169. #old    make bwnfsd "CFLAGS= -O -cckr -I/usr/include/sun -I/usr/include/bsd -DP_CMDS_SYSV32 -DQ_CMDS_BSD -lrpcsvc -lsun -lbsd"
  170.     make bwnfsd "CFLAGS= -O -cckr -I/usr/include/sun -I/usr/include/bsd -DFIND_QUEUES_SVR4 -DCHECK_PRINTER_ACCESS -DP_CMDS_SVR4 -DQ_CMDS_SCO -lrpcsvc -lsun -lbsd"
  171.  
  172. #Intel hardware running Santa Cruz Operation's SCO Unix
  173. #note that you'll need a crypt library, -lcrypt_i or some variant
  174. sco:
  175.     make bwnfsd "CFLAGS= -O -DSCO -DCHECK_PRINTER_ACCESS -DFIND_QUEUES_SVR4 -DP_CMDS_SVR4 -DQ_CMDS_SCO -DUSE_ALARM -DFOURTEEN_CHAR -lprot -lrpcsvc -lrpc -lsocket -lc_s"
  176.  
  177.