# # 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 umcast-objs := umcast_kern.o umcast_user.o net-objs := net_kern.o net_user.o mconsole-objs := mconsole_kern.o mconsole_user.o hostaudio-objs := hostaudio_kern.o ubd-objs := ubd_kern.o ubd_user.o port-objs := port_kern.o port_user.o harddog-objs := harddog_kern.o harddog_user.o LDFLAGS_pcap.o := -r $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libpcap.a) 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 $(obj)/pcap.o: $(obj)/pcap_kern.o $(obj)/pcap_user.o $(LD) -r -dp -o $@ $^ $(LDFLAGS) $(LDFLAGS_pcap.o) $(obj)/vde.o: $(obj)/vde_kern.o $(obj)/vde_user.o $(LD) -r -dp -o $@ $^ $(LDFLAGS) $(LDFLAGS_vde.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.o obj-y := stdio_console.o fd.o chan_kern.o chan_user.o line.o obj-$([31mCONFIG_SSL[0m) += ssl.o obj-$([31mCONFIG_STDERR_CONSOLE[0m) += stderr_console.o obj-$([31mCONFIG_UML_NET_SLIP[0m) += slip.o slip_common.o obj-$([31mCONFIG_UML_NET_SLIRP[0m) += slirp.o slip_common.o obj-$([31mCONFIG_UML_NET_DAEMON[0m) += daemon.o obj-$([31mCONFIG_UML_NET_VDE[0m) += vde.o obj-$([31mCONFIG_UML_NET_MCAST[0m) += umcast.o obj-$([31mCONFIG_UML_NET_PCAP[0m) += pcap.o obj-$([31mCONFIG_UML_NET[0m) += net.o obj-$([31mCONFIG_MCONSOLE[0m) += mconsole.o obj-$([31mCONFIG_MMAPPER[0m) += mmapper_kern.o obj-$([31mCONFIG_BLK_DEV_UBD[0m) += ubd.o obj-$([31mCONFIG_HOSTAUDIO[0m) += hostaudio.o obj-$([31mCONFIG_NULL_CHAN[0m) += null.o obj-$([31mCONFIG_PORT_CHAN[0m) += port.o obj-$([31mCONFIG_PTY_CHAN[0m) += pty.o obj-$([31mCONFIG_TTY_CHAN[0m) += tty.o obj-$([31mCONFIG_XTERM_CHAN[0m) += xterm.o xterm_kern.o obj-$([31mCONFIG_UML_WATCHDOG[0m) += harddog.o obj-$([31mCONFIG_BLK_DEV_COW_COMMON[0m) += cow_user.o obj-$([31mCONFIG_UML_RANDOM[0m) += 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.o vde_user.o CFLAGS_null.o = -DDEV_NULL=$(DEV_NULL_PATH) include arch/um/scripts/Makefile.rules |