home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3163 / Makefile < prev    next >
Encoding:
Makefile  |  1991-04-04  |  816 b   |  54 lines

  1. ##
  2. #    M a k e f i l e
  3. #
  4. #    makefile for UPS monitor daemon
  5. #
  6. #    Arthur W. Neilson III
  7. #    art@pilikia.pegasus.com
  8. #    Sat Mar 30 1991
  9. #
  10.  
  11. CC = cc
  12. DEFS =
  13. CFLAGS = -O $(DEFS)
  14. CFILES = main.c funcs.c
  15. OFILES = main.o funcs.o
  16. HFILES = common.h
  17. LIBES =
  18. DESTDIR = /etc
  19.  
  20. upsd: $(OFILES)
  21.     $(CC) $(CFLAGS) $(OFILES) -o $@ $(LIBES)
  22.     @strip $@
  23.     @mcs -d $@
  24.  
  25. install:
  26.     cp upsd $(DESTDIR)/upsd
  27.     chown root $(DESTDIR)/upsd
  28.     chgrp sys $(DESTDIR)/upsd
  29.     chmod 550 $(DESTDIR)/upsd
  30.  
  31. install_rc: install
  32.     cp S22ups $(DESTDIR)/S22ups
  33.     chown root $(DESTDIR)/S22ups
  34.     chgrp sys $(DESTDIR)/S22ups
  35.     chmod 744 $(DESTDIR)/S22ups
  36.  
  37. indent:
  38.     @for f in $(CFILES); do \
  39.         indent $$f; \
  40.     done
  41.  
  42. kit:
  43.     makekit -m
  44.  
  45. clean:
  46.     rm -f upsd core *.o *.BAK Part*
  47.  
  48. clobber: clean
  49.     rm -f $(DESTDIR)/upsd
  50.  
  51. # dependencies
  52. main.o:        main.c $(HFILES)
  53. funcs.o:    funcs.c $(HFILES)
  54.