Makefile
上传用户:hbdengju
上传日期:2007-01-06
资源大小:11k
文件大小:1k
源码类别:

编译器/解释器

开发平台:

C/C++

  1. # Makefile for clex/cparse
  2. INCLUDE=/usr/local/include/CC
  3. CCC=/user/local/CC
  4. CCOPTS= -g -O
  5. # -g: include debug info  -O: optimize
  6. all: kwhash clex_test
  7. kwhash: kwhash.c /usr/include/stdio.h
  8. /bin/cc ${CCOPTS} -o kwhash kwhash.c
  9. clex_test: clex_test.o clex.o
  10. ${CCC} -g -o clex_test clex_test.o clex.o
  11. .c.o:
  12. /usr/lib/cpp -I${INCLUDE} -Dc_plusplus=1 $*.c >$*.cpp
  13. /user/mentor/local/cfront +L +f$*.c <$*.cpp >$*..c && /bin/rm $*.cpp
  14. /bin/cc -c ${CCOPTS} $*..c && /bin/mv $*..o $*.o
  15. clex.o: ${INCLUDE}/stdio.h 
  16.          ${INCLUDE}/stream.h 
  17.          ${INCLUDE}/string.h 
  18.          ${INCLUDE}/stdlib.h 
  19.          ${INCLUDE}/ctype.h 
  20.          ${INCLUDE}/assert.h 
  21.          clex.h clex_sym.h
  22. clex_test.o:    ${INCLUDE}/stdio.h 
  23.                 clex.h clex_sym.h