home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / msgd / msg / Makefile next >
Encoding:
Makefile  |  1992-03-09  |  927 b   |  42 lines

  1. # Needs to be setuid root so that msg save files can be made and chown'd.
  2. # Needs to be setgid tty so that we can write to ttys in /dev
  3.  
  4. BINDIR    = /software/users/bin
  5. MANDIR    = /software/users/man
  6.  
  7. NAME    = msg
  8. OWNER=root
  9. GROUP=tty
  10. MODE=6555
  11. CFLAGS= -I../Include $(DBX)
  12.  
  13. OBJECT    = msg.o remote.o deliver.o misc.o errtext.o savemsg.o answerback.o
  14.  
  15. all: $(NAME)
  16.  
  17. $(NAME): $(OBJECT)
  18.     cc -o $(NAME) $(OBJECT)
  19.  
  20. install: $(NAME)
  21.     install -s -o $(OWNER) -g $(GROUP) -m $(MODE) $(NAME) $(BINDIR)/$(NAME)
  22.  
  23. clean:
  24.     rm -f a.out core *.o $(NAME)
  25.  
  26. $(OBJECT): ../Include/msg.h ../Include/msgoptions.h
  27.  
  28. answerback.o: ../Common/answerback.c
  29.     cc $(CFLAGS) -c ../Common/answerback.c
  30.  
  31. deliver.o: ../Common/deliver.c
  32.     cc $(CFLAGS) -c ../Common/deliver.c
  33.  
  34. errtext.o: ../Common/errtext.c
  35.     cc $(CFLAGS) -c ../Common/errtext.c
  36.  
  37. misc.o: ../Common/misc.c
  38.     cc $(CFLAGS) -c ../Common/misc.c
  39.  
  40. savemsg.o: ../Common/savemsg.c
  41.     cc $(CFLAGS) -c ../Common/savemsg.c
  42.