Merge branch 'master' into errorstate
[cascardo/gnio.git] / gnio / Makefile.am
1 NULL =
2
3 #INCLUDES =                                     \
4 #       $(SAMBA_CFLAGS)                         \
5 #       -I$(top_srcdir)                         \
6 #       -I$(top_builddir)                       \
7 #       $(GLIB_CFLAGS)                          \
8 #       -DG_DISABLE_DEPRECATED
9
10 AM_CPPFLAGS = \
11         -DG_LOG_DOMAIN=\"GLib-GIO\"                     \
12         -I$(top_builddir)                               \
13         -I$(top_srcdir)                                 \
14         $(GLIB_CFLAGS)                                  \
15         $(GLIB_DEBUG_FLAGS)                             \
16         -DG_DISABLE_DEPRECATED                          \
17         -DGIO_COMPILATION
18
19 lib_LTLIBRARIES=libgnio.la
20
21 libgnio_la_SOURCES =        \
22         ginetaddress.c      \
23         ginet4address.c     \
24         ginet6address.c     \
25         gresolver.c         \
26         gsocketaddress.c    \
27         ginetsocketaddress.c \
28         gsocket.c \
29         gtcpserver.c \
30         gtcpclient.c \
31         gnetworkinputstream.c \
32         gnetworkoutputstream.c \
33         gasynchelper.c \
34         gnioenumtypes.c \
35         $(NULL)
36
37
38 gnio_headers =  \
39         ginetaddress.h      \
40         ginet4address.h     \
41         ginet6address.h     \
42         gresolver.h         \
43         gsocketaddress.h    \
44         ginetsocketaddress.h \
45         gsocket.h \
46         gtcpserver.h \
47         gtcpclient.h \
48         gnio.h \
49         gnioenumtypes.h \
50         gnetworkinputstream.h \
51         gnetworkoutputstream.h \
52         $(NULL)
53
54 gnioincludedir=$(includedir)/gnio/
55 gnioinclude_HEADERS =           \
56         $(gnio_headers) \
57         gnioenumtypes.h
58
59 BUILT_SOURCES = \
60         gnioenumtypes.h \
61         gnioenumtypes.c \
62         $(NULL)
63
64 gnioenumtypes.h: $(gnio_headers) gnioenumtypes.h.template
65         ( top_builddir=`cd $(top_builddir) && pwd`; \
66           cd $(srcdir) && glib-mkenums --template gnioenumtypes.h.template $(gnio_headers) ) > \
67             gnioenumtypes.h.tmp && mv gnioenumtypes.h.tmp gnioenumtypes.h
68
69 gnioenumtypes.c: $(gnio_headers) gnioenumtypes.c.template
70         ( top_builddir=`cd $(top_builddir) && pwd`; \
71           cd $(srcdir) && glib-mkenums --template gnioenumtypes.c.template $(gnio_headers) ) > \
72             gnioenumtypes.c.tmp && mv gnioenumtypes.c.tmp gnioenumtypes.c
73
74