rules.make
来自「一个操作系统的源代码」· MAKE 代码 · 共 65 行
MAKE
65 行
# rules.make# # Original Author: Guido de Jong# Date: 10.28.99# # Description:# Rules for Apostle Makefile# # 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 ####################################################################### Program files#####AS =nasmCC =gccLD =ldAR =arNM =nmOBJCOPY =objcopyCP =cpMV =mvRM =rm -f###################################################################### Flags#####ARFLAGS =rsASFLAGS =-f elf $(DEBUG)CFLAGS =-nostdlib -nostdinc -O3 -fno-builtin -fomit-frame-pointer \ -fno-defer-pop -I$(INC) -Wall -Wno-main $(DEBUG)LFLAGS =-L$(LIB) -S -XNMFLAGS =-C -g -nOCFLAGS =-O binary###################################################################### Rules#####.SUFFIXES: .c .s .o$(OBJ)/%.o: $(SRC)/%.s $(AS) $(ASFLAGS) -o $@ $<$(OBJ)/%.o: $(SRC)/%.c $(CC) $(CFLAGS) -c -o $@ $<
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?