⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.depend

📁 nedit 是一款linux下的开发源码的功能强大的编辑器
💻 DEPEND
字号:
# $Id: Makefile.depend,v 1.5 2003/05/20 00:27:55 n8gray Exp $## This is a _generic_ Makefile to generate a dependency file# using GNUmake and gcc.# Advantage of this method (as compared to "makedepend(1)")# is that one can easily filter out dependencies on# non-application (i.e. system) headers using the -MM flag# of gcc. The reason to demand GNUMake is basically to have a nice,# simple rule for $(SRCS) as done below (and for the variable# transformations).# So one doesn't have to modify this file and manually add/update# the source file list!## To use it just you probably just have to edit the# variables in the *CONFIG section* as you see fit.# ***************** CONFIG section *****************GCC=gccDEFINES=CPPFLAGS=-I$(HOME)/includeDEPENDFILE=dependenciesSHELL=/bin/sh# Headers are required to determine _all_ files# on which the dependency file itself may dependSRCS=$(wildcard *.c)HDRS=$(wildcard ../source/*.h) $(wildcard ../util/*.h)# *************** End CONFIG section ************# ************** Now the generic part ***********.SUFFIXES: .c .o. deps.PHONY: all default deps newDEPS=$(SRCS:.c=.deps)default: all# This is the more conservative approachfull: clean new deps# And this a more sophisticated oneall: $(DEPENDFILE)# Remove old file, create new one and add CVS info line at topnew:	/bin/rm -f $(DEPENDFILE)	echo '# $$''Id''$$' >$(DEPENDFILE)$(DEPENDFILE): new $(SRCS) $(HDRS)	$(GCC) $(CPPFLAGS) $(DEFINES) -MM $(SRCS) >>$(DEPENDFILE)deps: $(DEPS)%.deps: %.c	$(GCC) $(CPPFLAGS) $(DEFINES) -MM $< >>$(DEPENDFILE)verify_config:

⌨️ 快捷键说明

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