home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / INDENTSR.ZIP / MAKEFILE.BSD < prev    next >
Text File  |  1992-08-27  |  1KB  |  47 lines

  1. # Copyright (c) 1987 Regents of the University of California.
  2. # All rights reserved.
  3. #
  4. # Redistribution and use in source and binary forms are permitted
  5. # provided that the above copyright notice and this paragraph are
  6. # duplicated in all such forms and that any documentation,
  7. # advertising materials, and other materials related to such
  8. # distribution and use acknowledge that the software was developed
  9. # by the University of California, Berkeley.  The name of the
  10. # University may not be used to endorse or promote products derived
  11. # from this software without specific prior written permission.
  12. # THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
  13. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  14. # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  15. #
  16. #    @(#)Makefile    5.9 (Berkeley) 88/09/15
  17. #
  18. CFLAGS=    -O -DBSD #-DMAXPATHLEN=256
  19. LIBC=    /lib/libc.a
  20. SRCS=    indent.c io.c lexi.c parse.c comment.c args.c
  21. OBJS=    indent.o io.o lexi.o parse.o comment.o args.o
  22. MAN=    indent.0
  23.  
  24. all: indent
  25.  
  26. indent: ${OBJS} ${LIBC}
  27.     ${CC} -o $@ ${CFLAGS} ${OBJS}
  28.  
  29. clean:
  30.     rm -f ${OBJS} core indent
  31.  
  32. cleandir: clean
  33.     rm -f ${MAN} tags .depend
  34.  
  35. depend: ${SRCS}
  36.     mkdep ${CFLAGS} ${SRCS}
  37.  
  38. install: ${MAN}
  39.     install -s -o bin -g bin -m 755 indent ${DESTDIR}/usr/ucb/indent
  40.     install -c -o bin -g bin -m 444 indent.0 ${DESTDIR}/usr/man/cat1/indent.0
  41.  
  42. lint: ${SRCS}
  43.     lint ${CFLAGS} ${SRCS}
  44.  
  45. tags: ${SRCS}
  46.     ctags ${SRCS}
  47.