| 1 | # SPDX-License-Identifier: LGPL-2.1-only |
| 2 | |
| 3 | AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include |
| 4 | AM_CFLAGS += -fno-strict-aliasing |
| 5 | |
| 6 | noinst_LTLIBRARIES = libcounter.la |
| 7 | |
| 8 | libcounter_la_SOURCES = \ |
| 9 | counter.c smp.c smp.h shm.c shm.h shm_internal.h shm_types.h \ |
| 10 | counter-api.h counter.h counter-internal.h counter-types.h |
| 11 | |
| 12 | libcounter_la_LIBADD = \ |
| 13 | -lpthread \ |
| 14 | -lrt |
| 15 | |
| 16 | if HAVE_LIBNUMA |
| 17 | libcounter_la_LIBADD += -lnuma |
| 18 | endif |
| 19 | |
| 20 | libcounter_la_CFLAGS = -DUST_COMPONENT="libcounter" $(AM_CFLAGS) |