2019-12-10 18:00:56 +00:00
|
|
|
if !ENABLE_MSVC_ONLY
|
|
|
|
|
2014-08-13 10:39:27 +01:00
|
|
|
bin_PROGRAMS = sgen-grep-binprot
|
|
|
|
|
|
|
|
AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir)
|
|
|
|
|
2018-08-07 15:19:03 +00:00
|
|
|
glib_libs = $(top_builddir)/mono/eglib/libeglib.la
|
|
|
|
|
2016-08-03 10:59:49 +00:00
|
|
|
noinst_LIBRARIES = libsgen-grep-binprot.a libsgen-grep-binprot32p.a libsgen-grep-binprot64p.a
|
2019-02-04 20:11:37 +00:00
|
|
|
|
|
|
|
# Main is in a library so it can be C++.
|
|
|
|
noinst_LIBRARIES += libmain.a
|
|
|
|
|
2019-12-10 18:00:56 +00:00
|
|
|
endif # !ENABLE_MSVC_ONLY
|
|
|
|
|
2019-02-04 20:11:37 +00:00
|
|
|
# Default to C so the executable is linked as C and does not use libstdc++.
|
|
|
|
# Also the -xc++ flag mishandles .o and .a files.
|
|
|
|
CFLAGS = $(filter-out @CXX_REMOVE_CFLAGS@, @CFLAGS@)
|
|
|
|
|
2019-12-10 18:00:56 +00:00
|
|
|
if !ENABLE_MSVC_ONLY
|
|
|
|
|
2019-02-04 20:11:37 +00:00
|
|
|
# Libraries are C++ if enabled.
|
|
|
|
libmain_a_CFLAGS = @CXX_ADD_CFLAGS@
|
|
|
|
libsgen_grep_binprot_a_CFLAGS = @CXX_ADD_CFLAGS@
|
|
|
|
libsgen_grep_binprot32p_a_CFLAGS = @CXX_ADD_CFLAGS@
|
|
|
|
libsgen_grep_binprot64p_a_CFLAGS = @CXX_ADD_CFLAGS@
|
|
|
|
|
2016-11-10 13:04:39 +00:00
|
|
|
libsgen_grep_binprot_a_SOURCES = sgen-grep-binprot.c sgen-grep-binprot.h
|
2016-08-03 10:59:49 +00:00
|
|
|
libsgen_grep_binprot_a_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir)
|
2016-11-10 13:04:39 +00:00
|
|
|
libsgen_grep_binprot32p_a_SOURCES = sgen-grep-binprot.c sgen-grep-binprot.h
|
2016-08-03 10:59:49 +00:00
|
|
|
libsgen_grep_binprot32p_a_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) -DBINPROT_SIZEOF_VOID_P=4 -DBINPROT_HAS_HEADER
|
2016-11-10 13:04:39 +00:00
|
|
|
libsgen_grep_binprot64p_a_SOURCES = sgen-grep-binprot.c sgen-grep-binprot.h
|
2016-08-03 10:59:49 +00:00
|
|
|
libsgen_grep_binprot64p_a_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) -DBINPROT_SIZEOF_VOID_P=8 -DBINPROT_HAS_HEADER
|
|
|
|
|
2019-02-04 20:11:37 +00:00
|
|
|
# Executable has no source files, just links to object files and libraries.
|
|
|
|
sgen_grep_binprot_SOURCES =
|
|
|
|
|
|
|
|
libmain_a_SOURCES = \
|
2016-08-03 10:59:49 +00:00
|
|
|
sgen-grep-binprot-main.c \
|
2016-11-10 13:04:39 +00:00
|
|
|
sgen-entry-stream.c \
|
|
|
|
sgen-entry-stream.h
|
2014-08-13 10:39:27 +01:00
|
|
|
|
2019-02-04 20:11:37 +00:00
|
|
|
# Link to the libmain object files instead of library for higher fidelity with old behavior.
|
2014-08-13 10:39:27 +01:00
|
|
|
sgen_grep_binprot_LDADD = \
|
2019-02-04 20:11:37 +00:00
|
|
|
libmain_a-sgen-grep-binprot-main.$(OBJEXT) \
|
|
|
|
libmain_a-sgen-entry-stream.$(OBJEXT) \
|
2018-08-07 15:19:03 +00:00
|
|
|
$(glib_libs) libsgen-grep-binprot.a libsgen-grep-binprot32p.a libsgen-grep-binprot64p.a
|
2019-12-10 18:00:56 +00:00
|
|
|
|
|
|
|
endif # !ENABLE_MSVC_ONLY
|