loader: Don't distribute sdksyms.c and make it depend on the config
sdksyms.c is constructed by processing header files with the C preprocessor. Its contents will vary depending on the precise configuration options, and so must depend on the config header files. We have one header file which is always changed when any config option is modified called do-not-use-config.h (which may want a different name at some point), so make sdksyms.c depend on that file. Also, we don't want to ship this file; it always needs to be built. So, include it in the nodist_libloader_la_SOURCES list to prevent it from being added to the tarball. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
This commit is contained in:
parent
705f047876
commit
628d16a92a
|
@ -12,18 +12,21 @@ EXTRA_DIST = \
|
|||
loaderProcs.h \
|
||||
sdksyms.sh
|
||||
|
||||
nodist_libloader_la_SOURCES = \
|
||||
sdksyms.c
|
||||
|
||||
libloader_la_SOURCES = \
|
||||
loader.c \
|
||||
loaderProcs.h \
|
||||
loadext.c \
|
||||
loadmod.c \
|
||||
os.c \
|
||||
sdksyms.c
|
||||
os.c
|
||||
|
||||
libloader_la_LIBADD = $(DLOPEN_LIBS)
|
||||
|
||||
CLEANFILES = sdksyms.c sdksyms.dep
|
||||
|
||||
sdksyms.dep sdksyms.c: sdksyms.sh
|
||||
sdksyms.dep sdksyms.c: sdksyms.sh $(top_builddir)/include/do-not-use-config.h
|
||||
CPP='$(CPP)' AWK='$(AWK)' $(srcdir)/sdksyms.sh $(top_srcdir) $(AM_CFLAGS) $(CFLAGS) $(INCLUDES)
|
||||
|
||||
SDKSYMS_DEP = sdksyms.dep
|
||||
|
|
Loading…
Reference in New Issue
Block a user