|
楼主 |
发表于 2006-7-24 22:27:57
|
显示全部楼层
啥是工程结构?
makefile如下:
outputdir = ./
main = FEval.cpp
cflags = -c -Wall
lflags = -lm
cc = g++
function = LimitG.cpp Function.cpp FuncTree.cpp FuncNode.cpp IStack.cpp PStack.cpp Stack.cpp
SRC = $(main) $(function)
funcObj = LimitG.o Function.o FuncTree.o FuncNode.o IStack.o PStack.o Stack.o
mainObj = FEval.o
OBJ =$(mainObj) $(funcObj)
Hfunc = Common.h FuncDef.h IStack.h PStack.h \
FuncNode.h FuncTree.h Function.h LimitG.h \
Stack.h
Hmain = FEval.h
FEval: $(OBJ)
$(cc) $(lflags) -o $(EXE) $(OBJ)
$(funcObj): ${Hfunc} $(function)
$(cc) $(cflags) `basename $@ .o`.cpp
$(mainObj): $(Hmain) $(main)
$(cc) $(cflags) `basename $@ .o`.cpp
clean:
rm -f *.o |
|