home *** CD-ROM | disk | FTP | other *** search
Makefile | 1990-12-28 | 1.0 KB | 42 lines |
- # This makefile will build doas. If you want log files and passwords,
- # then use the -DPARANOID option in CFLAGS.
- #
- # Written Sat Oct 14 13:55:08 EDT 1989 by
- # Aaron J Sherman (asherman@cpe.ulowell.edu)
- #
- # use: "make install" to install doas.
- # Too use the install procedure you MUST
- # be root.
- #
- # There is a special flag: NO_ETCPASSWD which will make
- # the program use an internal password (DES-encrypted).
- # This is becuase Apollos do not use standard DES in /etc/passwd.
- # Put the DES-encryted password into the source by grabbing
- # it from a normal Unix box's passwd file.
- #
-
- #CFLAGS = -O
- CFLAGS = -O -DPARANOID -DDES
-
- CC = /bin/cc
- RM = /bin/rm -f
- MV = /bin/mv -i
- CHOWN = /etc/chown
- CHGRP = /etc/chgrp
- ROOT_GROUP = wheel
- INST_DIR = /usr/etc
-
- all: doas
- doas:
- $(CC) $(CFLAGS) -o doas doas.c
- install: doas inst
- inst:
- -$(MV) $(INST_DIR)/doas $(INST_DIR)/doas.old
- -chmod 750 $(INST_DIR)/doas.old
- $(MV) doas $(INST_DIR)/doas
- $(CHOWN) root $(INST_DIR)/doas
- $(CHGRP) $(ROOT_GROUP) $(INST_DIR)/doas
- chmod 4750 $(INST_DIR)/doas
- clean:
- rm -f doas.o doas core a.out
-