ui/sdl2: Grab Alt+Tab also in fullscreen mode
[qemu/ar7.git] / contrib / plugins / Makefile
blob23e0396687e816e57f28aa5773cd4343c6e6250d
1 # -*- Mode: makefile -*-
3 # This Makefile example is fairly independent from the main makefile
4 # so users can take and adapt it for their build. We only really
5 # include config-host.mak so we don't have to repeat probing for
6 # cflags that the main configure has already done for us.
9 BUILD_DIR := $(CURDIR)/../..
11 include $(BUILD_DIR)/config-host.mak
13 VPATH += $(SRC_PATH)/contrib/plugins
15 NAMES :=
16 NAMES += execlog
17 NAMES += hotblocks
18 NAMES += hotpages
19 NAMES += howvec
20 NAMES += lockstep
21 NAMES += hwprofile
22 NAMES += cache
23 NAMES += drcov
25 SONAMES := $(addsuffix .so,$(addprefix lib,$(NAMES)))
27 # The main QEMU uses Glib extensively so it's perfectly fine to use it
28 # in plugins (which many example do).
29 CFLAGS = $(GLIB_CFLAGS)
30 CFLAGS += -fPIC -Wall $(filter -W%, $(QEMU_CFLAGS))
31 CFLAGS += $(if $(findstring no-psabi,$(QEMU_CFLAGS)),-Wpsabi)
32 CFLAGS += $(if $(CONFIG_DEBUG_TCG), -ggdb -O0)
33 CFLAGS += -I$(SRC_PATH)/include/qemu
35 all: $(SONAMES)
37 %.o: %.c
38 $(CC) $(CFLAGS) -c -o $@ $<
40 lib%.so: %.o
41 $(CC) -shared -Wl,-soname,$@ -o $@ $^ $(LDLIBS)
43 clean:
44 rm -f *.o *.so *.d
45 rm -Rf .libs
47 .PHONY: all clean