home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2619 / Makefile < prev    next >
Encoding:
Makefile  |  1991-01-29  |  783 b   |  47 lines

  1. #
  2. #    @(#) Makefile    1.1 91/01/26 
  3. #
  4. #    Copyright (C) 1991 by Christian Schlichtherle
  5. #                  (chris@attron.ruhr.sub.org)
  6. #    
  7. #    Permission is hereby granted to use, copy, modify or distribute
  8. #    this file at will unless this copyright notice is removed.
  9. #    The author disclaims any kind of warranty.
  10. #
  11. #    Makefile - Makefile for binst(C).
  12. #
  13.  
  14. #
  15. # Compiler and linker flags.
  16. #
  17. CC = cc
  18. CFLAGS = -Ms2 -i
  19. LDFLAGS = -s
  20. LIBS =
  21.  
  22. #
  23. # Owner, group and mode of the installed program.
  24. #
  25. OWNER = root
  26. GROUP = root
  27. MODE = 6711
  28. # Destination directory
  29. BIN = /u/bin
  30.  
  31. binst: binst.c
  32.     $(CC) $(CFLAGS) $(LDFLAGS) $? -o $@ $(LIBS)
  33.  
  34. install: $(BIN)/binst
  35.  
  36. $(BIN)/binst: binst
  37.     cp $? $@
  38.     chown $(OWNER) $@
  39.     chgrp $(GROUP) $@
  40.     chmod $(MODE) $@
  41.  
  42. uninstall:
  43.     rm -f $(BIN)/binst
  44.  
  45. clean:
  46.     rm -f a.out core *.o binst
  47.