Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / openbios / arch / unix / plugins / Rules.plugin
diff --git a/qemu/roms/openbios/arch/unix/plugins/Rules.plugin b/qemu/roms/openbios/arch/unix/plugins/Rules.plugin
new file mode 100644 (file)
index 0000000..9e9b625
--- /dev/null
@@ -0,0 +1,15 @@
+# -*- makefile -*-
+
+INCLUDES               = -I$(top_srcdir)/include -DBOOTSTRAP
+CFLAGS                 = -fPIC
+
+%.so: %.o
+       $(CC) -shared $(CFLAGS) $(filter %.o,$^) -o $@
+
+THISDIR                        := $(notdir $(shell pwd))
+
+all-local:             $(addprefix $(ODIR)/../,$(PLUGINS))
+
+$(ODIR)/../%.so: $(ODIR)/%.so
+       install -d ../$(ODIR)
+       ln -f "../$(THISDIR)"/$< $@