dirsrc.mak

来自「C++类模版库实现」· MAK 代码 · 共 25 行

MAK
25
字号
# -*- Makefile -*- Time-stamp: <03/10/27 18:07:14 ptr># $Id: dirsrc.mak,v 1.1 2003/11/14 19:58:28 ptr Exp $# Some trick to build implicit rules for sources in some different# subdirectories. I remove catalogs from path to sources, with this# names I build output object path, and provide dependency from# source in directory. Due to no loops for rules definition, I should# use recursion here;# try take directory from list:WORD1 := $(word 1,$(DIRS_UNIQUE_SRC))# is still directory in the list?ifneq "$(WORD1)" ""include ${RULESBASE}/rules-o.makinclude ${RULESBASE}/rules-d.makifeq ($(OSNAME),cygwin)include ${RULESBASE}/rules-res.makendif# remove processed directory from listDIRS_UNIQUE_SRC := $(filter-out $(WORD1),$(DIRS_UNIQUE_SRC))# recursive include here:include ${RULESBASE}/${USE_MAKE}/dirsrc.makendif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?