⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gnumakerules

📁 基于组件方式开发操作系统的OSKIT源代码
💻
字号:
## Copyright (c) 2001 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_examples_x86_sproc_makerules__oskit_examples_x86_sproc_makerules__ = yesUSER_PROGS = usermain_testsproc usermain_hello usermain_mallocBMODS = kernel swapfile $(USER_PROGS)TARGETS = Imageall: $(TARGETS)SRCDIRS +=	$(OSKIT_SRCDIR)/examples/x86/sprocINCDIRS +=	$(OSKIT_SRCDIR)/oskit/cCLEAN_FILES +=	$(TARGETS) $(BMODS) *.gdbOSKIT_CFLAGS += -DOSKIT## The C library is made up of several pieces. The core library, the# POSIX interface that converts syscalls to COM, and the actual COM # interfaces. Note that the C library is built with the COM library.#CLIB   = -loskit_c#CLIB_P = -loskit_c_p -loskit_gprof -loskit_c_p -loskit_kern_pinclude $(OSKIT_SRCDIR)/GNUmakerulesDEPENDLIBS = $(filter %.a, $(foreach DIR,$(LIBDIRS),$(wildcard $(DIR)/*)))THRDLIBS   = -loskit_threads -loskit_netbsd_uvm THRDLIBS_P   = -loskit_threads_p -loskit_netbsd_uvm_pCLIB   = -loskit_freebsd_c_r -loskit_com -loskit_threadsCLIB_P = -loskit_freebsd_c_r_p -loskit_com_p -loskit_threads_p -loskit_gprof \	-loskit_freebsd_c_r_p -loskit_kern_pkernel: $(OBJDIR)/lib/multiboot.o kernel.o kern_syscall.o $(DEPENDLIBS)	$(OSKIT_QUIET_MAKE_INFORM) "Linking example $@"	$(LD) -Ttext 100000 $(LDFLAGS) $(OSKIT_LDFLAGS) \		-o $@ $(filter-out %.a,$^)		\		-loskit_startup -loskit_fsnamespace \		-loskit_memfs -loskit_sproc \		-loskit_netbsd_uvm -loskit_exec -loskit_memfs \		$(THRDLIBS) -loskit_clientos \		-loskit_dev -loskit_kern -loskit_lmm \		$(CLIB) $(OBJDIR)/lib/crtn.okernel_p.gdb: $(OBJDIR)/lib/multiboot.o kernel.po kern_syscall.po $(DEPENDLIBS)	$(OSKIT_QUIET_MAKE_INFORM) "Linking example $@"	$(LD) -Ttext 100000 $(LDFLAGS) $(OSKIT_LDFLAGS) \		-o $@ $(filter-out %.a,$^)		\		-loskit_startup_p -loskit_fsnamespace_p \		-loskit_memfs_p -loskit_sproc_p \		-loskit_netbsd_uvm_p -loskit_exec_p -loskit_memfs_p \		$(THRDLIBS_P) -loskit_clientos_p \		-loskit_realtime_p -loskit_kern_p -loskit_lmm_p \		$(CLIB_P) \		$(OBJDIR)/lib/crtn.okernel_p: kernel_p.gdb	cp kernel_p.gdb kernel_p	strip kernel_p## Build user mode programs# USER_CRT  = user_crt.oUSER_OBJS = user_syscall.o user_mem.o user_morecore.ousermain_testsproc: $(USER_CRT) usermain_testsproc.o $(USER_OBJS)	$(CC) -nostdlib -static $(USER_CRT) usermain_testsproc.o $(USER_OBJS) \		-o $@ -Xlinker -Ttext -Xlinker 40000000 \		-L../../../lib -loskit_c -loskit_lmmusermain_hello: $(USER_CRT) usermain_hello.o $(USER_OBJS)	$(CC) -nostdlib -static $(USER_CRT) usermain_hello.o $(USER_OBJS) \		-o $@ -Xlinker -Ttext -Xlinker 40000000 \		-L../../../lib -loskit_c -loskit_lmmusermain_malloc: $(USER_CRT) usermain_malloc.o $(USER_OBJS)	$(CC) -nostdlib -static $(USER_CRT) usermain_malloc.o $(USER_OBJS) \		-o $@ -Xlinker -Ttext -Xlinker 40000000 \		-L../../../lib -loskit_c -loskit_lmm## Small swapfile (1MB)#swapfile:	dd if=/dev/zero of=$@ count=2048## Bind all together!#Image: $(BMODS)	echo "use 'mkmb2 $(BMODS)' to build the bmod"Image_p: kernel_p kernel_p.gdb swapfile $(USER_PROGS)	echo "use 'mkmb2 -o $@ kernel_p kernel_p.gdb:a.out swapfile $(USER_PROGS)' to build a bmod"endif

⌨️ 快捷键说明

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