📄 makefile.subdir
字号:
############################################################## Makefile.subdir for the GNU PIC Library###### Copyright (C) 2005 by Raphael Neider <rneider AT web.de>###### The GNU PIC Library was originally designed and### implemented by### Vangelis Rokas <vrokas@otenet.gr>###### It is currently maintained by### Raphael Neider <rneider AT web.de>###### This file may be distributed under the terms of the the### GNU General Public License (GPL). See COPYING for details.###### $Id: Makefile.subdir 4306 2006-07-27 17:32:43Z borutr $###include $(top_builddir)Makefile.commonSUBDIRS ?= MKLIB ?= # fallback: if builddir is not specified via the command line...builddir ?= build/$(patsubst $(shell cd $(top_builddir); pwd)/%,%,$(CURDIR))C_SRC ?= $(notdir $(wildcard $(srcdir)/*.c))S_SRC ?= $(notdir $(wildcard $(srcdir)/*.S))OBJS ?= $(addprefix $(top_builddir)$(builddir)/,$(C_SRC:.c=.o) $(S_SRC:.S=.o))LIB_O ?= $(OBJS)ifneq (,$(strip $(MKLIB)))LIB_LIB = $(top_builddir)$(builddir)/$(MKLIB)TARGETS ?= $(LIB_LIB)elseLIB_LIB = #TARGETS ?= $(OBJS)endif.PHONY : all install clean clean-intermediateall : installifneq (,$(strip $(TARGETS)))# usually install $(LIB_LIB) or $(OBJS), race condition in "[ -d x ] || mkdir x"install : recurse $(OBJS) $(LIB_LIB) @$(MKDIR) "$(top_builddir)$(installdir)"ifndef SILENT @echo "[INSTALL] $(patsubst $(top_builddir)$(builddir)/%,%,$(TARGETS))";endif $(Q)$(CP) $(TARGETS) "$(top_builddir)$(installdir)"else# used in subdirs like libc/ctype whose files# are contained in a parent's libraryinstall : recurse $(OBJS) $(LIB_LIB)endifclean : recurse @-echo "dummy" > .dummy $(Q)-$(RM) .dummy $(foreach suf,asm d p lst hex cod sym,$(OBJS:.o=.$(suf))) @-echo "dummy" > .dummy $(Q)-$(RM) .dummy $(OBJS) $(LIB_LIB) @-echo "dummy" > .dummy $(Q)-$(RM) .dummy $(TARGETS) @-echo "dummy" > .dummy $(Q)-$(RM) .dummy $(addprefix $(top_builddir)$(installdir)/,$(notdir $(TARGETS))) $(Q)-[ ! -d "$(top_builddir)$(builddir)" ] || $(RMDIR) "$(top_builddir)$(builddir)"distclean : cleanclean-intermediate : recurse @-echo "dummy" > .dummy $(Q)-$(RM) .dummy $(foreach suf,p lst hex cod sym,$(OBJS:.o=.$(suf))) include $(top_srcdir)/Makefile.rules
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -