Linux 2.6.17.7
[linux/fpc-iii.git] / arch / um / drivers / Makefile
blobde17d4c6e02db13309752ca26a99c2536f5f0163
1 #
2 # Copyright (C) 2000, 2002, 2003 Jeff Dike (jdike@karaya.com)
3 # Licensed under the GPL
6 # pcap is broken in 2.5 because kbuild doesn't allow pcap.a to be linked
7 # in to pcap.o
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
12 mcast-objs := mcast_kern.o mcast_user.o
13 net-objs := net_kern.o net_user.o
14 mconsole-objs := mconsole_kern.o mconsole_user.o
15 hostaudio-objs := hostaudio_kern.o
16 ubd-objs := ubd_kern.o ubd_user.o
17 port-objs := port_kern.o port_user.o
18 harddog-objs := harddog_kern.o harddog_user.o
20 LDFLAGS_pcap.o := -r $(shell $(CC) $(CFLAGS) -print-file-name=libpcap.a)
22 targets := pcap_kern.o pcap_user.o
24 $(obj)/pcap.o: $(obj)/pcap_kern.o $(obj)/pcap_user.o
25 $(LD) -r -dp -o $@ $^ $(LDFLAGS) $(LDFLAGS_pcap.o)
26 #XXX: The call below does not work because the flags are added before the
27 # object name, so nothing from the library gets linked.
28 #$(call if_changed,ld)
30 # When the above is fixed, don't forget to add this too!
31 #targets += $(obj)/pcap.o
33 obj-y := stdio_console.o fd.o chan_kern.o chan_user.o line.o
34 obj-$(CONFIG_SSL) += ssl.o
35 obj-$(CONFIG_STDERR_CONSOLE) += stderr_console.o
37 obj-$(CONFIG_UML_NET_SLIP) += slip.o slip_common.o
38 obj-$(CONFIG_UML_NET_SLIRP) += slirp.o slip_common.o
39 obj-$(CONFIG_UML_NET_DAEMON) += daemon.o
40 obj-$(CONFIG_UML_NET_MCAST) += mcast.o
41 obj-$(CONFIG_UML_NET_PCAP) += pcap.o
42 obj-$(CONFIG_UML_NET) += net.o
43 obj-$(CONFIG_MCONSOLE) += mconsole.o
44 obj-$(CONFIG_MMAPPER) += mmapper_kern.o
45 obj-$(CONFIG_BLK_DEV_UBD) += ubd.o
46 obj-$(CONFIG_HOSTAUDIO) += hostaudio.o
47 obj-$(CONFIG_NULL_CHAN) += null.o
48 obj-$(CONFIG_PORT_CHAN) += port.o
49 obj-$(CONFIG_PTY_CHAN) += pty.o
50 obj-$(CONFIG_TTY_CHAN) += tty.o
51 obj-$(CONFIG_XTERM_CHAN) += xterm.o xterm_kern.o
52 obj-$(CONFIG_UML_WATCHDOG) += harddog.o
53 obj-$(CONFIG_BLK_DEV_COW_COMMON) += cow_user.o
54 obj-$(CONFIG_UML_RANDOM) += random.o
56 # pcap_user.o must be added explicitly.
57 USER_OBJS := fd.o null.o pty.o tty.o xterm.o slip_common.o pcap_user.o
59 include arch/um/scripts/Makefile.rules