Commit | Line | Data |
---|---|---|
1da177e4 LT |
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 | |
4ff4d8d3 | 12 | umcast-objs := umcast_kern.o umcast_user.o |
1da177e4 LT |
13 | net-objs := net_kern.o net_user.o |
14 | mconsole-objs := mconsole_kern.o mconsole_user.o | |
15 | hostaudio-objs := hostaudio_kern.o | |
91acb21f | 16 | ubd-objs := ubd_kern.o ubd_user.o |
1da177e4 LT |
17 | port-objs := port_kern.o port_user.o |
18 | harddog-objs := harddog_kern.o harddog_user.o | |
19 | ||
a0f97e06 | 20 | LDFLAGS_pcap.o := -r $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libpcap.a) |
ecc354a9 | 21 | |
ad43c356 JD |
22 | LDFLAGS_vde.o := -r $(shell $(CC) $(CFLAGS) -print-file-name=libvdeplug.a) |
23 | ||
24 | targets := pcap_kern.o pcap_user.o vde_kern.o vde_user.o | |
8afe07ce | 25 | |
ecc354a9 PBG |
26 | $(obj)/pcap.o: $(obj)/pcap_kern.o $(obj)/pcap_user.o |
27 | $(LD) -r -dp -o $@ $^ $(LDFLAGS) $(LDFLAGS_pcap.o) | |
ad43c356 JD |
28 | |
29 | $(obj)/vde.o: $(obj)/vde_kern.o $(obj)/vde_user.o | |
30 | $(LD) -r -dp -o $@ $^ $(LDFLAGS) $(LDFLAGS_vde.o) | |
31 | ||
ecc354a9 PBG |
32 | #XXX: The call below does not work because the flags are added before the |
33 | # object name, so nothing from the library gets linked. | |
34 | #$(call if_changed,ld) | |
35 | ||
36 | # When the above is fixed, don't forget to add this too! | |
8afe07ce | 37 | #targets += $(obj)/pcap.o |
ecc354a9 | 38 | |
1da177e4 LT |
39 | obj-y := stdio_console.o fd.o chan_kern.o chan_user.o line.o |
40 | obj-$(CONFIG_SSL) += ssl.o | |
41 | obj-$(CONFIG_STDERR_CONSOLE) += stderr_console.o | |
42 | ||
a3c77c67 JD |
43 | obj-$(CONFIG_UML_NET_SLIP) += slip.o slip_common.o |
44 | obj-$(CONFIG_UML_NET_SLIRP) += slirp.o slip_common.o | |
1da177e4 | 45 | obj-$(CONFIG_UML_NET_DAEMON) += daemon.o |
ad43c356 | 46 | obj-$(CONFIG_UML_NET_VDE) += vde.o |
4ff4d8d3 | 47 | obj-$(CONFIG_UML_NET_MCAST) += umcast.o |
ecc354a9 | 48 | obj-$(CONFIG_UML_NET_PCAP) += pcap.o |
1da177e4 LT |
49 | obj-$(CONFIG_UML_NET) += net.o |
50 | obj-$(CONFIG_MCONSOLE) += mconsole.o | |
51 | obj-$(CONFIG_MMAPPER) += mmapper_kern.o | |
52 | obj-$(CONFIG_BLK_DEV_UBD) += ubd.o | |
53 | obj-$(CONFIG_HOSTAUDIO) += hostaudio.o | |
54 | obj-$(CONFIG_NULL_CHAN) += null.o | |
55 | obj-$(CONFIG_PORT_CHAN) += port.o | |
56 | obj-$(CONFIG_PTY_CHAN) += pty.o | |
57 | obj-$(CONFIG_TTY_CHAN) += tty.o | |
58 | obj-$(CONFIG_XTERM_CHAN) += xterm.o xterm_kern.o | |
59 | obj-$(CONFIG_UML_WATCHDOG) += harddog.o | |
60 | obj-$(CONFIG_BLK_DEV_COW_COMMON) += cow_user.o | |
61 | obj-$(CONFIG_UML_RANDOM) += random.o | |
62 | ||
ecc354a9 | 63 | # pcap_user.o must be added explicitly. |
ad43c356 | 64 | USER_OBJS := fd.o null.o pty.o tty.o xterm.o slip_common.o pcap_user.o vde_user.o |
ec82c32d | 65 | CFLAGS_null.o = -DDEV_NULL=$(DEV_NULL_PATH) |
1da177e4 LT |
66 | |
67 | include arch/um/scripts/Makefile.rules |