📄 makefile
字号:
# # Copyright (C) 2000, 2002, 2003 Jeff Dike (jdike@karaya.com)# Licensed under the GPL## pcap is broken in 2.5 because kbuild doesn't allow pcap.a to be linked# in to pcap.oslip-objs := slip_kern.o slip_user.oslirp-objs := slirp_kern.o slirp_user.odaemon-objs := daemon_kern.o daemon_user.omcast-objs := mcast_kern.o mcast_user.onet-objs := net_kern.o net_user.omconsole-objs := mconsole_kern.o mconsole_user.ohostaudio-objs := hostaudio_kern.oubd-objs := ubd_kern.o ubd_user.oport-objs := port_kern.o port_user.oharddog-objs := harddog_kern.o harddog_user.oLDFLAGS_pcap.o := -r $(shell $(CC) $(CFLAGS) -print-file-name=libpcap.a)targets := pcap_kern.o pcap_user.o$(obj)/pcap.o: $(obj)/pcap_kern.o $(obj)/pcap_user.o $(LD) -r -dp -o $@ $^ $(LDFLAGS) $(LDFLAGS_pcap.o)#XXX: The call below does not work because the flags are added before the# object name, so nothing from the library gets linked.#$(call if_changed,ld)# When the above is fixed, don't forget to add this too!#targets += $(obj)/pcap.oobj-y := stdio_console.o fd.o chan_kern.o chan_user.o line.oobj-$(CONFIG_SSL) += ssl.oobj-$(CONFIG_STDERR_CONSOLE) += stderr_console.oobj-$(CONFIG_UML_NET_SLIP) += slip.o slip_common.oobj-$(CONFIG_UML_NET_SLIRP) += slirp.o slip_common.oobj-$(CONFIG_UML_NET_DAEMON) += daemon.o obj-$(CONFIG_UML_NET_MCAST) += mcast.o obj-$(CONFIG_UML_NET_PCAP) += pcap.oobj-$(CONFIG_UML_NET) += net.o obj-$(CONFIG_MCONSOLE) += mconsole.oobj-$(CONFIG_MMAPPER) += mmapper_kern.o obj-$(CONFIG_BLK_DEV_UBD) += ubd.o obj-$(CONFIG_HOSTAUDIO) += hostaudio.oobj-$(CONFIG_NULL_CHAN) += null.o obj-$(CONFIG_PORT_CHAN) += port.oobj-$(CONFIG_PTY_CHAN) += pty.oobj-$(CONFIG_TTY_CHAN) += tty.o obj-$(CONFIG_XTERM_CHAN) += xterm.o xterm_kern.oobj-$(CONFIG_UML_WATCHDOG) += harddog.oobj-$(CONFIG_BLK_DEV_COW_COMMON) += cow_user.oobj-$(CONFIG_UML_RANDOM) += random.o# pcap_user.o must be added explicitly.USER_OBJS := fd.o null.o pty.o tty.o xterm.o slip_common.o pcap_user.oinclude arch/um/scripts/Makefile.rules
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -