mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 14:41:25 +00:00
The following build error occurs when building outside of the source directory: glib-mkenums --template spice-server-enums.tmpl.c ../../server/spice-server.h > spice-server-enums.c Can't open spice-server-enums.tmpl.c: No such file or directory Makefile:1111: recipe for target 'spice-server-enums.c' failed Make/Automake uses VPATH to determine that the spice-server-enums.tmpl.c file listed in the prerequisites for the rule is located in the srcdir. When we use an automatic variable (e.g. $<), the full path to the resolved file is used. But when we use the literal filename directly within the rule definition, this won't happen. So we need to explicitly specify that the input template file is located in srcdir. Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
223 lines
4.7 KiB
Makefile
223 lines
4.7 KiB
Makefile
NULL =
|
|
SUBDIRS = . tests
|
|
|
|
AM_CPPFLAGS = \
|
|
-DSPICE_SERVER_INTERNAL \
|
|
$(COMMON_CFLAGS) \
|
|
$(GLIB2_CFLAGS) \
|
|
$(GOBJECT2_CFLAGS) \
|
|
$(LZ4_CFLAGS) \
|
|
$(PIXMAN_CFLAGS) \
|
|
$(SASL_CFLAGS) \
|
|
$(SLIRP_CFLAGS) \
|
|
$(SMARTCARD_CFLAGS) \
|
|
$(GSTREAMER_0_10_CFLAGS) \
|
|
$(GSTREAMER_1_0_CFLAGS) \
|
|
$(SPICE_PROTOCOL_CFLAGS) \
|
|
$(SSL_CFLAGS) \
|
|
$(VISIBILITY_HIDDEN_CFLAGS) \
|
|
$(WARN_CFLAGS) \
|
|
$(NULL)
|
|
|
|
noinst_LTLIBRARIES = libserver.la
|
|
lib_LTLIBRARIES = libspice-server.la
|
|
|
|
libspice_server_la_LDFLAGS = \
|
|
-version-info $(SPICE_LT_VERSION) \
|
|
-no-undefined \
|
|
$(RELRO_LDFLAGS) \
|
|
$(NO_INDIRECT_LDFLAGS) \
|
|
$(NULL)
|
|
|
|
if HAVE_LD_VERSION_SCRIPT
|
|
libspice_server_la_LDFLAGS += \
|
|
-Wl,--version-script=$(top_srcdir)/server/spice-server.syms
|
|
endif
|
|
|
|
libserver_la_LIBADD = \
|
|
$(top_builddir)/spice-common/common/libspice-common.la \
|
|
$(top_builddir)/spice-common/common/libspice-common-server.la \
|
|
$(GL_LIBS) \
|
|
$(GLIB2_LIBS) \
|
|
$(GOBJECT2_LIBS) \
|
|
$(JPEG_LIBS) \
|
|
$(LZ4_LIBS) \
|
|
$(LIBRT) \
|
|
$(PIXMAN_LIBS) \
|
|
$(SASL_LIBS) \
|
|
$(SLIRP_LIBS) \
|
|
$(GSTREAMER_0_10_LIBS) \
|
|
$(GSTREAMER_1_0_LIBS) \
|
|
$(SSL_LIBS) \
|
|
$(Z_LIBS) \
|
|
$(SPICE_NONPKGCONFIG_LIBS) \
|
|
$(NULL)
|
|
|
|
libspice_serverincludedir = $(includedir)/spice-server
|
|
libspice_serverinclude_HEADERS = \
|
|
spice-audio.h \
|
|
spice-char.h \
|
|
spice-core.h \
|
|
spice-experimental.h \
|
|
spice-input.h \
|
|
spice-migration.h \
|
|
spice-qxl.h \
|
|
spice-server.h \
|
|
spice-version.h \
|
|
spice-replay.h \
|
|
spice.h \
|
|
$(NULL)
|
|
|
|
spice_built_sources = spice-server-enums.h spice-server-enums.c
|
|
|
|
libserver_la_SOURCES = \
|
|
$(libspice_serverinclude_HEADERS) \
|
|
agent-msg-filter.c \
|
|
agent-msg-filter.h \
|
|
cache-item.h \
|
|
char-device.c \
|
|
char-device.h \
|
|
common-graphics-channel.c \
|
|
common-graphics-channel.h \
|
|
demarshallers.h \
|
|
event-loop.c \
|
|
glz-encoder.c \
|
|
glz-encoder.h \
|
|
glz-encoder-dict.c \
|
|
glz-encoder-dict.h \
|
|
glz-encoder-priv.h \
|
|
inputs-channel.c \
|
|
inputs-channel.h \
|
|
inputs-channel-client.c \
|
|
inputs-channel-client.h \
|
|
jpeg-encoder.c \
|
|
jpeg-encoder.h \
|
|
main-channel.c \
|
|
main-channel.h \
|
|
main-channel-client.c \
|
|
main-channel-client.h \
|
|
mjpeg-encoder.c \
|
|
red-channel.c \
|
|
red-channel.h \
|
|
red-channel-client.c \
|
|
red-channel-client.h \
|
|
red-channel-client-private.h \
|
|
red-client.c \
|
|
red-client.h \
|
|
dummy-channel.c \
|
|
dummy-channel.h \
|
|
dummy-channel-client.c \
|
|
dummy-channel-client.h \
|
|
red-common.h \
|
|
dispatcher.c \
|
|
dispatcher.h \
|
|
red-qxl.c \
|
|
red-qxl.h \
|
|
main-dispatcher.c \
|
|
main-dispatcher.h \
|
|
migration-protocol.h \
|
|
memslot.c \
|
|
memslot.h \
|
|
red-parse-qxl.c \
|
|
red-record-qxl.c \
|
|
red-record-qxl.h \
|
|
red-replay-qxl.c \
|
|
red-parse-qxl.h \
|
|
red-worker.c \
|
|
red-worker.h \
|
|
display-channel.c \
|
|
display-channel.h \
|
|
display-channel-private.h \
|
|
cursor-channel-client.c \
|
|
cursor-channel-client.h \
|
|
cursor-channel.c \
|
|
cursor-channel.h \
|
|
red-pipe-item.c \
|
|
red-pipe-item.h \
|
|
reds.c \
|
|
reds.h \
|
|
reds-private.h \
|
|
reds-stream.c \
|
|
reds-stream.h \
|
|
sw-canvas.c \
|
|
sound.c \
|
|
sound.h \
|
|
stat.h \
|
|
stat-file.c \
|
|
stat-file.h \
|
|
spicevmc.c \
|
|
video-encoder.h \
|
|
zlib-encoder.c \
|
|
zlib-encoder.h \
|
|
image-cache.h \
|
|
image-cache.c \
|
|
pixmap-cache.h \
|
|
pixmap-cache.c \
|
|
tree.h \
|
|
tree.c \
|
|
spice-bitmap-utils.h \
|
|
spice-bitmap-utils.c \
|
|
utils.c \
|
|
utils.h \
|
|
stream.c \
|
|
stream.h \
|
|
dcc.c \
|
|
dcc-send.c \
|
|
dcc.h \
|
|
display-limits.h \
|
|
dcc-private.h \
|
|
image-encoders.c \
|
|
image-encoders.h \
|
|
glib-compat.h \
|
|
$(spice_built_sources) \
|
|
$(NULL)
|
|
|
|
if HAVE_LZ4
|
|
libserver_la_SOURCES += \
|
|
lz4-encoder.c \
|
|
lz4-encoder.h \
|
|
$(NULL)
|
|
endif
|
|
|
|
if HAVE_SMARTCARD
|
|
libserver_la_SOURCES += \
|
|
smartcard.c \
|
|
smartcard.h \
|
|
smartcard-channel-client.c \
|
|
smartcard-channel-client.h \
|
|
$(NULL)
|
|
endif
|
|
|
|
if HAVE_GSTREAMER_0_10
|
|
libserver_la_SOURCES += \
|
|
gstreamer-encoder.c \
|
|
$(NULL)
|
|
endif
|
|
|
|
if HAVE_GSTREAMER_1_0
|
|
libserver_la_SOURCES += \
|
|
gstreamer-encoder.c \
|
|
$(NULL)
|
|
endif
|
|
|
|
libspice_server_la_LIBADD = libserver.la
|
|
libspice_server_la_SOURCES =
|
|
|
|
spice-server-enums.c: spice-server.h spice-server-enums.tmpl.c
|
|
$(AM_V_GEN)glib-mkenums --template $(srcdir)/spice-server-enums.tmpl.c $< > $@
|
|
|
|
spice-server-enums.h: spice-server.h spice-server-enums.tmpl.h
|
|
$(AM_V_GEN)glib-mkenums --template $(srcdir)/spice-server-enums.tmpl.h $< > $@
|
|
|
|
EXTRA_DIST = \
|
|
spice-bitmap-utils.tmpl.c \
|
|
cache-item.tmpl.c \
|
|
glz-encode-match.tmpl.c \
|
|
glz-encode.tmpl.c \
|
|
spice-server.syms \
|
|
spice-server-enums.tmpl.h \
|
|
spice-server-enums.tmpl.c \
|
|
$(NULL)
|
|
|
|
BUILT_SOURCES = $(spice_built_sources)
|