home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1363 / Makefile < prev    next >
Encoding:
Makefile  |  1990-12-28  |  1.0 KB  |  42 lines

  1. # This makefile will build doas. If you want log files and passwords,
  2. # then use the -DPARANOID option in CFLAGS.
  3. #
  4. # Written Sat Oct 14 13:55:08 EDT 1989 by
  5. # Aaron J Sherman (asherman@cpe.ulowell.edu)
  6. #
  7. # use: "make install" to install doas.
  8. # Too use the install procedure you MUST 
  9. # be root.
  10. #
  11. # There is a special flag: NO_ETCPASSWD which will make 
  12. # the program use an internal password (DES-encrypted).
  13. # This is becuase Apollos do not use standard DES in /etc/passwd.
  14. # Put the DES-encryted password into the source by grabbing
  15. # it from a normal Unix box's passwd file.
  16. #
  17.  
  18. #CFLAGS = -O
  19. CFLAGS = -O -DPARANOID -DDES
  20.  
  21. CC = /bin/cc
  22. RM = /bin/rm -f
  23. MV = /bin/mv -i
  24. CHOWN = /etc/chown
  25. CHGRP = /etc/chgrp
  26. ROOT_GROUP = wheel
  27. INST_DIR = /usr/etc
  28.  
  29. all: doas
  30. doas:
  31.     $(CC) $(CFLAGS) -o doas doas.c
  32. install: doas inst
  33. inst:
  34.     -$(MV) $(INST_DIR)/doas $(INST_DIR)/doas.old
  35.     -chmod 750 $(INST_DIR)/doas.old
  36.     $(MV) doas $(INST_DIR)/doas
  37.     $(CHOWN) root $(INST_DIR)/doas
  38.     $(CHGRP) $(ROOT_GROUP) $(INST_DIR)/doas
  39.     chmod 4750 $(INST_DIR)/doas
  40. clean:
  41.     rm -f doas.o doas core a.out
  42.