gnumakerules

来自「基于组件方式开发操作系统的OSKIT源代码」· 代码 · 共 78 行

TXT
78
字号
## Copyright (c) 1997-1998, 2000 University of Utah and the Flux Group.# All rights reserved.# # This file is part of the Flux OSKit.  The OSKit is free software, also known# as "open source;" you can redistribute it and/or modify it under the terms# of the GNU General Public License (GPL), version 2, as published by the Free# Software Foundation (FSF).  To explore alternate licensing terms, contact# the University of Utah at csl-dist@cs.utah.edu or +1-801-585-3271.# # The OSKit is distributed in the hope that it will be useful, but WITHOUT ANY# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS# FOR A PARTICULAR PURPOSE.  See the GPL for more details.  You should have# received a copy of the GPL along with the OSKit; see the file COPYING.  If# not, write to the FSF, 59 Temple Place #330, Boston, MA 02111-1307, USA.### these GNUmakerules are shared between the FreeBSD derived stuff# (which is dev and net for now)## This file is included by the actual GNUmakerules files in these # directories. Unfortunately, one has to be careful *where* to# include it (after setting OBJFILES, for instance) ##ifndef _oskit_freebsd_shared_makerules__oskit_freebsd_shared_makerules_ = yesSRCDIRS += $(addprefix $(OSKIT_SRCDIR)/freebsd/3.x/,	\		shared					\		shared/$(HOST_ARCH)			\		src/sys/kern				\		src/sys/libkern)# include filesINCDIRS += $(OSKIT_SRCDIR)/freebsd/3.x/shared/include   \	   $(OSKIT_SRCDIR)/freebsd/3.x/src/sys          \	   $(OSKIT_SRCDIR)/freebsd/3.x/src/include	\	   objincludeifeq ($(HOST_ARCH),x86)OBJINC   = $(OSKIT_SRCDIR)/freebsd/3.x/src/sys/i386/include elseOBJINC   = $(OSKIT_SRCDIR)/freebsd/3.x/shared/arm32/includeendif# definesDEFINES += -DOSKIT -DKERNEL## Override the build environment compiler setting of FreeBSD#OSKIT_CPPFLAGS += -include $(OSKIT_SRCDIR)/freebsd/3.x/shared/freebsd_version.h### Include other appropriate make rules files ###include $(OSKIT_SRCDIR)/GNUmakerules-lib# Remove the -I- from the CPPFLAGS option string,# because some stupid code in FreeBSD uses #include <file.h># to include private header files...#OSKIT_CPPFLAGS := $(filter-out -I-,$(OSKIT_CPPFLAGS))# Create the objinclude/machine symlink.# We have to kludge a little to get it to work right,# because OSKIT_SRCDIR might be either an absolute or a relative path# and it will only work reliably if interpreted from _this_ directory.$(OBJFILES): objinclude/machineCLEAN_FILES += objinclude objinclude/machine objinclude_machineobjinclude/machine:	-mkdir -p objinclude	ln -s ../objinclude_machine objinclude/machine	ln -s $(OBJINC) objinclude_machineprepare:: objinclude/machine#endif

⌨️ 快捷键说明

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