mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
Instead of adding the definition of XEN_RUN_STORED to CFLAGS in multiple Makefiles, let configure add it to tools/config.h instead. Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
31 lines
956 B
Makefile
31 lines
956 B
Makefile
# Makefile shared with stubdom
|
|
|
|
XENSTORED_OBJS-y := xenstored_core.o xenstored_watch.o xenstored_domain.o
|
|
XENSTORED_OBJS-y += xenstored_transaction.o xenstored_control.o xenstored_lu.o
|
|
XENSTORED_OBJS-y += talloc.o utils.o hashtable.o
|
|
|
|
XENSTORED_OBJS-$(CONFIG_Linux) += xenstored_posix.o xenstored_lu_daemon.o
|
|
XENSTORED_OBJS-$(CONFIG_NetBSD) += xenstored_posix.o xenstored_lu_daemon.o
|
|
XENSTORED_OBJS-$(CONFIG_FreeBSD) += xenstored_posix.o xenstored_lu_daemon.o
|
|
XENSTORED_OBJS-$(CONFIG_MiniOS) += xenstored_minios.o xenstored_lu_minios.o
|
|
|
|
# Include configure output (config.h)
|
|
CFLAGS += -include $(XEN_ROOT)/tools/config.h
|
|
CFLAGS += -I./include
|
|
CFLAGS += $(CFLAGS_libxenevtchn)
|
|
CFLAGS += $(CFLAGS_libxenctrl)
|
|
CFLAGS += $(CFLAGS_libxenguest)
|
|
CFLAGS += $(CFLAGS_libxentoolcore)
|
|
|
|
ifdef CONFIG_STUBDOM
|
|
CFLAGS += -DNO_SOCKETS=1
|
|
endif
|
|
|
|
$(XENSTORED_OBJS-y): CFLAGS += $(CFLAGS_libxengnttab)
|
|
|
|
xenstored.a: $(XENSTORED_OBJS-y)
|
|
$(AR) cr $@ $^
|
|
|
|
clean::
|
|
$(RM) *.a *.o
|