[sgen] Pack structs for binary protocol entries
[mono.git] / tools / sgen / Makefile.am
index 6d982d29548ad09a3736ef4f3c0b4e5f83dc4281..8f9473eb55413704455aee1dfb702008ca9cdb75 100644 (file)
@@ -2,10 +2,16 @@ bin_PROGRAMS = sgen-grep-binprot
 
 AM_CPPFLAGS =  $(GLIB_CFLAGS) -I$(top_srcdir)
 
+noinst_LIBRARIES = libsgen-grep-binprot.a libsgen-grep-binprotp.a
+libsgen_grep_binprot_a_SOURCES = sgen-grep-binprot.c
+libsgen_grep_binprot_a_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir)
+libsgen_grep_binprotp_a_SOURCES = sgen-grep-binprot.c
+libsgen_grep_binprotp_a_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) -DBINPROT_HAS_HEADER
+
 sgen_grep_binprot_SOURCES = \
        sgen-grep-binprot-main.c        \
        sgen-grep-binprot.c             \
        sgen-entry-stream.c
 
 sgen_grep_binprot_LDADD = \
-       $(GLIB_LIBS) $(LIBICONV)
+       $(GLIB_LIBS) $(LIBICONV) libsgen-grep-binprot.a libsgen-grep-binprotp.a