home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2694 / Makefile < prev    next >
Encoding:
Makefile  |  1991-02-08  |  802 b   |  59 lines

  1. #
  2. #    @(#) Makefile    1.2 91/02/07 
  3. #
  4. #    Author: Christian Schlichtherle, 1991
  5. #        (chris@attron.ruhr.sub.org)
  6. #
  7. #    Makefile - Makefile for list(C).
  8. #
  9.  
  10. BIN = /u/bin
  11. OWNER = chris
  12. GROUP = freak
  13. # Mode for list(C)
  14. MODE = 0711
  15. # Mode for cpl(C) (shell script)
  16. SH_MODE = 0755
  17.  
  18. CC = cc
  19. CFLAGS = -O
  20. LDFLAGS = -s
  21.  
  22. SHELL = /bin/sh
  23.  
  24. # Do not touch the rest!
  25.  
  26. all: list cpl
  27.  
  28. list: list.o
  29.     $(CC) $(CFLAGS) $(LDFLAGS) -o $@ list.o
  30.  
  31. list.o: config.h
  32.  
  33. cpl: cpl.sh
  34.     cp $? $@
  35.     chmod $(SH_MODE) $@
  36.  
  37. install: $(BIN)/list $(BIN)/cpl
  38.  
  39. $(BIN)/list: list
  40.     cp $? $@
  41.     chown $(OWNER) $@
  42.     chgrp $(GROUP) $@
  43.     chmod $(MODE) $@
  44.  
  45. $(BIN)/cpl: cpl.sh
  46.     cp $? $@
  47.     chown $(OWNER) $@
  48.     chgrp $(GROUP) $@
  49.     chmod $(SH_MODE) $@
  50.  
  51. uninstall:
  52.     rm -f $(BIN)/list $(BIN)/cpl
  53.  
  54. clean:
  55.     rm -f *.o a.out core MAKELOG lintfile
  56.  
  57. clobber: clean
  58.     rm -f list cpl
  59.