2005-04-16 22:20:36 +00:00
|
|
|
#
|
|
|
|
# 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.o
|
|
|
|
|
|
|
|
slip-objs := slip_kern.o slip_user.o
|
|
|
|
slirp-objs := slirp_kern.o slirp_user.o
|
|
|
|
daemon-objs := daemon_kern.o daemon_user.o
|
2017-11-20 21:17:59 +00:00
|
|
|
vector-objs := vector_kern.o vector_user.o vector_transports.o
|
2011-05-25 00:13:02 +00:00
|
|
|
umcast-objs := umcast_kern.o umcast_user.o
|
2005-04-16 22:20:36 +00:00
|
|
|
net-objs := net_kern.o net_user.o
|
|
|
|
mconsole-objs := mconsole_kern.o mconsole_user.o
|
|
|
|
hostaudio-objs := hostaudio_kern.o
|
2005-10-11 03:10:32 +00:00
|
|
|
ubd-objs := ubd_kern.o ubd_user.o
|
2005-04-16 22:20:36 +00:00
|
|
|
port-objs := port_kern.o port_user.o
|
|
|
|
harddog-objs := harddog_kern.o harddog_user.o
|
|
|
|
|
2007-10-14 20:21:35 +00:00
|
|
|
LDFLAGS_pcap.o := -r $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libpcap.a)
|
2005-07-14 07:33:41 +00:00
|
|
|
|
2007-10-16 08:26:48 +00:00
|
|
|
LDFLAGS_vde.o := -r $(shell $(CC) $(CFLAGS) -print-file-name=libvdeplug.a)
|
|
|
|
|
|
|
|
targets := pcap_kern.o pcap_user.o vde_kern.o vde_user.o
|
2005-07-29 04:16:03 +00:00
|
|
|
|
2005-07-14 07:33:41 +00:00
|
|
|
$(obj)/pcap.o: $(obj)/pcap_kern.o $(obj)/pcap_user.o
|
2018-07-12 08:01:35 +00:00
|
|
|
$(LD) -r -dp -o $@ $^ $(ld_flags)
|
2007-10-16 08:26:48 +00:00
|
|
|
|
|
|
|
$(obj)/vde.o: $(obj)/vde_kern.o $(obj)/vde_user.o
|
2018-07-12 08:01:35 +00:00
|
|
|
$(LD) -r -dp -o $@ $^ $(ld_flags)
|
2007-10-16 08:26:48 +00:00
|
|
|
|
2005-07-14 07:33:41 +00:00
|
|
|
#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!
|
2005-07-29 04:16:03 +00:00
|
|
|
#targets += $(obj)/pcap.o
|
2005-07-14 07:33:41 +00:00
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
obj-y := stdio_console.o fd.o chan_kern.o chan_user.o line.o
|
|
|
|
obj-$(CONFIG_SSL) += ssl.o
|
|
|
|
obj-$(CONFIG_STDERR_CONSOLE) += stderr_console.o
|
|
|
|
|
2005-06-13 22:52:18 +00:00
|
|
|
obj-$(CONFIG_UML_NET_SLIP) += slip.o slip_common.o
|
|
|
|
obj-$(CONFIG_UML_NET_SLIRP) += slirp.o slip_common.o
|
2005-04-16 22:20:36 +00:00
|
|
|
obj-$(CONFIG_UML_NET_DAEMON) += daemon.o
|
2017-11-20 21:17:59 +00:00
|
|
|
obj-$(CONFIG_UML_NET_VECTOR) += vector.o
|
2007-10-16 08:26:48 +00:00
|
|
|
obj-$(CONFIG_UML_NET_VDE) += vde.o
|
2011-05-25 00:13:02 +00:00
|
|
|
obj-$(CONFIG_UML_NET_MCAST) += umcast.o
|
2005-07-14 07:33:41 +00:00
|
|
|
obj-$(CONFIG_UML_NET_PCAP) += pcap.o
|
2005-04-16 22:20:36 +00:00
|
|
|
obj-$(CONFIG_UML_NET) += net.o
|
|
|
|
obj-$(CONFIG_MCONSOLE) += mconsole.o
|
|
|
|
obj-$(CONFIG_MMAPPER) += mmapper_kern.o
|
|
|
|
obj-$(CONFIG_BLK_DEV_UBD) += ubd.o
|
|
|
|
obj-$(CONFIG_HOSTAUDIO) += hostaudio.o
|
|
|
|
obj-$(CONFIG_NULL_CHAN) += null.o
|
|
|
|
obj-$(CONFIG_PORT_CHAN) += port.o
|
|
|
|
obj-$(CONFIG_PTY_CHAN) += pty.o
|
|
|
|
obj-$(CONFIG_TTY_CHAN) += tty.o
|
|
|
|
obj-$(CONFIG_XTERM_CHAN) += xterm.o xterm_kern.o
|
|
|
|
obj-$(CONFIG_UML_WATCHDOG) += harddog.o
|
|
|
|
obj-$(CONFIG_BLK_DEV_COW_COMMON) += cow_user.o
|
|
|
|
obj-$(CONFIG_UML_RANDOM) += random.o
|
2019-09-11 12:51:20 +00:00
|
|
|
obj-$(CONFIG_VIRTIO_UML) += virtio_uml.o
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2005-07-14 07:33:41 +00:00
|
|
|
# pcap_user.o must be added explicitly.
|
2017-11-20 21:17:59 +00:00
|
|
|
USER_OBJS := fd.o null.o pty.o tty.o xterm.o slip_common.o pcap_user.o vde_user.o vector_user.o
|
2008-08-25 08:14:29 +00:00
|
|
|
CFLAGS_null.o = -DDEV_NULL=$(DEV_NULL_PATH)
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
include arch/um/scripts/Makefile.rules
|