11da177e4SLinus Torvalds# 21da177e4SLinus Torvalds# Copyright (C) 2000, 2002, 2003 Jeff Dike (jdike@karaya.com) 31da177e4SLinus Torvalds# Licensed under the GPL 41da177e4SLinus Torvalds# 51da177e4SLinus Torvalds 61da177e4SLinus Torvalds# pcap is broken in 2.5 because kbuild doesn't allow pcap.a to be linked 71da177e4SLinus Torvalds# in to pcap.o 81da177e4SLinus Torvalds 91da177e4SLinus Torvaldsslip-objs := slip_kern.o slip_user.o 101da177e4SLinus Torvaldsslirp-objs := slirp_kern.o slirp_user.o 111da177e4SLinus Torvaldsdaemon-objs := daemon_kern.o daemon_user.o 121da177e4SLinus Torvaldsmcast-objs := mcast_kern.o mcast_user.o 131da177e4SLinus Torvaldsnet-objs := net_kern.o net_user.o 141da177e4SLinus Torvaldsmconsole-objs := mconsole_kern.o mconsole_user.o 151da177e4SLinus Torvaldshostaudio-objs := hostaudio_kern.o 1691acb21fSJeff Dikeubd-objs := ubd_kern.o ubd_user.o 171da177e4SLinus Torvaldsport-objs := port_kern.o port_user.o 181da177e4SLinus Torvaldsharddog-objs := harddog_kern.o harddog_user.o 191da177e4SLinus Torvalds 20ecc354a9SPaolo 'Blaisorblade' GiarrussoLDFLAGS_pcap.o := -r $(shell $(CC) $(CFLAGS) -print-file-name=libpcap.a) 21ecc354a9SPaolo 'Blaisorblade' Giarrusso 228afe07ceSPaolo 'Blaisorblade' Giarrussotargets := pcap_kern.o pcap_user.o 238afe07ceSPaolo 'Blaisorblade' Giarrusso 24ecc354a9SPaolo 'Blaisorblade' Giarrusso$(obj)/pcap.o: $(obj)/pcap_kern.o $(obj)/pcap_user.o 25ecc354a9SPaolo 'Blaisorblade' Giarrusso $(LD) -r -dp -o $@ $^ $(LDFLAGS) $(LDFLAGS_pcap.o) 26ecc354a9SPaolo 'Blaisorblade' Giarrusso#XXX: The call below does not work because the flags are added before the 27ecc354a9SPaolo 'Blaisorblade' Giarrusso# object name, so nothing from the library gets linked. 28ecc354a9SPaolo 'Blaisorblade' Giarrusso#$(call if_changed,ld) 29ecc354a9SPaolo 'Blaisorblade' Giarrusso 30ecc354a9SPaolo 'Blaisorblade' Giarrusso# When the above is fixed, don't forget to add this too! 318afe07ceSPaolo 'Blaisorblade' Giarrusso#targets += $(obj)/pcap.o 32ecc354a9SPaolo 'Blaisorblade' Giarrusso 331da177e4SLinus Torvaldsobj-y := stdio_console.o fd.o chan_kern.o chan_user.o line.o 341da177e4SLinus Torvaldsobj-$(CONFIG_SSL) += ssl.o 351da177e4SLinus Torvaldsobj-$(CONFIG_STDERR_CONSOLE) += stderr_console.o 361da177e4SLinus Torvalds 37a3c77c67SJeff Dikeobj-$(CONFIG_UML_NET_SLIP) += slip.o slip_common.o 38a3c77c67SJeff Dikeobj-$(CONFIG_UML_NET_SLIRP) += slirp.o slip_common.o 391da177e4SLinus Torvaldsobj-$(CONFIG_UML_NET_DAEMON) += daemon.o 401da177e4SLinus Torvaldsobj-$(CONFIG_UML_NET_MCAST) += mcast.o 41ecc354a9SPaolo 'Blaisorblade' Giarrussoobj-$(CONFIG_UML_NET_PCAP) += pcap.o 421da177e4SLinus Torvaldsobj-$(CONFIG_UML_NET) += net.o 431da177e4SLinus Torvaldsobj-$(CONFIG_MCONSOLE) += mconsole.o 441da177e4SLinus Torvaldsobj-$(CONFIG_MMAPPER) += mmapper_kern.o 451da177e4SLinus Torvaldsobj-$(CONFIG_BLK_DEV_UBD) += ubd.o 461da177e4SLinus Torvaldsobj-$(CONFIG_HOSTAUDIO) += hostaudio.o 471da177e4SLinus Torvaldsobj-$(CONFIG_NULL_CHAN) += null.o 481da177e4SLinus Torvaldsobj-$(CONFIG_PORT_CHAN) += port.o 491da177e4SLinus Torvaldsobj-$(CONFIG_PTY_CHAN) += pty.o 501da177e4SLinus Torvaldsobj-$(CONFIG_TTY_CHAN) += tty.o 511da177e4SLinus Torvaldsobj-$(CONFIG_XTERM_CHAN) += xterm.o xterm_kern.o 521da177e4SLinus Torvaldsobj-$(CONFIG_UML_WATCHDOG) += harddog.o 531da177e4SLinus Torvaldsobj-$(CONFIG_BLK_DEV_COW_COMMON) += cow_user.o 541da177e4SLinus Torvaldsobj-$(CONFIG_UML_RANDOM) += random.o 551da177e4SLinus Torvalds 56ecc354a9SPaolo 'Blaisorblade' Giarrusso# pcap_user.o must be added explicitly. 57ecc354a9SPaolo 'Blaisorblade' GiarrussoUSER_OBJS := fd.o null.o pty.o tty.o xterm.o slip_common.o pcap_user.o 581da177e4SLinus Torvalds 591da177e4SLinus Torvaldsinclude arch/um/scripts/Makefile.rules 60