📄 makefile
字号:
# Makefile # # Original Author: J Spencer Seidel # Date: 10.16.99 # # Description:# Top level Apostle Makefile # # Revision History: # First version ## 0.0.1 10.16.99 J Spencer Seidel# 0.0.2 10.28.99 Guido de Jong# 0.0.3 12.22.99 Guido de Jong - new directory structure## This program is free software, you can redistribute it and/or# modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version # 2 of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be # useful, but WITHOUT ANY WARRANTY; without even the implied # warranty or MERCHANTABILITY or FITNESS FOR A PARTICULAR # PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General Public # License along with this program; if not, write to the # Free Software Foundation, Inc., 59 Temple Place, Suite 330, # Boston, MA 02111-1307 USA # ######################################################## Apostle OS ## Important.EXPORT_ALL_VARIABLES:###################################################################### Conditionals###### Complete directory pathMAKEROOT:=$(shell pwd)# DEBUG can be "-DDEBUG" or "" to turn it offDEBUG =-DDEBUGifeq ($(DEBUG),-DDEBUG)LIBDBG =-ldbgelseLIBDBG =endif###################################################################### Directories#####BIN =binINC =includeLIB =libOBJ =objSRC =src###################################################################### Targets#####include Rules.make.PHONY: all clean clobberall: $(BIN)/test1 $(BIN)/test2$(BIN)/test1: $(OBJ)/test1.o $(LD) $(LFLAGS) -Ttext 0x20000000 -o tmp $< $(OBJCOPY) $(OCFLAGS) tmp $@ $(RM) tmp$(BIN)/test2: $(OBJ)/test2.o $(LD) $(LFLAGS) -Ttext 0x20000000 -o tmp $< $(OBJCOPY) $(OCFLAGS) tmp $@ $(RM) tmpmostlyclean: (cd $(OBJ); $(RM) *.o) (cd $(SRC); $(RM) *~) (cd $(INC); $(RM) *~)clean: mostlyclean (cd $(LIB); $(RM) *.a)clobber: clean (cd $(BIN); $(RM) test*)realclean: clobber
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -