home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / CPROTOS.ZIP / MAKEFILE < prev    next >
Text File  |  1991-02-19  |  2KB  |  83 lines

  1. #    $Id$
  2. #
  3. #    Makefile for proto
  4. #
  5.  
  6. PROG=    proto
  7. BIN=    ${DESTDIR}/usr/local/bin
  8. LIB=    ${DESTDIR}/usr/local/lib
  9.  
  10. I=/usr/include
  11. S=/usr/include/sys
  12. L=/usr/include/local
  13. P=
  14.  
  15. INCLUDE=
  16. DEBUG=    -g
  17. CDEFS=  
  18. CFLAGS= ${DEBUG} ${CDEFS} ${INCLUDE}
  19. YFLAGS=    -dv
  20.  
  21. GENC=    gram.c scan.c
  22. GENH=    
  23. GEN=    ${GENC} ${GENH}
  24. HDR=    y.tab.h
  25. SRC=    main.c li.c proto.c utils.c tr.c 
  26. DEP=    ${GENC} ${LINKC} ${SRC}
  27. OBJ=    gram.o scan.o main.o li.o proto.o utils.o tr.o
  28. MAN=    
  29. OTHER=    README gram.y scan.l
  30. SOURCE=    Makefile ${OTHER} ${MAN} ${HDR} ${SRC} 
  31.  
  32. all: ${PROG}
  33.  
  34. ${PROG}:$P ${OBJ}
  35.     ${CC} -o $@ ${CFLAGS} ${OBJ}
  36.  
  37. #  Yacc and Lex
  38. y.tab.h: gram.c
  39.  
  40. gram.c: gram.y
  41.  
  42. scan.c: scan.l
  43.  
  44. clean: FRC
  45.     rm -f Makefile.bak ${PROG} ${GEN} ${LINK} ${OBJ} a.out core errs lint.out tags 
  46.  
  47. calls: ${SRC} ${HDR} ${GEN} FRC
  48.     calls ${CDEFS} ${INCLUDE} ${DEP}
  49.  
  50. depend: ${SRC} ${HDR} ${GEN} FRC
  51.     maketd -a ${CDEFS} ${INCLUDE} ${DEP}
  52.  
  53. dirs: ${BIN} ${LIB}
  54.  
  55. install: all dirs FRC
  56.     install -cs ${PROG} ${BIN}
  57.  
  58. lint: ${SRC} ${HDR} ${GEN} FRC
  59.     lint -h ${CDEFS} ${INCLUDE} ${DEP}
  60.  
  61. mkcat: ${MAN}
  62.     mkcat ${MAN}
  63.  
  64. print: source FRC
  65.     lpr -J'${PROG} source' ${SOURCE}
  66.  
  67. source: ${SOURCE}
  68.  
  69. spotless: clean
  70.     rcsclean ${SOURCE}
  71.  
  72. tags: ${HDR} ${SRC} ${GEN}
  73.     ctags -t ${HDR} ${SRC} ${GEN}
  74.  
  75. ${SOURCE}:
  76.     co -q $@
  77.  
  78. FRC:
  79.  
  80. # DO NOT DELETE THIS LINE - make depend DEPENDS ON IT
  81.  
  82. # *** Do not add anything here - It will go away. ***
  83.