"Initial commit to Gerrit"
[profile/ivi/libgsf.git] / gsf / Makefile.am
1 AM_CPPFLAGS = -I$(top_srcdir) $(LIBGSF_CFLAGS) $(Z_CPPFLAGS) $(LIBGSF_GIO_CFLAGS) \
2         -DGNOMELOCALEDIR=\"$(datadir)/locale\"
3
4 lib_LTLIBRARIES = libgsf-1.la
5
6 if WITH_GIO
7 gioc=gsf-input-gio.c gsf-output-gio.c
8 gioh=gsf-input-gio.h gsf-output-gio.h
9 giola=$(LIBGSF_GIO_LIBS)
10 else
11 gioc=
12 gioh=
13 giola=
14 endif
15
16
17 libgsf_1_la_LIBADD  = $(LIBGSF_LIBS) $(Z_LIBS) $(BZ2_LIBS) $(giola)
18 libgsf_1_la_LDFLAGS = -version-info $(VERSION_INFO)
19 if WITH_WIN32
20   libgsf_1_la_DEPENDENCIES = lib.def
21   libgsf_1_la_LDFLAGS += -no-undefined -export-symbols lib.def
22 endif
23
24 libgsf_1_la_SOURCES =           \
25         gsf-utils.c             \
26         gsf-libxml.c            \
27         gsf-doc-meta-data.c     \
28         gsf-docprop-vector.c    \
29         gsf-msole-impl.h        \
30         gsf-msole-utils.c       \
31         gsf-open-pkg-utils.c    \
32         gsf-opendoc-utils.c     \
33         gsf-timestamp.c         \
34         gsf-zip-impl.h          \
35         gsf-zip-utils.c         \
36         \
37         gsf-input.c             \
38         gsf-input-bzip.c        \
39         gsf-input-gzip.c        \
40         gsf-input-http.c        \
41         gsf-input-iochannel.c   \
42         gsf-input-memory.c      \
43         gsf-input-proxy.c       \
44         gsf-input-stdio.c       \
45         gsf-input-textline.c    \
46         \
47         gsf-infile.c            \
48         gsf-infile-msole.c      \
49         gsf-infile-msvba.c      \
50         gsf-infile-stdio.c      \
51         gsf-infile-tar.c        \
52         gsf-infile-zip.c        \
53         \
54         gsf-output.c            \
55         gsf-output-bzip.c       \
56         gsf-output-csv.c        \
57         gsf-output-gzip.c       \
58         gsf-output-iconv.c      \
59         gsf-output-iochannel.c  \
60         gsf-output-memory.c     \
61         gsf-output-stdio.c      \
62         \
63         gsf-outfile.c           \
64         gsf-outfile-msole.c     \
65         gsf-outfile-stdio.c     \
66         gsf-outfile-zip.c       \
67         \
68         gsf-shared-memory.c     \
69         gsf-structured-blob.c   \
70         gsf-blob.c              \
71         gsf-clip-data.c         \
72         \
73         $(gioc)                 \
74         version.c
75 #       gsf-output-transaction.c        \
76 #       gsf-command-context.c   \
77 #       gsf-io-context.c
78
79 libgsf_1_includedir = $(includedir)/libgsf-1/gsf
80 libgsf_1_include_HEADERS =      \
81         gsf.h                   \
82         gsf-utils.h             \
83         gsf-libxml.h            \
84         gsf-impl-utils.h        \
85         gsf-doc-meta-data.h     \
86         gsf-docprop-vector.h    \
87         gsf-msole-utils.h       \
88         gsf-open-pkg-utils.h    \
89         gsf-opendoc-utils.h     \
90         gsf-timestamp.h         \
91         \
92         gsf-input.h             \
93         gsf-input-impl.h        \
94         gsf-input-bzip.h        \
95         gsf-input-gzip.h        \
96         gsf-input-http.h        \
97         gsf-input-iochannel.h   \
98         gsf-input-memory.h      \
99         gsf-input-proxy.h       \
100         gsf-input-stdio.h       \
101         gsf-input-textline.h    \
102         \
103         gsf-infile.h            \
104         gsf-infile-impl.h       \
105         gsf-infile-msole.h      \
106         gsf-infile-msvba.h      \
107         gsf-infile-stdio.h      \
108         gsf-infile-tar.h        \
109         gsf-infile-zip.h        \
110         \
111         gsf-output.h            \
112         gsf-output-impl.h       \
113         gsf-output-bzip.h       \
114         gsf-output-csv.h        \
115         gsf-output-gzip.h       \
116         gsf-output-iconv.h      \
117         gsf-output-iochannel.h  \
118         gsf-output-memory.h     \
119         gsf-output-stdio.h      \
120         \
121         gsf-outfile.h           \
122         gsf-outfile-impl.h      \
123         gsf-outfile-msole.h     \
124         gsf-outfile-stdio.h     \
125         gsf-outfile-zip.h       \
126         \
127         gsf-shared-memory.h     \
128         gsf-structured-blob.h   \
129         gsf-meta-names.h        \
130         gsf-blob.h              \
131         gsf-clip-data.h         \
132         \
133         $(gioh)
134 #       gsf-command-context.h   \
135 #       gsf-io-context.h
136
137 include $(top_srcdir)/gsf.mk
138 CPP_CFLAGS = -DGLIB_CHECK_VERSION\(x,y,z\)
139 LIB_PUBLIC_HDRS = $(libgsf_1_include_HEADERS)
140
141 if HAVE_LIBEXE
142 gsf_mslibdir = $(DESTDIR)$(libdir)
143 gsf_mslib_DATA = gsf-1.lib
144
145 gsf-1.lib: libgsf-1.la lib.def
146         lib -name:libgsf-1-$(CURRENT_MINUS_AGE).dll -def:lib.def -out:$@
147
148 CLEANFILES = gsf-1.exp gsf-1.lib
149 endif
150