makefile

来自「fsmlabs的real time linux的内核」· 代码 · 共 70 行

TXT
70
字号
# Makefile## Written by Robert Kavaler, 1998-2002## Copyright (C) 1998-2002, Innomedia, Inc. # All rights reserved.## Redistribution and use in source and binary forms, with or without# modification, are permitted provided that the following conditions are# met:# # Redistributions of source code must retain the above copyright# notice, this list of conditions and the following disclaimer. # # Redistributions in binary form must reproduce the above# copyright notice, this list of conditions and the following# disclaimer in the documentation and/or other materials# provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS# AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL# THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF# THE POSSIBILITY OF SUCH DAMAGE.include ../../rtl.mkall:		rtsock-test-mod.o rtsockurtsock-test.o:	rtsock-test.c rtsock-test-mod.o:	rtsock-test.o	ld $(LDFLAGS) -o $@ -r -static $+ `gcc -print-libgcc-file-name` rtsocku:	rtsocku.c	cc -I$(RTL_DIR)/include -o $@ -O2 -g -W $^clean:	rm -f rtsocku rtsock-test.o rtsock-test-mod.ortlconfigs:	- /sbin/rmmod rtl_fifo >& /dev/null	- /sbin/rmmod rtl_posixio >& /dev/null	- /sbin/rmmod rtl_sched >& /dev/null	- /sbin/rmmod rtl_time >& /dev/null	- /sbin/rmmod rtl >& /dev/null	/sbin/modprobe rtl	/sbin/modprobe rtl_time	/sbin/modprobe rtl_sched	/sbin/modprobe rtl_posixio	/sbin/modprobe rtl_fifoconfigs:	- /sbin/rmmod rtsock-test-mod >& /dev/null	- /sbin/rmmod rtsock >& /dev/null	/sbin/insmod ../rtsock.o	/sbin/insmod ./rtsock-test-mod.o

⌨️ 快捷键说明

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