Makefile
资源名称:parse.tar.Z [点击查看]
上传用户:hbdengju
上传日期:2007-01-06
资源大小:11k
文件大小:1k
源码类别:
编译器/解释器
开发平台:
C/C++
- # Makefile for clex/cparse
- INCLUDE=/usr/local/include/CC
- CCC=/user/local/CC
- CCOPTS= -g -O
- # -g: include debug info -O: optimize
- all: kwhash clex_test
- kwhash: kwhash.c /usr/include/stdio.h
- /bin/cc ${CCOPTS} -o kwhash kwhash.c
- clex_test: clex_test.o clex.o
- ${CCC} -g -o clex_test clex_test.o clex.o
- .c.o:
- /usr/lib/cpp -I${INCLUDE} -Dc_plusplus=1 $*.c >$*.cpp
- /user/mentor/local/cfront +L +f$*.c <$*.cpp >$*..c && /bin/rm $*.cpp
- /bin/cc -c ${CCOPTS} $*..c && /bin/mv $*..o $*.o
- clex.o: ${INCLUDE}/stdio.h
- ${INCLUDE}/stream.h
- ${INCLUDE}/string.h
- ${INCLUDE}/stdlib.h
- ${INCLUDE}/ctype.h
- ${INCLUDE}/assert.h
- clex.h clex_sym.h
- clex_test.o: ${INCLUDE}/stdio.h
- clex.h clex_sym.h