随笔 - 137  文章 - 1  trackbacks - 0
<2017年10月>
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

常用链接

留言簿

随笔分类

随笔档案

收藏夹

调试技巧

搜索

  •  

最新评论

阅读排行榜

评论排行榜

添加了cd路径
  
1 cc=../tolua++                                                                                                                                                                                                    
  
2 PKG:= $(wildcard ./pkg/*.pkg)                                                                                                                                                                                    
  3 PKG_NOTDIR:= $(notdir $(PKG))                                                                                                                                                                                    
  4 src:=$(basename  $(PKG_NOTDIR))                                                                                                                                                                                  
  5     
  6 define call_tolua                                                                                                                                                                                                
  7     $(cc) -n tolua$(1) -H ../cpp2lua/tolua$(1).h -o ../cpp2lua/tolua$(1).cpp $(1).pkg;                                                                                                                           
  8 endef                                                                                                                                                                                                            
  9     
 10 SRC_TOLUA:                                                                                                                                                                                                       
 11     cd "./pkg";$(foreach tmp, $(src), $(call call_tolua,$(tmp)))                                                                                                                                                                        
 12     python tolua_open.py                                                                                                                                                                                         
 13     
 14 all: SRC_TOLUA   

cc=./tolua++    
#src
=GameServer GameServerConfig   
PKG := $(wildcard ./pkg/*.pkg)
PKG_NOTDIR := $(notdir $(PKG))
src := $(basename $(PKG_NOTDIR))

define call_tolua   
     $(cc) 
-n tolua$(1-H ./cpp2lua/tolua$(1).h -o ./cpp2lua/tolua$(1).cpp ./pkg/$(1).pkg;   
endef             
                 
SRC_TOLUA:        
    $(
foreach tmp, $(src), $(call call_tolua,$(tmp)))  
                
all: SRC_TOLUA   

posted on 2017-10-10 17:42 长戟十三千 阅读(862) 评论(0)  编辑 收藏 引用 所属分类: 编程技巧随笔

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理