f751195dbad138cf7c153cae15c2f9c0533c6bd6
[oweals/opkg-lede.git] / libopkg / Makefile.am
1
2 ALL_CFLAGS=-g -O -Wall -Werror -DHOST_CPU_STR=\"@host_cpu@\" -DBUILD_CPU=@build_cpu@ -DLIBDIR=\"@libdir@\" -DOPKGLIBDIR=\"@opkglibdir@\" -DDATADIR=\"@datadir@\" -I$(top_srcdir)
3
4 libopkg_includedir=$(includedir)/libopkg
5
6 libopkg_include_HEADERS= \
7         args.h \
8         conffile.h \
9         conffile_list.h \
10         config.h \
11         hash_table.h \
12         includes.h \
13         opkg_conf.h \
14         opkg_message.h \
15         opkg_state.h \
16         nv_pair.h \
17         nv_pair_list.h \
18         pkg_depends.h \
19         pkg_dest.h \
20         pkg_dest_list.h \
21         pkg.h \
22         pkg_hash.h \
23         pkg_src.h \
24         pkg_src_list.h \
25         pkg_vec.h \
26         str_list.h \
27         void_list.h \
28         libopkg.h 
29
30 libopkg_la_LIBADD = $(top_builddir)/libbb/libbb.la $(CURL_LIBS) $(GPGME_LIBS)
31
32 # make sure we only export symbols that are for public use
33 libopkg_la_LDFLAGS = -export-symbols-regex "^opkg_.*"
34
35 opkg_core_sources = args.c args.h \
36                     user.c user.h 
37 opkg_libcore_sources = args.c args.h libopkg.c libopkg.h\
38                     user.c user.h opkg_state.c opkg_state.h
39 opkg_cmd_sources = opkg_cmd.c opkg_cmd.h \
40                    opkg_configure.c opkg_configure.h \
41                    opkg_download.c opkg_download.h \
42                    opkg_install.c opkg_install.h \
43                    opkg_upgrade.c opkg_upgrade.h \
44                    opkg_remove.c opkg_remove.h
45 opkg_db_sources = opkg_conf.c opkg_conf.h \
46                   opkg_utils.c opkg_utils.h pkg.c pkg.h hash_table.h \
47                   pkg_depends.c pkg_depends.h pkg_extract.c pkg_extract.h \
48                   hash_table.c pkg_hash.c pkg_hash.h pkg_parse.c pkg_parse.h \
49                   pkg_vec.c pkg_vec.h
50 opkg_list_sources = conffile.c conffile.h conffile_list.c conffile_list.h \
51                     nv_pair.c nv_pair.h nv_pair_list.c nv_pair_list.h \
52                     pkg_dest.c pkg_dest.h pkg_dest_list.c pkg_dest_list.h \
53                     pkg_src.c pkg_src.h pkg_src_list.c pkg_src_list.h \
54                     str_list.c str_list.h void_list.c void_list.h
55 opkg_util_sources = file_util.c file_util.h opkg_message.h opkg_message.c md5.c md5.h \
56                     sprintf_alloc.c sprintf_alloc.h str_util.c str_util.h \
57                     xregex.c xregex.h xsystem.c xsystem.h
58
59 libopkg_la_SOURCES = \
60         $(opkg_libcore_sources) \
61         $(opkg_cmd_sources) $(opkg_db_sources) \
62         $(opkg_util_sources) $(opkg_list_sources)
63
64 libopkg_la_CFLAGS = $(ALL_CFLAGS) $(BIGENDIAN_CFLAGS) $(CURL_CFLAGS) $(GPGME_CFLAGS)
65 lib_LTLIBRARIES = libopkg.la
66
67