home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2646 / Makefile next >
Encoding:
Makefile  |  1991-02-01  |  934 b   |  30 lines

  1. CFLAGS= $(DBG) $(INCLUDES) $(DEFINES)
  2. DBG=-O
  3. INCLUDES=-I.
  4. # use these lines if you have zephyr
  5. DEFINES=-YPOSIX -DNO_KLOG -DCOMPAT42 -DZEPHYR
  6. ZLIBS=-lzephyr -lcom_err -lkrb
  7.  
  8. #use these if you don't
  9. # you can nuke ZLIBS if you don't turn on ZEPHYR
  10. #DEFINES=-YPOSIX -DNO_KLOG -DCOMPAT42 -DZEPHYR
  11. #ZLIBS=
  12.  
  13.  
  14. OFILES=syslogd.o herror.o daemon.o strerror.o ttymsg.o
  15.  
  16. syslogd: $(OFILES)
  17.     $(CC) $(CFLAGS) -o syslogd $(OFILES) $(ZLIBS)
  18.  
  19. #
  20. # -YPOSIX (on ultrix means) set -DPOSIX
  21. # -DPOSIX means you have <unistd.h>
  22. # -DNO_KLOG means you don't have /dev/klog (kernel syslogging)
  23. # -DCOMPAT42 means you want to be compatible with programs using
  24. #    4.2 syslog() calls
  25. # -DZEPHYR means you want to enable forwarding of syslog stuff via Zephyr
  26. #    [if you turn this on, target entries like "!user" go via wall/write
  27. #    style, and entries like "user" go via Zephyr]
  28. # -DTAHOE_SOCKETS means you have the type and length fields in your socket
  29. #    structures.
  30.