summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
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 /src/Makefile.am
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>
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am31
1 files changed, 31 insertions, 0 deletions
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 @@
+AM_CFLAGS = $(GLOBAL_CFLAGS) $(libusb_CFLAGS)
+AM_LDFLAGS = $(libusb_LIBS) -lpthread -lrt
+
+# Libraries
+
+noinst_LTLIBRARIES = libusbmux.la libsock_stuff.la
+libsock_stuff_la_SOURCES = sock_stuff.c \
+ sock_stuff.h
+
+libusbmux_la_SOURCES = usbmux.c \
+ usbmux.h
+libusbmux_la_CFLAGS = $(AM_CFLAGS)
+libusbmux_la_LDFLAGS = $(AM_LDFLAGS)
+
+lib_LTLIBRARIES = libusbmuxd.la
+libusbmuxd_la_SOURCES = libusbmuxd.c \
+ usbmuxd.h \
+ usbmuxd-proto.h
+libusbmuxd_la_LIBADD = libsock_stuff.la
+
+include_HEADERS = usbmuxd.h \
+ usbmuxd-proto.h
+
+# Programs
+
+sbin_PROGRAMS = usbmuxd
+
+usbmuxd_SOURCES = main.c
+usbmuxd_LDADD = libusbmux.la \
+ libsock_stuff.la
+