gmyth-upnp/src/Makefile.am
author renatofilho
Fri Feb 01 22:17:33 2008 +0000 (2008-02-01)
branchtrunk
changeset 909 847da7267234
parent 699 3710052a05c9
permissions -rw-r--r--
[svn r915] updated to use libupnp
     1 SUBDIRS = .
     2 
     3 lib_LTLIBRARIES = libgmythupnp.la
     4 
     5 INCLUDES = -I$(top_srcdir)/src -I$(top_builddir)/src @GLIB_CFLAGS@ @GOBJECT_CFLAGS@
     6 
     7 BUILT_SOURCES =                                 \
     8         gmyth_upnp_marshal.c                    \
     9 	gmyth_upnp_marshal.h
    10 
    11 libgmythupnp_la_SOURCES = 			\
    12 	gmyth_upnp.c				\
    13 	$(BUILT_SOURCES)
    14 
    15 EXTRA_libgmythupnp_la_SOURCES = gmyth_upnp_marshal.list
    16 
    17 gmyth_upnp_marshal.h: gmyth_upnp_marshal.list
    18 	glib-genmarshal --header --prefix=gmyth_upnp_marshal gmyth_upnp_marshal.list > gmyth_upnp_marshal.h.tmp
    19 	mv gmyth_upnp_marshal.h.tmp gmyth_upnp_marshal.h
    20 
    21 gmyth_upnp_marshal.c: gmyth_upnp_marshal.list gmyth_upnp_marshal.h
    22 	echo "#include \"glib-object.h\"" > gmyth_upnp_marshal.c.tmp
    23 	echo "#include \"gmyth_upnp_marshal.h\"" >> gmyth_upnp_marshal.c.tmp
    24 	glib-genmarshal --body --prefix=gmyth_upnp_marshal $(srcdir)/gmyth_upnp_marshal.list >> gmyth_upnp_marshal.c.tmp
    25 	mv gmyth_upnp_marshal.c.tmp gmyth_upnp_marshal.c
    26 
    27 libgmythupnp_la_CFLAGS = 			\
    28 	-DDATADIR=\"$(pkgdatadir)\" 	\
    29 	$(LIBGMYTH_CFLAGS)			\
    30 	$(LIBUPNP_CFLAGS)
    31 
    32 libgmythupnp_la_LDFLAGS = 			\
    33 	-export-dynamic 		\
    34 	$(LIBGMYTH_LIBS) 			\
    35 	$(LIBUPNP_LIBS)
    36 
    37 libgmythupnp_includedir = 			\
    38 	$(pkgincludedir)
    39 
    40 libgmythupnp_include_HEADERS =    		\
    41 	gmyth_upnp.h
    42 	
    43 CLEANFILES = $(BUILT_SOURCES)