summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
diff options
context:
space:
mode:
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
+