Remove generated files
[framework/connectivity/libgphoto2.git] / camlibs / Makefile.am
1 ########################################################################
2 # Usage instructions
3 ########################################################################
4 # If you only want to build a single camlib (say agfa_cl20), run
5 #     gmake -C camlibs agfa_cl20.la
6 # or
7 #     ( cd camlibs && make agfa_cl20.la )
8 #
9 # If you only want to install a single camlib or two, run
10 #     make DRIVERS="canon.la agfa_cl20.la" install
11 # in the camlibs/ subdir or in the libgphoto2 top-level directory.
12 ########################################################################
13
14
15 ########################################################################
16 # The only SUBDIRS here are "." (to run all-local checking the
17 # definition of the camlibs) and the special ones for building docs
18 # and stuff.
19 #
20 # Building the camlibs itself is defined in the Makefile-files
21 # included below.
22 SUBDIRS = .
23
24
25 ########################################################################
26 # Define the common variables added to in the included Makefile-files
27 CLEANFILES =
28 EXTRA_DIST = camlib.sym
29 camlibdoc_DATA =
30 localization_DATA =
31 localizationdir =
32 noinst_DATA =
33 noinst_LTLIBRARIES =
34 EXTRA_LTLIBRARIES =
35
36
37 ########################################################################
38 # All camlibs are defined as EXTRA_LTLIBRARIES. This requires that
39 # all camlibs have -rpath set explicitly in foobar_la_LDFLAGS.
40 # You're probably best off by using the camlib_* variables defined
41 # below.
42 camlib_LTLIBRARIES = $(BUILD_THESE_CAMLIBS)
43
44
45 ########################################################################
46 # Define the compile/link/etc. flags common to all camlibs in one place,
47 # i.e. here.
48
49 camlib_dependencies = $(top_srcdir)/camlibs/camlib.sym
50 camlib_ldflags = -module -no-undefined -avoid-version -export-dynamic \
51         -export-symbols '$(top_srcdir)/camlibs/camlib.sym' \
52         -rpath '$(camlibdir)'
53 camlib_libadd = $(top_builddir)/libgphoto2/libgphoto2.la \
54         $(top_builddir)/libgphoto2_port/libgphoto2_port/libgphoto2_port.la
55
56
57 ########################################################################
58 # You can generate this Makefile-files include list by running
59 # find . -name Makefile-files -exec echo include {} \; | sort | sed 's| ./| |g'
60 include agfa-cl20/Makefile-files
61 include aox/Makefile-files
62 include ax203/Makefile-files
63 include barbie/Makefile-files
64 include canon/Makefile-files
65 include casio/Makefile-files
66 include clicksmart310/Makefile-files
67 include digigr8/Makefile-files
68 include digita/Makefile-files
69 include dimera/Makefile-files
70 include directory/Makefile-files
71 include enigma13/Makefile-files
72 include gsmart300/Makefile-files
73 include hp215/Makefile-files
74 include iclick/Makefile-files
75 include jamcam/Makefile-files
76 include jd11/Makefile-files
77 include jl2005a/Makefile-files
78 include kodak/dc120/Makefile-files
79 include kodak/dc210/Makefile-files
80 include kodak/dc240/Makefile-files
81 include kodak/ez200/Makefile-files
82 include kodak/Makefile-files
83 include largan/lmini/Makefile-files
84 include lg_gsm/Makefile-files
85 include mars/Makefile-files
86 include panasonic/coolshot/Makefile-files
87 include panasonic/l859/Makefile-files
88 include panasonic/Makefile-files
89 include pccam300/Makefile-files
90 include pccam600/Makefile-files
91 include polaroid/Makefile-files
92 include ptp2/Makefile-files
93 include ricoh/Makefile-files
94 include samsung/Makefile-files
95 include sierra/Makefile-files
96 include sipix/Makefile-files
97 include smal/Makefile-files
98 include sonix/Makefile-files
99 include sonydscf1/Makefile-files
100 include sonydscf55/Makefile-files
101 include soundvision/Makefile-files
102 include spca50x/Makefile-files
103 include sq905/Makefile-files
104 include st2205/Makefile-files
105 include stv0674/Makefile-files
106 include sx330z/Makefile-files
107 include template/Makefile-files
108 include toshiba/pdrm11/Makefile-files
109 # End of list of Makefile-files
110
111
112 ########################################################################
113 # Print list of GP_CAMLIB() definitions suitable for adding to
114 # configure.ac
115 print-camlibs: Makefile
116         @for x in $(EXTRA_LTLIBRARIES); do \
117                 y="$$(basename "$$x" ".la")"; \
118                 echo "GP_CAMLIB([$$y])dnl"; \
119         done
120
121
122 ########################################################################
123 # Make sure that the list of camlibs defined in configure.ac using
124 # GP_CAMLIB(...) and the list of camlibs defined in */Makefile-files
125 # match.
126 CLEANFILES += all-src-camlibs all-def-camlibs
127 all-local: Makefile
128         @:; \
129         (for x in $(EXTRA_LTLIBRARIES) template.la; do echo "$$(basename "$$x" ".la")"; done) \
130                 | sort > all-src-camlibs; \
131         (for x in $(ALL_DEFINED_CAMLIBS); do echo "$$x"; done) \
132                 | sort > all-def-camlibs; \
133         if cmp all-def-camlibs all-src-camlibs; then :; else \
134                 diff -u all-def-camlibs all-src-camlibs; \
135                 echo "List of camlibs in configure.ac is out of date."; \
136                 echo "Have a developer update it using \"make -C camlibs print-camlibs\"."; \
137                 exit 1; \
138         fi
139
140
141 ########################################################################
142 # Shortcut for installation of a subset of camlibs/drivers
143 # Usage: make DRIVER="canon.la ptp2.la" install-drivers
144
145 install-drivers:
146         $(MAKE) BUILD_THESE_CAMLIBS="$(DRIVERS)" install-camlibLTLIBRARIES
147
148
149 ########################################################################
150 # End of camlibs/Makefile.am