Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2000, 2002, 2003 Jeff Dike (jdike@karaya.com) |
| 3 | # Licensed under the GPL |
| 4 | # |
| 5 | |
| 6 | # pcap is broken in 2.5 because kbuild doesn't allow pcap.a to be linked |
| 7 | # in to pcap.o |
| 8 | |
| 9 | slip-objs := slip_kern.o slip_user.o |
| 10 | slirp-objs := slirp_kern.o slirp_user.o |
| 11 | daemon-objs := daemon_kern.o daemon_user.o |
Anton Ivanov | 49da7e6 | 2017-11-20 21:17:59 +0000 | [diff] [blame] | 12 | vector-objs := vector_kern.o vector_user.o vector_transports.o |
Nolan Leake | 4ff4d8d | 2011-05-24 17:13:02 -0700 | [diff] [blame] | 13 | umcast-objs := umcast_kern.o umcast_user.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | net-objs := net_kern.o net_user.o |
| 15 | mconsole-objs := mconsole_kern.o mconsole_user.o |
| 16 | hostaudio-objs := hostaudio_kern.o |
Jeff Dike | 91acb21 | 2005-10-10 23:10:32 -0400 | [diff] [blame] | 17 | ubd-objs := ubd_kern.o ubd_user.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | port-objs := port_kern.o port_user.o |
| 19 | harddog-objs := harddog_kern.o harddog_user.o |
| 20 | |
Sam Ravnborg | a0f97e0 | 2007-10-14 22:21:35 +0200 | [diff] [blame] | 21 | LDFLAGS_pcap.o := -r $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libpcap.a) |
Paolo 'Blaisorblade' Giarrusso | ecc354a | 2005-07-14 00:33:41 -0700 | [diff] [blame] | 22 | |
Jeff Dike | ad43c35 | 2007-10-16 01:26:48 -0700 | [diff] [blame] | 23 | LDFLAGS_vde.o := -r $(shell $(CC) $(CFLAGS) -print-file-name=libvdeplug.a) |
| 24 | |
| 25 | targets := pcap_kern.o pcap_user.o vde_kern.o vde_user.o |
Paolo 'Blaisorblade' Giarrusso | 8afe07c | 2005-07-28 21:16:03 -0700 | [diff] [blame] | 26 | |
Paolo 'Blaisorblade' Giarrusso | ecc354a | 2005-07-14 00:33:41 -0700 | [diff] [blame] | 27 | $(obj)/pcap.o: $(obj)/pcap_kern.o $(obj)/pcap_user.o |
Masahiro Yamada | 2fb9279 | 2018-07-12 17:01:35 +0900 | [diff] [blame] | 28 | $(LD) -r -dp -o $@ $^ $(ld_flags) |
Jeff Dike | ad43c35 | 2007-10-16 01:26:48 -0700 | [diff] [blame] | 29 | |
| 30 | $(obj)/vde.o: $(obj)/vde_kern.o $(obj)/vde_user.o |
Masahiro Yamada | 2fb9279 | 2018-07-12 17:01:35 +0900 | [diff] [blame] | 31 | $(LD) -r -dp -o $@ $^ $(ld_flags) |
Jeff Dike | ad43c35 | 2007-10-16 01:26:48 -0700 | [diff] [blame] | 32 | |
Paolo 'Blaisorblade' Giarrusso | ecc354a | 2005-07-14 00:33:41 -0700 | [diff] [blame] | 33 | #XXX: The call below does not work because the flags are added before the |
| 34 | # object name, so nothing from the library gets linked. |
| 35 | #$(call if_changed,ld) |
| 36 | |
| 37 | # When the above is fixed, don't forget to add this too! |
Paolo 'Blaisorblade' Giarrusso | 8afe07c | 2005-07-28 21:16:03 -0700 | [diff] [blame] | 38 | #targets += $(obj)/pcap.o |
Paolo 'Blaisorblade' Giarrusso | ecc354a | 2005-07-14 00:33:41 -0700 | [diff] [blame] | 39 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | obj-y := stdio_console.o fd.o chan_kern.o chan_user.o line.o |
| 41 | obj-$(CONFIG_SSL) += ssl.o |
| 42 | obj-$(CONFIG_STDERR_CONSOLE) += stderr_console.o |
| 43 | |
Jeff Dike | a3c77c6 | 2005-06-13 15:52:18 -0700 | [diff] [blame] | 44 | obj-$(CONFIG_UML_NET_SLIP) += slip.o slip_common.o |
| 45 | obj-$(CONFIG_UML_NET_SLIRP) += slirp.o slip_common.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | obj-$(CONFIG_UML_NET_DAEMON) += daemon.o |
Anton Ivanov | 49da7e6 | 2017-11-20 21:17:59 +0000 | [diff] [blame] | 47 | obj-$(CONFIG_UML_NET_VECTOR) += vector.o |
Jeff Dike | ad43c35 | 2007-10-16 01:26:48 -0700 | [diff] [blame] | 48 | obj-$(CONFIG_UML_NET_VDE) += vde.o |
Nolan Leake | 4ff4d8d | 2011-05-24 17:13:02 -0700 | [diff] [blame] | 49 | obj-$(CONFIG_UML_NET_MCAST) += umcast.o |
Paolo 'Blaisorblade' Giarrusso | ecc354a | 2005-07-14 00:33:41 -0700 | [diff] [blame] | 50 | obj-$(CONFIG_UML_NET_PCAP) += pcap.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 51 | obj-$(CONFIG_UML_NET) += net.o |
| 52 | obj-$(CONFIG_MCONSOLE) += mconsole.o |
| 53 | obj-$(CONFIG_MMAPPER) += mmapper_kern.o |
| 54 | obj-$(CONFIG_BLK_DEV_UBD) += ubd.o |
| 55 | obj-$(CONFIG_HOSTAUDIO) += hostaudio.o |
| 56 | obj-$(CONFIG_NULL_CHAN) += null.o |
| 57 | obj-$(CONFIG_PORT_CHAN) += port.o |
| 58 | obj-$(CONFIG_PTY_CHAN) += pty.o |
| 59 | obj-$(CONFIG_TTY_CHAN) += tty.o |
| 60 | obj-$(CONFIG_XTERM_CHAN) += xterm.o xterm_kern.o |
| 61 | obj-$(CONFIG_UML_WATCHDOG) += harddog.o |
| 62 | obj-$(CONFIG_BLK_DEV_COW_COMMON) += cow_user.o |
| 63 | obj-$(CONFIG_UML_RANDOM) += random.o |
| 64 | |
Paolo 'Blaisorblade' Giarrusso | ecc354a | 2005-07-14 00:33:41 -0700 | [diff] [blame] | 65 | # pcap_user.o must be added explicitly. |
Anton Ivanov | 49da7e6 | 2017-11-20 21:17:59 +0000 | [diff] [blame] | 66 | USER_OBJS := fd.o null.o pty.o tty.o xterm.o slip_common.o pcap_user.o vde_user.o vector_user.o |
Al Viro | ec82c32 | 2008-08-25 04:14:29 -0400 | [diff] [blame] | 67 | CFLAGS_null.o = -DDEV_NULL=$(DEV_NULL_PATH) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 68 | |
| 69 | include arch/um/scripts/Makefile.rules |