如何在DevC ++中使用自定义makefile来调用子目录中的不同makefile?调用导致无限循环而不执行子目录mkfile

时间:2015-07-13 10:42:49

标签: makefile nested

在UNIX中,以下代码可以正常运行子目录,在没有这些子目录的DevC ++中调用此makefile运行正常。我的意思是说在设置自定义make文件时没有问题,但调用是。

make文件中的源代码:

$(IDMSOBJDIR)/idmslex.o :   $(INCLPATH)/rtbtree.h $(INCLPATH)/memmgmt.h $(INCLPATH)/rtbyacc.h $(INCLPATH)/front.h $(INCLPATH)/msgMgr.h $(INCLPATH)/setops.h $(INCLPATH)/nodedecl.h $(INCLPATH)/operators.h $(INCLPATH)/tokdefs.h $(IDMSDIR)/idmskwords.rwd $(IDMSDIR)/idmslex.l
            cd $(IDMSDIR);  make

$(IDMSOBJDIR)/idmspar.o :   $(INCLPATH)/rtbtree.h $(INCLPATH)/memmgmt.h $(INCLPATH)/rtbyacc.h $(INCLPATH)/front.h $(INCLPATH)/msgMgr.h $(INCLPATH)/setops.h $(INCLPATH)/nodedecl.h $(INCLPATH)/operators.h $(INCLPATH)/tokdefs.h $(IDMSDIR)/idmskwords.rwd $(IDMSDIR)/idmspar.y
            cd $(IDMSDIR);  make

$(CICSOBJDIR)/cicslex.o :   $(INCLPATH)/rtbtree.h $(INCLPATH)/memmgmt.h $(INCLPATH)/rtbyacc.h $(INCLPATH)/front.h $(INCLPATH)/msgMgr.h $(INCLPATH)/setops.h $(INCLPATH)/nodedecl.h $(INCLPATH)/operators.h $(INCLPATH)/tokdefs.h $(CICSDIR)/cicskwords.rwd $(CICSDIR)/cicslex.l
            cd $(CICSDIR);  make

$(CICSOBJDIR)/cicspar.o :   $(INCLPATH)/rtbtree.h $(INCLPATH)/memmgmt.h $(INCLPATH)/rtbyacc.h $(INCLPATH)/front.h $(INCLPATH)/msgMgr.h $(INCLPATH)/setops.h $(INCLPATH)/nodedecl.h $(INCLPATH)/operators.h $(INCLPATH)/tokdefs.h $(CICSDIR)/cicskwords.rwd $(CICSDIR)/cicspar.y
            cd $(CICSDIR)   
            make

$(CICSOBJDIR)/cicsunp.o :   $(INCLPATH)/rtbtree.h $(INCLPATH)/memmgmt.h $(INCLPATH)/rtbyacc.h $(INCLPATH)/msgMgr.h $(INCLPATH)/front.h $(INCLPATH)/setops.h $(INCLPATH)/nodedecl.h $(INCLPATH)/operators.h $(INCLPATH)/tokdefs.h
            cd $(CICSDIR);  make

$(CICSOBJDIR)/cicskwordshash.o  :   $(INCLPATH)/rtbtree.h $(INCLPATH)/memmgmt.h $(INCLPATH)/rtbyacc.h $(INCLPATH)/front.h $(INCLPATH)/setops.h $(INCLPATH)/nodedecl.h $(INCLPATH)/operators.h $(INCLPATH)/tokdefs.h $(CICSDIR)/cicskwords.rwd
            cd $(CICSDIR);  make

$(DB2OBJDIR)/sqllex.o   :   $(INCLPATH)/rtbtree.h $(INCLPATH)/memmgmt.h $(INCLPATH)/rtbyacc.h $(INCLPATH)/msgMgr.h $(INCLPATH)/front.h $(INCLPATH)/setops.h $(INCLPATH)/nodedecl.h $(INCLPATH)/operators.h $(INCLPATH)/tokdefs.h $(DB2DIR)/sqlkwords.rwd $(DB2DIR)/sqllex.l
            cd ../db2/src;  make

Dev C ++的控制台:

make[205]: Entering directory 
cd ../cics/src                

make                          

make[206]: Entering directory 
cd ../cics/src                

make                          

make[207]: Entering directory 
cd ../cics/src                

make                          

make[208]: Entering directory 
cd ../cics/src                

.
.
.

接下来,控件都没有返回,也没有在子目录中执行make。我一直在打印这条线。

0 个答案:

没有答案