gnumakerules

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

TXT
122
字号
## Copyright (c) 1995-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.#ifndef _oskit_freebsd_libc_makerules__oskit_freebsd_libc_makerules_ = yesTARGET	= liboskit_freebsd_c_r.aall: $(TARGET)SRCDIRS	+=	$(OSKIT_SRCDIR)/freebsd/libc/gmon			\		$(OSKIT_SRCDIR)/freebsd/libc/glue			\		$(OSKIT_SRCDIR)/freebsd/libc/malloc			\ 		$(OSKIT_SRCDIR)/freebsd/libc/arm32/glue			\ 		$(OSKIT_SRCDIR)/freebsd/libc/arm32/net			\ 		$(OSKIT_SRCDIR)/freebsd/libc/arm32/gen			\ 		$(OSKIT_SRCDIR)/freebsd/libc/arm32/stdlib		\ 		$(OSKIT_SRCDIR)/freebsd/libc/arm32/string		\ 		$(OSKIT_SRCDIR)/freebsd/libc/arm32/fplib		\		$(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/db/btree	\		$(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/db/db		\		$(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/db/hash	\		$(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/db/mpool	\		$(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/db/recno	\		$(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/net		\		$(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/nls		\		$(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/quad		\		$(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/regex		\		$(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/stdio		\		$(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/stdlib		\		$(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/stdtime	\		$(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/locale		\		$(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/string## There are many oddballs in the gen directory which I do not want# to deal with yet. Just build some of it.#MOSTLY_SRCDIRS := \		$(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/genOBJFILES +=	_rand48.o alarm.o assert.o drand48.o \		erand48.o err.o fnmatch.o fts.o isatty.o jrand48.o \		lcong48.o lrand48.o mrand48.o nrand48.o seed48.o \		signal.o srand48.o termios.o tcgetattr.o time.o \		getcwd.o exec.o ctermid.o fstab.o getgrent.o getpwent.o \		getpass.o valloc.o arc4random.oINCDIRS +=	$(OSKIT_SRCDIR)/freebsd/libc/include			\		$(OSKIT_SRCDIR)/freebsd/libc_r/include			\		$(OSKIT_SRCDIR)/freebsd/3.x/src/include			\		$(OSKIT_SRCDIR)/freebsd/3.x/src/sys			\		$(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/include	\		$(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/arm32		\		objincludeDEFINES +=	-DOSKIT -DTHREAD_SAFE -DNOPOLL -DNO__GETCWD \		-D__DBINTERFACE_PRIVATE -D__MPOOLINTERFACE_PRIVATE## Override the build environment compiler setting of FreeBSD#OSKIT_CPPFLAGS += \		-include $(OSKIT_SRCDIR)/freebsd/3.x/shared/freebsd_version.h# This file isn't meant to be compiled by itself.OSKIT_EXCLUDE := $(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/regex/engine.c# This is superceded by the version in the glue dirrectory.OSKIT_EXCLUDE += $(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/string/strerror.c### Include other appropriate make rules files ###include $(OSKIT_SRCDIR)/GNUmakerules-lib# Remove the -I- from the CPPFLAGS option string,# because the db code needs the traditional C compiler behavior# of searching for headers first in the source file's directory.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_machineobjinclude/machine:	-mkdir -p objinclude	ln -s ../objinclude_machine objinclude/machine	ln -s $(OSKIT_SRCDIR)/freebsd/libc/include/arm32 objinclude_machineprepare:: objinclude/machinemcount.po: $(OSKIT_SRCDIR)/freebsd/libc/gmon/mcount.c	$(filter-out -pg, $(CC)) -c $(OSKIT_CFLAGS) $(CFLAGS) -DGPROF $(DEFINES)  \		$< -o mcount.po$(TARGET): $(OBJDIR)/lib/liboskit_posix_r.a $(OBJFILES)	cp $(OBJDIR)/lib/liboskit_posix_r.a $@	$(AR) $(ARFLAGS) $@ $(OBJFILES)	$(RANLIB) $@$(PTARGET): $(OBJDIR)/lib/liboskit_posix_r_p.a $(POBJFILES)	cp $(OBJDIR)/lib/liboskit_posix_r_p.a $@	$(AR) $(ARFLAGS) $@ $(POBJFILES)	$(RANLIB) $@endif

⌨️ 快捷键说明

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