summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-05-04 18:18:40 +0200
committerGravatar Nikias Bassen2009-05-04 18:18:40 +0200
commit7364e09f6849076c710ac9ce52a5d5fd2445e19c (patch)
treeb1435d14501f704900142c0a5f7b11ea5f3217fa
parentcae80628faeeb19a88a28d7fb058e74f8b2743ed (diff)
downloadusbmuxd-7364e09f6849076c710ac9ce52a5d5fd2445e19c.tar.gz
usbmuxd-7364e09f6849076c710ac9ce52a5d5fd2445e19c.tar.bz2
Use autotools build system and add license
Signed-off-by: Nikias Bassen <nikias@gmx.li>
-rw-r--r--COPYING340
-rw-r--r--Makefile696
-rw-r--r--Makefile.am6
-rwxr-xr-xautogen.sh6
-rw-r--r--configure.ac28
-rw-r--r--src/Makefile.am31
-rw-r--r--src/libusbmuxd.c (renamed from libusbmuxd.c)0
-rw-r--r--src/main.c (renamed from main.c)0
-rw-r--r--src/sock_stuff.c (renamed from sock_stuff.c)0
-rw-r--r--src/sock_stuff.h (renamed from sock_stuff.h)0
-rw-r--r--src/usbmux.c (renamed from usbmux.c)0
-rw-r--r--src/usbmux.h (renamed from usbmux.h)0
-rw-r--r--src/usbmuxd-proto.h (renamed from usbmuxd-proto.h)0
-rw-r--r--src/usbmuxd.h (renamed from usbmuxd.h)0
-rw-r--r--tools/Makefile.am5
-rw-r--r--tools/iproxy.c (renamed from iproxy.c)0
-rw-r--r--udev/85-usbmuxd.rules (renamed from 85-usbmuxd.rules)0
-rw-r--r--udev/Makefile.am4
18 files changed, 1061 insertions, 55 deletions
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..08ddefd
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,340 @@
1 GNU GENERAL PUBLIC LICENSE
2 Version 2, June 1991
3
4 Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6 Everyone is permitted to copy and distribute verbatim copies
7 of this license document, but changing it is not allowed.
8
9 Preamble
10
11 The licenses for most software are designed to take away your
12freedom to share and change it. By contrast, the GNU General Public
13License is intended to guarantee your freedom to share and change free
14software--to make sure the software is free for all its users. This
15General Public License applies to most of the Free Software
16Foundation's software and to any other program whose authors commit to
17using it. (Some other Free Software Foundation software is covered by
18the GNU Lesser General Public License instead.) You can apply it to
19your programs, too.
20
21 When we speak of free software, we are referring to freedom, not
22price. Our General Public Licenses are designed to make sure that you
23have the freedom to distribute copies of free software (and charge for
24this service if you wish), that you receive source code or can get it
25if you want it, that you can change the software or use pieces of it
26in new free programs; and that you know you can do these things.
27
28 To protect your rights, we need to make restrictions that forbid
29anyone to deny you these rights or to ask you to surrender the rights.
30These restrictions translate to certain responsibilities for you if you
31distribute copies of the software, or if you modify it.
32
33 For example, if you distribute copies of such a program, whether
34gratis or for a fee, you must give the recipients all the rights that
35you have. You must make sure that they, too, receive or can get the
36source code. And you must show them these terms so they know their
37rights.
38
39 We protect your rights with two steps: (1) copyright the software, and
40(2) offer you this license which gives you legal permission to copy,
41distribute and/or modify the software.
42
43 Also, for each author's protection and ours, we want to make certain
44that everyone understands that there is no warranty for this free
45software. If the software is modified by someone else and passed on, we
46want its recipients to know that what they have is not the original, so
47that any problems introduced by others will not reflect on the original
48authors' reputations.
49
50 Finally, any free program is threatened constantly by software
51patents. We wish to avoid the danger that redistributors of a free
52program will individually obtain patent licenses, in effect making the
53program proprietary. To prevent this, we have made it clear that any
54patent must be licensed for everyone's free use or not licensed at all.
55
56 The precise terms and conditions for copying, distribution and
57modification follow.
58
59 GNU GENERAL PUBLIC LICENSE
60 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
62 0. This License applies to any program or other work which contains
63a notice placed by the copyright holder saying it may be distributed
64under the terms of this General Public License. The "Program", below,
65refers to any such program or work, and a "work based on the Program"
66means either the Program or any derivative work under copyright law:
67that is to say, a work containing the Program or a portion of it,
68either verbatim or with modifications and/or translated into another
69language. (Hereinafter, translation is included without limitation in
70the term "modification".) Each licensee is addressed as "you".
71
72Activities other than copying, distribution and modification are not
73covered by this License; they are outside its scope. The act of
74running the Program is not restricted, and the output from the Program
75is covered only if its contents constitute a work based on the
76Program (independent of having been made by running the Program).
77Whether that is true depends on what the Program does.
78
79 1. You may copy and distribute verbatim copies of the Program's
80source code as you receive it, in any medium, provided that you
81conspicuously and appropriately publish on each copy an appropriate
82copyright notice and disclaimer of warranty; keep intact all the
83notices that refer to this License and to the absence of any warranty;
84and give any other recipients of the Program a copy of this License
85along with the Program.
86
87You may charge a fee for the physical act of transferring a copy, and
88you may at your option offer warranty protection in exchange for a fee.
89
90 2. You may modify your copy or copies of the Program or any portion
91of it, thus forming a work based on the Program, and copy and
92distribute such modifications or work under the terms of Section 1
93above, provided that you also meet all of these conditions:
94
95 a) You must cause the modified files to carry prominent notices
96 stating that you changed the files and the date of any change.
97
98 b) You must cause any work that you distribute or publish, that in
99 whole or in part contains or is derived from the Program or any
100 part thereof, to be licensed as a whole at no charge to all third
101 parties under the terms of this License.
102
103 c) If the modified program normally reads commands interactively
104 when run, you must cause it, when started running for such
105 interactive use in the most ordinary way, to print or display an
106 announcement including an appropriate copyright notice and a
107 notice that there is no warranty (or else, saying that you provide
108 a warranty) and that users may redistribute the program under
109 these conditions, and telling the user how to view a copy of this
110 License. (Exception: if the Program itself is interactive but
111 does not normally print such an announcement, your work based on
112 the Program is not required to print an announcement.)
113
114These requirements apply to the modified work as a whole. If
115identifiable sections of that work are not derived from the Program,
116and can be reasonably considered independent and separate works in
117themselves, then this License, and its terms, do not apply to those
118sections when you distribute them as separate works. But when you
119distribute the same sections as part of a whole which is a work based
120on the Program, the distribution of the whole must be on the terms of
121this License, whose permissions for other licensees extend to the
122entire whole, and thus to each and every part regardless of who wrote it.
123
124Thus, it is not the intent of this section to claim rights or contest
125your rights to work written entirely by you; rather, the intent is to
126exercise the right to control the distribution of derivative or
127collective works based on the Program.
128
129In addition, mere aggregation of another work not based on the Program
130with the Program (or with a work based on the Program) on a volume of
131a storage or distribution medium does not bring the other work under
132the scope of this License.
133
134 3. You may copy and distribute the Program (or a work based on it,
135under Section 2) in object code or executable form under the terms of
136Sections 1 and 2 above provided that you also do one of the following:
137
138 a) Accompany it with the complete corresponding machine-readable
139 source code, which must be distributed under the terms of Sections
140 1 and 2 above on a medium customarily used for software interchange; or,
141
142 b) Accompany it with a written offer, valid for at least three
143 years, to give any third party, for a charge no more than your
144 cost of physically performing source distribution, a complete
145 machine-readable copy of the corresponding source code, to be
146 distributed under the terms of Sections 1 and 2 above on a medium
147 customarily used for software interchange; or,
148
149 c) Accompany it with the information you received as to the offer
150 to distribute corresponding source code. (This alternative is
151 allowed only for noncommercial distribution and only if you
152 received the program in object code or executable form with such
153 an offer, in accord with Subsection b above.)
154
155The source code for a work means the preferred form of the work for
156making modifications to it. For an executable work, complete source
157code means all the source code for all modules it contains, plus any
158associated interface definition files, plus the scripts used to
159control compilation and installation of the executable. However, as a
160special exception, the source code distributed need not include
161anything that is normally distributed (in either source or binary
162form) with the major components (compiler, kernel, and so on) of the
163operating system on which the executable runs, unless that component
164itself accompanies the executable.
165
166If distribution of executable or object code is made by offering
167access to copy from a designated place, then offering equivalent
168access to copy the source code from the same place counts as
169distribution of the source code, even though third parties are not
170compelled to copy the source along with the object code.
171
172 4. You may not copy, modify, sublicense, or distribute the Program
173except as expressly provided under this License. Any attempt
174otherwise to copy, modify, sublicense or distribute the Program is
175void, and will automatically terminate your rights under this License.
176However, parties who have received copies, or rights, from you under
177this License will not have their licenses terminated so long as such
178parties remain in full compliance.
179
180 5. You are not required to accept this License, since you have not
181signed it. However, nothing else grants you permission to modify or
182distribute the Program or its derivative works. These actions are
183prohibited by law if you do not accept this License. Therefore, by
184modifying or distributing the Program (or any work based on the
185Program), you indicate your acceptance of this License to do so, and
186all its terms and conditions for copying, distributing or modifying
187the Program or works based on it.
188
189 6. Each time you redistribute the Program (or any work based on the
190Program), the recipient automatically receives a license from the
191original licensor to copy, distribute or modify the Program subject to
192these terms and conditions. You may not impose any further
193restrictions on the recipients' exercise of the rights granted herein.
194You are not responsible for enforcing compliance by third parties to
195this License.
196
197 7. If, as a consequence of a court judgment or allegation of patent
198infringement or for any other reason (not limited to patent issues),
199conditions are imposed on you (whether by court order, agreement or
200otherwise) that contradict the conditions of this License, they do not
201excuse you from the conditions of this License. If you cannot
202distribute so as to satisfy simultaneously your obligations under this
203License and any other pertinent obligations, then as a consequence you
204may not distribute the Program at all. For example, if a patent
205license would not permit royalty-free redistribution of the Program by
206all those who receive copies directly or indirectly through you, then
207the only way you could satisfy both it and this License would be to
208refrain entirely from distribution of the Program.
209
210If any portion of this section is held invalid or unenforceable under
211any particular circumstance, the balance of the section is intended to
212apply and the section as a whole is intended to apply in other
213circumstances.
214
215It is not the purpose of this section to induce you to infringe any
216patents or other property right claims or to contest validity of any
217such claims; this section has the sole purpose of protecting the
218integrity of the free software distribution system, which is
219implemented by public license practices. Many people have made
220generous contributions to the wide range of software distributed
221through that system in reliance on consistent application of that
222system; it is up to the author/donor to decide if he or she is willing
223to distribute software through any other system and a licensee cannot
224impose that choice.
225
226This section is intended to make thoroughly clear what is believed to
227be a consequence of the rest of this License.
228
229 8. If the distribution and/or use of the Program is restricted in
230certain countries either by patents or by copyrighted interfaces, the
231original copyright holder who places the Program under this License
232may add an explicit geographical distribution limitation excluding
233those countries, so that distribution is permitted only in or among
234countries not thus excluded. In such case, this License incorporates
235the limitation as if written in the body of this License.
236
237 9. The Free Software Foundation may publish revised and/or new versions
238of the General Public License from time to time. Such new versions will
239be similar in spirit to the present version, but may differ in detail to
240address new problems or concerns.
241
242Each version is given a distinguishing version number. If the Program
243specifies a version number of this License which applies to it and "any
244later version", you have the option of following the terms and conditions
245either of that version or of any later version published by the Free
246Software Foundation. If the Program does not specify a version number of
247this License, you may choose any version ever published by the Free Software
248Foundation.
249
250 10. If you wish to incorporate parts of the Program into other free
251programs whose distribution conditions are different, write to the author
252to ask for permission. For software which is copyrighted by the Free
253Software Foundation, write to the Free Software Foundation; we sometimes
254make exceptions for this. Our decision will be guided by the two goals
255of preserving the free status of all derivatives of our free software and
256of promoting the sharing and reuse of software generally.
257
258 NO WARRANTY
259
260 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268REPAIR OR CORRECTION.
269
270 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278POSSIBILITY OF SUCH DAMAGES.
279
280 END OF TERMS AND CONDITIONS
281
282 How to Apply These Terms to Your New Programs
283
284 If you develop a new program, and you want it to be of the greatest
285possible use to the public, the best way to achieve this is to make it
286free software which everyone can redistribute and change under these terms.
287
288 To do so, attach the following notices to the program. It is safest
289to attach them to the start of each source file to most effectively
290convey the exclusion of warranty; and each file should have at least
291the "copyright" line and a pointer to where the full notice is found.
292
293 <one line to give the program's name and a brief idea of what it does.>
294 Copyright (C) <year> <name of author>
295
296 This program is free software; you can redistribute it and/or modify
297 it under the terms of the GNU General Public License as published by
298 the Free Software Foundation; either version 2 of the License, or
299 (at your option) any later version.
300
301 This program is distributed in the hope that it will be useful,
302 but WITHOUT ANY WARRANTY; without even the implied warranty of
303 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304 GNU General Public License for more details.
305
306 You should have received a copy of the GNU General Public License along
307 with this program; if not, write to the Free Software Foundation, Inc.,
308 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309
310Also add information on how to contact you by electronic and paper mail.
311
312If the program is interactive, make it output a short notice like this
313when it starts in an interactive mode:
314
315 Gnomovision version 69, Copyright (C) year name of author
316 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317 This is free software, and you are welcome to redistribute it
318 under certain conditions; type `show c' for details.
319
320The hypothetical commands `show w' and `show c' should show the appropriate
321parts of the General Public License. Of course, the commands you use may
322be called something other than `show w' and `show c'; they could even be
323mouse-clicks or menu items--whatever suits your program.
324
325You should also get your employer (if you work as a programmer) or your
326school, if any, to sign a "copyright disclaimer" for the program, if
327necessary. Here is a sample; alter the names:
328
329 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330 `Gnomovision' (which makes passes at compilers) written by James Hacker.
331
332 <signature of Ty Coon>, 1 April 1989
333 Ty Coon, President of Vice
334
335This General Public License does not permit incorporating your program into
336proprietary programs. If your program is a subroutine library, you may
337consider it more useful to permit linking proprietary applications with the
338library. If this is what you want to do, use the GNU Lesser General
339Public License instead of this License.
340
diff --git a/Makefile b/Makefile
index 535e028..d933bd2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,55 +1,641 @@
1TARGETS=usbmuxd libusbmuxd.so iproxy 1# Makefile.in generated by automake 1.10.2 from Makefile.am.
2CFLAGS=-I. -g -DDEBUG -fPIC -Wall -Wextra -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter 2# Makefile. Generated from Makefile.in by configure.
3LIBS=-lpthread -lusb -lrt 3
4LDFLAGS=-L. 4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5INSTALL_PREFIX=/usr/local 5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6 6# This Makefile.in is free software; the Free Software Foundation
7all: $(TARGETS) 7# gives unlimited permission to copy and/or distribute it,
8 8# with or without modifications, as long as this notice is preserved.
9main.o: main.c usbmuxd-proto.h sock_stuff.h usbmux.h 9
10usbmux.o: usbmux.c usbmux.h usbmuxd.h sock_stuff.h 10# This program is distributed in the hope that it will be useful,
11sock_stuff.o: sock_stuff.c sock_stuff.h 11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12libusbmuxd.o: libusbmuxd.c usbmuxd.h usbmuxd-proto.h 12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13iproxy.o: iproxy.c sock_stuff.h 13# PARTICULAR PURPOSE.
14libusbmuxd.so: libusbmuxd.o sock_stuff.o 14
15 15
16%.so: %.o 16
17 $(CC) -o $@ -shared -Wl,-soname,$@.1 $^ 17pkgdatadir = $(datadir)/usbmuxd
18 18pkglibdir = $(libdir)/usbmuxd
19%.o: %.c 19pkgincludedir = $(includedir)/usbmuxd
20 $(CC) -o $@ $(CFLAGS) -c $< 20am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21 21install_sh_DATA = $(install_sh) -c -m 644
22usbmuxd: main.o sock_stuff.o usbmux.o 22install_sh_PROGRAM = $(install_sh) -c
23 $(CC) -o $@ $(LDFLAGS) $^ $(LIBS) 23install_sh_SCRIPT = $(install_sh) -c
24 24INSTALL_HEADER = $(INSTALL_DATA)
25iproxy: iproxy.o 25transform = $(program_transform_name)
26 $(CC) -o $@ $(LDFLAGS) $^ $(LIBS) -lusbmuxd 26NORMAL_INSTALL = :
27 27PRE_INSTALL = :
28clean: 28POST_INSTALL = :
29 rm -f *.o *.so $(TARGETS) 29NORMAL_UNINSTALL = :
30 30PRE_UNINSTALL = :
31realclean: clean 31POST_UNINSTALL = :
32 rm -f *~ 32build_triplet = i686-pc-linux-gnu
33 33host_triplet = i686-pc-linux-gnu
34install: all 34subdir = .
35 install -m 755 usbmuxd $(INSTALL_PREFIX)/sbin/ 35DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
36 # udev crack 36 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
37 #install -D -m 644 85-usbmuxd.rules $(INSTALL_PREFIX)/lib/udev/rules.d/85-usbmuxd.rules 37 $(top_srcdir)/configure AUTHORS COPYING compile config.guess \
38 install -m 644 85-usbmuxd.rules /etc/udev/rules.d/85-usbmuxd.rules 38 config.sub depcomp install-sh ltmain.sh missing
39 # protocol 39ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 install -m 644 usbmuxd-proto.h $(INSTALL_PREFIX)/include/ 40am__aclocal_m4_deps = $(top_srcdir)/configure.ac
41 # iproxy 41am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
42 install -m 644 libusbmuxd.so $(INSTALL_PREFIX)/lib/ 42 $(ACLOCAL_M4)
43 install -m 644 usbmuxd.h $(INSTALL_PREFIX)/include/ 43am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
44 install -m 755 iproxy $(INSTALL_PREFIX)/bin/ 44 configure.lineno config.status.lineno
45 45mkinstalldirs = $(install_sh) -d
46uninstall: 46CONFIG_HEADER = config.h
47 -rm $(INSTALL_PREFIX)/sbin/usbmuxd 47CONFIG_CLEAN_FILES =
48 #-rm $(INSTALL_PREFIX)/lib/udev/rules.d/85-usbmuxd.rules 48SOURCES =
49 -rm /etc/udev/rules.d/85-usbmuxd.rules 49DIST_SOURCES =
50 -rm $(INSTALL_PREFIX)/include/usbmuxd-proto.h 50RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
51 -rm $(INSTALL_PREFIX)/lib/libusbmuxd.so 51 html-recursive info-recursive install-data-recursive \
52 -rm $(INSTALL_PREFIX)/include/usbmuxd.h 52 install-dvi-recursive install-exec-recursive \
53 -rm $(INSTALL_PREFIX)/bin/iproxy 53 install-html-recursive install-info-recursive \
54 54 install-pdf-recursive install-ps-recursive install-recursive \
55.PHONY: all clean realclean 55 installcheck-recursive installdirs-recursive pdf-recursive \
56 ps-recursive uninstall-recursive
57RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
58 distclean-recursive maintainer-clean-recursive
59ETAGS = etags
60CTAGS = ctags
61DIST_SUBDIRS = $(SUBDIRS)
62DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
63distdir = $(PACKAGE)-$(VERSION)
64top_distdir = $(distdir)
65am__remove_distdir = \
66 { test ! -d $(distdir) \
67 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
68 && rm -fr $(distdir); }; }
69DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
70GZIP_ENV = --best
71distuninstallcheck_listfiles = find . -type f -print
72distcleancheck_listfiles = find . -type f -print
73ACLOCAL = ${SHELL} /home/nikias/coding/usbmuxd/missing --run aclocal-1.10
74AMTAR = ${SHELL} /home/nikias/coding/usbmuxd/missing --run tar
75AR = ar
76AUTOCONF = ${SHELL} /home/nikias/coding/usbmuxd/missing --run autoconf
77AUTOHEADER = ${SHELL} /home/nikias/coding/usbmuxd/missing --run autoheader
78AUTOMAKE = ${SHELL} /home/nikias/coding/usbmuxd/missing --run automake-1.10
79AWK = gawk
80CC = gcc
81CCDEPMODE = depmode=gcc3
82CFLAGS = -g -O2
83CPP = gcc -E
84CPPFLAGS =
85CYGPATH_W = echo
86DEFS = -DHAVE_CONFIG_H
87DEPDIR = .deps
88DSYMUTIL =
89DUMPBIN =
90ECHO_C =
91ECHO_N = -n
92ECHO_T =
93EGREP = /bin/grep -E
94EXEEXT =
95FGREP = /bin/grep -F
96GREP = /bin/grep
97INSTALL = /usr/bin/install -c
98INSTALL_DATA = ${INSTALL} -m 644
99INSTALL_PROGRAM = ${INSTALL}
100INSTALL_SCRIPT = ${INSTALL}
101INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
102LD = /usr/bin/ld
103LDFLAGS =
104LIBOBJS =
105LIBS =
106LIBTOOL = $(SHELL) $(top_builddir)/libtool
107LIPO =
108LN_S = ln -s
109LTLIBOBJS =
110MAKEINFO = ${SHELL} /home/nikias/coding/usbmuxd/missing --run makeinfo
111MKDIR_P = /bin/mkdir -p
112NM = /usr/bin/nm -B
113NMEDIT =
114OBJDUMP = objdump
115OBJEXT = o
116OTOOL =
117OTOOL64 =
118PACKAGE = usbmuxd
119PACKAGE_BUGREPORT = nikias@gmx.li
120PACKAGE_NAME = usbmuxd
121PACKAGE_STRING = usbmuxd 0.1.0
122PACKAGE_TARNAME = usbmuxd
123PACKAGE_VERSION = 0.1.0
124PATH_SEPARATOR = :
125PKG_CONFIG = /usr/bin/pkg-config
126RANLIB = ranlib
127SED = /bin/sed
128SET_MAKE =
129SHELL = /bin/bash
130STRIP = strip
131VERSION = 0.1.0
132abs_builddir = /home/nikias/coding/usbmuxd
133abs_srcdir = /home/nikias/coding/usbmuxd
134abs_top_builddir = /home/nikias/coding/usbmuxd
135abs_top_srcdir = /home/nikias/coding/usbmuxd
136ac_ct_CC = gcc
137ac_ct_DUMPBIN =
138am__include = include
139am__leading_dot = .
140am__quote =
141am__tar = ${AMTAR} chof - "$$tardir"
142am__untar = ${AMTAR} xf -
143bindir = ${exec_prefix}/bin
144build = i686-pc-linux-gnu
145build_alias =
146build_cpu = i686
147build_os = linux-gnu
148build_vendor = pc
149builddir = .
150datadir = ${datarootdir}
151datarootdir = ${prefix}/share
152docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
153dvidir = ${docdir}
154exec_prefix = ${prefix}
155host = i686-pc-linux-gnu
156host_alias =
157host_cpu = i686
158host_os = linux-gnu
159host_vendor = pc
160htmldir = ${docdir}
161includedir = ${prefix}/include
162infodir = ${datarootdir}/info
163install_sh = $(SHELL) /home/nikias/coding/usbmuxd/install-sh
164libdir = ${exec_prefix}/lib
165libexecdir = ${exec_prefix}/libexec
166libusb_CFLAGS =
167libusb_LIBS = -lusb
168localedir = ${datarootdir}/locale
169localstatedir = ${prefix}/var
170lt_ECHO = echo
171mandir = ${datarootdir}/man
172mkdir_p = /bin/mkdir -p
173oldincludedir = /usr/include
174pdfdir = ${docdir}
175prefix = /usr/local
176program_transform_name = s,x,x,
177psdir = ${docdir}
178sbindir = ${exec_prefix}/sbin
179sharedstatedir = ${prefix}/com
180srcdir = .
181sysconfdir = /etc
182target_alias =
183top_build_prefix =
184top_builddir = .
185top_srcdir = .
186SUBDIRS = src udev tools
187EXTRA_DIST = README.devel
188all: config.h
189 $(MAKE) $(AM_MAKEFLAGS) all-recursive
190
191.SUFFIXES:
192am--refresh:
193 @:
194$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
195 @for dep in $?; do \
196 case '$(am__configure_deps)' in \
197 *$$dep*) \
198 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
199 cd $(srcdir) && $(AUTOMAKE) --foreign \
200 && exit 0; \
201 exit 1;; \
202 esac; \
203 done; \
204 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
205 cd $(top_srcdir) && \
206 $(AUTOMAKE) --foreign Makefile
207.PRECIOUS: Makefile
208Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
209 @case '$?' in \
210 *config.status*) \
211 echo ' $(SHELL) ./config.status'; \
212 $(SHELL) ./config.status;; \
213 *) \
214 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
215 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
216 esac;
217
218$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
219 $(SHELL) ./config.status --recheck
220
221$(top_srcdir)/configure: $(am__configure_deps)
222 cd $(srcdir) && $(AUTOCONF)
223$(ACLOCAL_M4): $(am__aclocal_m4_deps)
224 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
225
226config.h: stamp-h1
227 @if test ! -f $@; then \
228 rm -f stamp-h1; \
229 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
230 else :; fi
231
232stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
233 @rm -f stamp-h1
234 cd $(top_builddir) && $(SHELL) ./config.status config.h
235$(srcdir)/config.h.in: $(am__configure_deps)
236 cd $(top_srcdir) && $(AUTOHEADER)
237 rm -f stamp-h1
238 touch $@
239
240distclean-hdr:
241 -rm -f config.h stamp-h1
242
243mostlyclean-libtool:
244 -rm -f *.lo
245
246clean-libtool:
247 -rm -rf .libs _libs
248
249distclean-libtool:
250 -rm -f libtool config.lt
251
252# This directory's subdirectories are mostly independent; you can cd
253# into them and run `make' without going through this Makefile.
254# To change the values of `make' variables: instead of editing Makefiles,
255# (1) if the variable is set in `config.status', edit `config.status'
256# (which will cause the Makefiles to be regenerated when you run `make');
257# (2) otherwise, pass the desired values on the `make' command line.
258$(RECURSIVE_TARGETS):
259 @failcom='exit 1'; \
260 for f in x $$MAKEFLAGS; do \
261 case $$f in \
262 *=* | --[!k]*);; \
263 *k*) failcom='fail=yes';; \
264 esac; \
265 done; \
266 dot_seen=no; \
267 target=`echo $@ | sed s/-recursive//`; \
268 list='$(SUBDIRS)'; for subdir in $$list; do \
269 echo "Making $$target in $$subdir"; \
270 if test "$$subdir" = "."; then \
271 dot_seen=yes; \
272 local_target="$$target-am"; \
273 else \
274 local_target="$$target"; \
275 fi; \
276 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
277 || eval $$failcom; \
278 done; \
279 if test "$$dot_seen" = "no"; then \
280 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
281 fi; test -z "$$fail"
282
283$(RECURSIVE_CLEAN_TARGETS):
284 @failcom='exit 1'; \
285 for f in x $$MAKEFLAGS; do \
286 case $$f in \
287 *=* | --[!k]*);; \
288 *k*) failcom='fail=yes';; \
289 esac; \
290 done; \
291 dot_seen=no; \
292 case "$@" in \
293 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
294 *) list='$(SUBDIRS)' ;; \
295 esac; \
296 rev=''; for subdir in $$list; do \
297 if test "$$subdir" = "."; then :; else \
298 rev="$$subdir $$rev"; \
299 fi; \
300 done; \
301 rev="$$rev ."; \
302 target=`echo $@ | sed s/-recursive//`; \
303 for subdir in $$rev; do \
304 echo "Making $$target in $$subdir"; \
305 if test "$$subdir" = "."; then \
306 local_target="$$target-am"; \
307 else \
308 local_target="$$target"; \
309 fi; \
310 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
311 || eval $$failcom; \
312 done && test -z "$$fail"
313tags-recursive:
314 list='$(SUBDIRS)'; for subdir in $$list; do \
315 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
316 done
317ctags-recursive:
318 list='$(SUBDIRS)'; for subdir in $$list; do \
319 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
320 done
321
322ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
323 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
324 unique=`for i in $$list; do \
325 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
326 done | \
327 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
328 END { if (nonempty) { for (i in files) print i; }; }'`; \
329 mkid -fID $$unique
330tags: TAGS
331
332TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
333 $(TAGS_FILES) $(LISP)
334 tags=; \
335 here=`pwd`; \
336 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
337 include_option=--etags-include; \
338 empty_fix=.; \
339 else \
340 include_option=--include; \
341 empty_fix=; \
342 fi; \
343 list='$(SUBDIRS)'; for subdir in $$list; do \
344 if test "$$subdir" = .; then :; else \
345 test ! -f $$subdir/TAGS || \
346 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
347 fi; \
348 done; \
349 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
350 unique=`for i in $$list; do \
351 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
352 done | \
353 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
354 END { if (nonempty) { for (i in files) print i; }; }'`; \
355 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
356 test -n "$$unique" || unique=$$empty_fix; \
357 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
358 $$tags $$unique; \
359 fi
360ctags: CTAGS
361CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
362 $(TAGS_FILES) $(LISP)
363 tags=; \
364 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
365 unique=`for i in $$list; do \
366 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
367 done | \
368 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
369 END { if (nonempty) { for (i in files) print i; }; }'`; \
370 test -z "$(CTAGS_ARGS)$$tags$$unique" \
371 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
372 $$tags $$unique
373
374GTAGS:
375 here=`$(am__cd) $(top_builddir) && pwd` \
376 && cd $(top_srcdir) \
377 && gtags -i $(GTAGS_ARGS) $$here
378
379distclean-tags:
380 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
381
382distdir: $(DISTFILES)
383 $(am__remove_distdir)
384 test -d $(distdir) || mkdir $(distdir)
385 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
387 list='$(DISTFILES)'; \
388 dist_files=`for file in $$list; do echo $$file; done | \
389 sed -e "s|^$$srcdirstrip/||;t" \
390 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
391 case $$dist_files in \
392 */*) $(MKDIR_P) `echo "$$dist_files" | \
393 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
394 sort -u` ;; \
395 esac; \
396 for file in $$dist_files; do \
397 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
398 if test -d $$d/$$file; then \
399 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
400 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
401 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
402 fi; \
403 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
404 else \
405 test -f $(distdir)/$$file \
406 || cp -p $$d/$$file $(distdir)/$$file \
407 || exit 1; \
408 fi; \
409 done
410 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
411 if test "$$subdir" = .; then :; else \
412 test -d "$(distdir)/$$subdir" \
413 || $(MKDIR_P) "$(distdir)/$$subdir" \
414 || exit 1; \
415 distdir=`$(am__cd) $(distdir) && pwd`; \
416 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
417 (cd $$subdir && \
418 $(MAKE) $(AM_MAKEFLAGS) \
419 top_distdir="$$top_distdir" \
420 distdir="$$distdir/$$subdir" \
421 am__remove_distdir=: \
422 am__skip_length_check=: \
423 distdir) \
424 || exit 1; \
425 fi; \
426 done
427 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
428 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
429 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
430 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
431 || chmod -R a+r $(distdir)
432dist-gzip: distdir
433 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
434 $(am__remove_distdir)
435dist-bzip2: distdir
436 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
437 $(am__remove_distdir)
438
439dist-lzma: distdir
440 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
441 $(am__remove_distdir)
442
443dist-tarZ: distdir
444 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
445 $(am__remove_distdir)
446
447dist-shar: distdir
448 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
449 $(am__remove_distdir)
450
451dist-zip: distdir
452 -rm -f $(distdir).zip
453 zip -rq $(distdir).zip $(distdir)
454 $(am__remove_distdir)
455
456dist dist-all: distdir
457 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
458 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
459 $(am__remove_distdir)
460
461# This target untars the dist file and tries a VPATH configuration. Then
462# it guarantees that the distribution is self-contained by making another
463# tarfile.
464distcheck: dist
465 case '$(DIST_ARCHIVES)' in \
466 *.tar.gz*) \
467 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
468 *.tar.bz2*) \
469 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
470 *.tar.lzma*) \
471 unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
472 *.tar.Z*) \
473 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
474 *.shar.gz*) \
475 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
476 *.zip*) \
477 unzip $(distdir).zip ;;\
478 esac
479 chmod -R a-w $(distdir); chmod a+w $(distdir)
480 mkdir $(distdir)/_build
481 mkdir $(distdir)/_inst
482 chmod a-w $(distdir)
483 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
484 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
485 && cd $(distdir)/_build \
486 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
487 $(DISTCHECK_CONFIGURE_FLAGS) \
488 && $(MAKE) $(AM_MAKEFLAGS) \
489 && $(MAKE) $(AM_MAKEFLAGS) dvi \
490 && $(MAKE) $(AM_MAKEFLAGS) check \
491 && $(MAKE) $(AM_MAKEFLAGS) install \
492 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
493 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
494 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
495 distuninstallcheck \
496 && chmod -R a-w "$$dc_install_base" \
497 && ({ \
498 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
499 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
500 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
501 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
502 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
503 } || { rm -rf "$$dc_destdir"; exit 1; }) \
504 && rm -rf "$$dc_destdir" \
505 && $(MAKE) $(AM_MAKEFLAGS) dist \
506 && rm -rf $(DIST_ARCHIVES) \
507 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
508 $(am__remove_distdir)
509 @(echo "$(distdir) archives ready for distribution: "; \
510 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
511 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
512distuninstallcheck:
513 @cd $(distuninstallcheck_dir) \
514 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
515 || { echo "ERROR: files left after uninstall:" ; \
516 if test -n "$(DESTDIR)"; then \
517 echo " (check DESTDIR support)"; \
518 fi ; \
519 $(distuninstallcheck_listfiles) ; \
520 exit 1; } >&2
521distcleancheck: distclean
522 @if test '$(srcdir)' = . ; then \
523 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
524 exit 1 ; \
525 fi
526 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
527 || { echo "ERROR: files left in build directory after distclean:" ; \
528 $(distcleancheck_listfiles) ; \
529 exit 1; } >&2
530check-am: all-am
531check: check-recursive
532all-am: Makefile config.h
533installdirs: installdirs-recursive
534installdirs-am:
535install: install-recursive
536install-exec: install-exec-recursive
537install-data: install-data-recursive
538uninstall: uninstall-recursive
539
540install-am: all-am
541 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
542
543installcheck: installcheck-recursive
544install-strip:
545 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
546 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
547 `test -z '$(STRIP)' || \
548 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
549mostlyclean-generic:
550
551clean-generic:
552
553distclean-generic:
554 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
555
556maintainer-clean-generic:
557 @echo "This command is intended for maintainers to use"
558 @echo "it deletes files that may require special tools to rebuild."
559clean: clean-recursive
560
561clean-am: clean-generic clean-libtool mostlyclean-am
562
563distclean: distclean-recursive
564 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
565 -rm -f Makefile
566distclean-am: clean-am distclean-generic distclean-hdr \
567 distclean-libtool distclean-tags
568
569dvi: dvi-recursive
570
571dvi-am:
572
573html: html-recursive
574
575info: info-recursive
576
577info-am:
578
579install-data-am:
580
581install-dvi: install-dvi-recursive
582
583install-exec-am:
584
585install-html: install-html-recursive
586
587install-info: install-info-recursive
588
589install-man:
590
591install-pdf: install-pdf-recursive
592
593install-ps: install-ps-recursive
594
595installcheck-am:
596
597maintainer-clean: maintainer-clean-recursive
598 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
599 -rm -rf $(top_srcdir)/autom4te.cache
600 -rm -f Makefile
601maintainer-clean-am: distclean-am maintainer-clean-generic
602
603mostlyclean: mostlyclean-recursive
604
605mostlyclean-am: mostlyclean-generic mostlyclean-libtool
606
607pdf: pdf-recursive
608
609pdf-am:
610
611ps: ps-recursive
612
613ps-am:
614
615uninstall-am:
616
617.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
618 install-strip
619
620.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
621 all all-am am--refresh check check-am clean clean-generic \
622 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
623 dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \
624 distclean distclean-generic distclean-hdr distclean-libtool \
625 distclean-tags distcleancheck distdir distuninstallcheck dvi \
626 dvi-am html html-am info info-am install install-am \
627 install-data install-data-am install-dvi install-dvi-am \
628 install-exec install-exec-am install-html install-html-am \
629 install-info install-info-am install-man install-pdf \
630 install-pdf-am install-ps install-ps-am install-strip \
631 installcheck installcheck-am installdirs installdirs-am \
632 maintainer-clean maintainer-clean-generic mostlyclean \
633 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
634 tags tags-recursive uninstall uninstall-am
635
636
637indent:
638 indent -kr -ut -ts4 -l120 src/*.c src/*.h tools/*.c
639# Tell versions [3.59,3.63) of GNU make to not export all variables.
640# Otherwise a system limit (for SysV at least) may be exceeded.
641.NOEXPORT:
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..43dc592
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,6 @@
1SUBDIRS = src udev tools
2
3indent:
4 indent -kr -ut -ts4 -l120 src/*.c src/*.h tools/*.c
5
6EXTRA_DIST = README.devel
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..90f6046
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,6 @@
1#!/bin/sh
2aclocal -I m4 || exit 1
3libtoolize || exit 1
4autoheader || exit 1
5automake --add-missing || exit 1
6autoconf || exit 1
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..7c54416
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,28 @@
1# Inital configuration
2
3AC_PREREQ(2.61)
4
5AC_INIT([usbmuxd], [0.1.0], [nikias@gmx.li])
6AM_INIT_AUTOMAKE([-Wall -Werror foreign dist-bzip2])
7
8AC_CONFIG_HEADERS([config.h])
9
10# Check for programs
11
12AC_PROG_CC
13AM_PROG_CC_C_O
14AC_PROG_LIBTOOL
15AC_PROG_INSTALL
16
17# Check for libraries
18
19PKG_CHECK_MODULES(libusb, libusb >= 0.1.12)
20
21# Output files
22
23AC_OUTPUT([
24Makefile
25src/Makefile
26tools/Makefile
27udev/Makefile
28])
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..547870e
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,31 @@
1AM_CFLAGS = $(GLOBAL_CFLAGS) $(libusb_CFLAGS)
2AM_LDFLAGS = $(libusb_LIBS) -lpthread -lrt
3
4# Libraries
5
6noinst_LTLIBRARIES = libusbmux.la libsock_stuff.la
7libsock_stuff_la_SOURCES = sock_stuff.c \
8 sock_stuff.h
9
10libusbmux_la_SOURCES = usbmux.c \
11 usbmux.h
12libusbmux_la_CFLAGS = $(AM_CFLAGS)
13libusbmux_la_LDFLAGS = $(AM_LDFLAGS)
14
15lib_LTLIBRARIES = libusbmuxd.la
16libusbmuxd_la_SOURCES = libusbmuxd.c \
17 usbmuxd.h \
18 usbmuxd-proto.h
19libusbmuxd_la_LIBADD = libsock_stuff.la
20
21include_HEADERS = usbmuxd.h \
22 usbmuxd-proto.h
23
24# Programs
25
26sbin_PROGRAMS = usbmuxd
27
28usbmuxd_SOURCES = main.c
29usbmuxd_LDADD = libusbmux.la \
30 libsock_stuff.la
31
diff --git a/libusbmuxd.c b/src/libusbmuxd.c
index c8acbf8..c8acbf8 100644
--- a/libusbmuxd.c
+++ b/src/libusbmuxd.c
diff --git a/main.c b/src/main.c
index e7292cc..e7292cc 100644
--- a/main.c
+++ b/src/main.c
diff --git a/sock_stuff.c b/src/sock_stuff.c
index b51d6ba..b51d6ba 100644
--- a/sock_stuff.c
+++ b/src/sock_stuff.c
diff --git a/sock_stuff.h b/src/sock_stuff.h
index 190f7e1..190f7e1 100644
--- a/sock_stuff.h
+++ b/src/sock_stuff.h
diff --git a/usbmux.c b/src/usbmux.c
index e86e3bc..e86e3bc 100644
--- a/usbmux.c
+++ b/src/usbmux.c
diff --git a/usbmux.h b/src/usbmux.h
index 2bcdb15..2bcdb15 100644
--- a/usbmux.h
+++ b/src/usbmux.h
diff --git a/usbmuxd-proto.h b/src/usbmuxd-proto.h
index 7f8c2d6..7f8c2d6 100644
--- a/usbmuxd-proto.h
+++ b/src/usbmuxd-proto.h
diff --git a/usbmuxd.h b/src/usbmuxd.h
index 15e97ee..15e97ee 100644
--- a/usbmuxd.h
+++ b/src/usbmuxd.h
diff --git a/tools/Makefile.am b/tools/Makefile.am
new file mode 100644
index 0000000..5d20bbf
--- /dev/null
+++ b/tools/Makefile.am
@@ -0,0 +1,5 @@
1bin_PROGRAMS = iproxy
2
3iproxy_SOURCES = iproxy.c
4iproxy_CFLAGS = -I$(top_srcdir)/src
5iproxy_LDADD = ../src/libusbmuxd.la
diff --git a/iproxy.c b/tools/iproxy.c
index 3cb2894..3cb2894 100644
--- a/iproxy.c
+++ b/tools/iproxy.c
diff --git a/85-usbmuxd.rules b/udev/85-usbmuxd.rules
index 69ddef8..69ddef8 100644
--- a/85-usbmuxd.rules
+++ b/udev/85-usbmuxd.rules
diff --git a/udev/Makefile.am b/udev/Makefile.am
new file mode 100644
index 0000000..321008a
--- /dev/null
+++ b/udev/Makefile.am
@@ -0,0 +1,4 @@
1udevdir=$(sysconfdir)/udev/rules.d/
2udev_DATA=85-usbmuxd.rules
3
4EXTRA_DIST = 85-usbmuxd.rules