📄 makefile
字号:
## Copyright (c) 2000, 2001 Dmitry Butskoy# <buc@citadel.stu.neva.ru># License: GPL v2 or any later## See COPYING for the status of this software.### Global Makefile.# Global rules, targets etc.## See Make.defines for specific configs.#srcdir = $(CURDIR)override TARGET := .MAINdummy: allinclude ./Make.rulestargets = $(EXEDIRS) $(LIBDIRS) $(MODDIRS)# be happy, easy, perfomancy....PHONY: $(subdirs) dummy all force.PHONY: depend indent clean distclean libclean release store libs modsallprereq := $(EXEDIRS)ifneq ($(LIBDIRS),)libs: $(LIBDIRS)ifneq ($(EXEDIRS),)$(EXEDIRS): libselseallprereq += libsendifendififneq ($(MODDIRS),)mods: $(MODDIRS)ifneq ($(MODUSERS),)$(MODUSERS): modselseallprereq += modsendififneq ($(LIBDIRS),)$(MODDIRS): libsendifendifall: $(allprereq)depend install: $(allprereq)$(foreach goal,$(filter install-%,$(MAKECMDGOALS)),\ $(eval $(goal): $(patsubst install-%,%,$(goal))))what = alldepend: what = dependinstall install-%: what = installifneq ($(share),)$(share): shared = yesendififneq ($(noshare),)$(noshare): shared = endif$(targets): mkfile = $(if $(wildcard $@/Makefile),,-f $(srcdir)/default.rules)$(targets): force @$(MAKE) $(mkfile) -C $@ $(what) TARGET=$@force:indent: find . -type f -name "*.[ch]" -print -exec $(INDENT) {} \;clean: rm -f $(foreach exe, $(EXEDIRS), ./$(exe)/$(exe)) nohup.out rm -f `find . \( -name "*.[oa]" -o -name "*.[ls]o" \ -o -name core -o -name "core.[0-9]*" -o -name a.out \) -print`distclean: clean rm -f `find $(foreach dir, $(subdirs), $(dir)/.) \ \( -name "*.[oa]" -o -name "*.[ls]o" \ -o -name core -o -name "core.[0-9]*" -o -name a.out \ -o -name .depend -o -name "_*" -o -name ".cross:*" \) \ -print`libclean: rm -f $(foreach lib, $(LIBDIRS), ./$(lib)/$(lib).a ./$(lib)/$(lib).so)# Rules to make whole-distributive operations.#STORE_DIR = $(HOME)/pubrelease release1 release2 release3: @./chvers.sh $@ @$(MAKE) storestore: distclean @./store.sh $(NAME) $(STORE_DIR)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -