-noinst_LTLIBRARIES = libcommon.la
-EXTRA_DIST = mi-lttng-3.0.xsd
-
-libcommon_la_SOURCES = error.h error.c utils.c utils.h runas.h runas.c \
- common.h futex.c futex.h uri.c uri.h defaults.c \
- pipe.c pipe.h readwrite.c readwrite.h \
- mi-lttng.h mi-lttng.c \
- daemonize.c daemonize.h \
- unix.c unix.h \
- filter.c filter.h context.c context.h \
- action.c notify.c condition.c buffer-usage.c \
- session-consumed-size.c \
- session-rotation.c \
- evaluation.c notification.c trigger.c endpoint.c \
- dynamic-buffer.h dynamic-buffer.c \
- buffer-view.h buffer-view.c \
- location.c \
- waiter.h waiter.c \
- userspace-probe.c event.c time.c \
- session-descriptor.c credentials.h \
- trace-chunk.c trace-chunk.h trace-chunk-registry.h \
- dynamic-array.h dynamic-array.c optional.h
+noinst_LTLIBRARIES = libpath.la libcommon-lgpl.la libcommon-gpl.la
+EXTRA_DIST = mi-lttng-4.0.xsd
+
+# The libcommon-lgpl static archive contains only LGPLv2.1 code. It is
+# meant to be used by LGPLv2.1 libraries such as liblttng-ctl. It also
+# contains libcommon-lgpl.la.
+libcommon_lgpl_la_SOURCES = \
+ action.c \
+ buffer-view.h buffer-view.c \
+ buffer-usage.c \
+ credentials.h \
+ condition.c \
+ defaults.c \
+ dynamic-array.c dynamic-array.h \
+ dynamic-buffer.c dynamic-buffer.h \
+ endpoint.c \
+ error.c error.h \
+ evaluation.c \
+ location.c \
+ mi-lttng.c mi-lttng.h \
+ notification.c \
+ notify.c \
+ readwrite.c readwrite.h \
+ runas.c runas.h \
+ session-consumed-size.c \
+ session-descriptor.c \
+ session-rotation.c \
+ spawn-viewer.c spawn-viewer.h \
+ time.c \
+ tracker.c tracker.h \
+ trigger.c \
+ unix.c unix.h \
+ uri.c uri.h \
+ userspace-probe.c \
+ utils.c utils.h