aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..9a8aea4
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,48 @@
+# Build a static library (libggk.a)
+noinst_LIBRARIES = libggk.a
+libggk_a_CXXFLAGS = -fPIC -Wall -Wextra -std=c++11 $(GLIB_CFLAGS) $(GIO_CFLAGS) $(GOBJECT_CFLAGS)
+libggk_a_SOURCES = DBusInterface.cpp \
+ DBusInterface.h \
+ DBusMethod.cpp \
+ DBusMethod.h \
+ DBusObject.cpp \
+ DBusObject.h \
+ DBusObjectPath.h \
+ GattCharacteristic.cpp \
+ GattCharacteristic.h \
+ GattDescriptor.cpp \
+ GattDescriptor.h \
+ GattInterface.cpp \
+ GattInterface.h \
+ GattProperty.cpp \
+ GattProperty.h \
+ GattService.cpp \
+ GattService.h \
+ GattUuid.h \
+ Globals.h \
+ Gobbledegook.cpp \
+ ../include/Gobbledegook.h \
+ HciAdapter.cpp \
+ HciAdapter.h \
+ HciSocket.cpp \
+ HciSocket.h \
+ Init.cpp \
+ Init.h \
+ Logger.cpp \
+ Logger.h \
+ Mgmt.cpp \
+ Mgmt.h \
+ Server.cpp \
+ Server.h \
+ ServerUtils.cpp \
+ ServerUtils.h \
+ standalone.cpp \
+ TickEvent.h \
+ Utils.cpp \
+ Utils.h
+# Build our standalone server (linking statically with libggk.a, linking dynamically with GLib)
+standalone_CXXFLAGS = -fPIC -Wall -Wextra -std=c++11
+noinst_PROGRAMS = standalone
+standalone_SOURCES = standalone.cpp
+standalone_LDADD = libggk.a
+standalone_LDLIBS = $(GLIB_LIBS) $(GIO_LIBS) $(GOBJECT_LIBS)