1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 2021 Free Software Foundation, Inc.
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; see the file COPYING3. If not see
17 # <http://www.gnu.org/licenses/>.
19 AUTOMAKE_OPTIONS = foreign
20 ACLOCAL_AMFLAGS = -I . -I ../..
22 GPROFNG_VARIANT = @GPROFNG_VARIANT@
44 AM_CFLAGS = $(GPROFNG_CFLAGS) $(GPROFNG_NO_NONNULL_COMPARE_CFLAGS)
45 AM_CPPFLAGS = $(GPROFNG_CPPFLAGS) -I.. -I$(srcdir) \
46 -I$(srcdir)/../common -I$(srcdir)/../src \
47 -I$(srcdir)/../../include
48 AM_LDFLAGS = -module -avoid-version \
49 -Wl,--version-script,$(srcdir)/mapfile.$(GPROFNG_VARIANT) \
50 $(LD_NO_AS_NEEDED) -Wl,-lrt -Wl,-ldl
52 myincludedir = @includedir@
53 myinclude_HEADERS = $(srcdir)/../../include/collectorAPI.h \
54 $(srcdir)/../../include/libcollector.h \
55 $(srcdir)/../../include/libfcollector.h
57 lib_LTLIBRARIES = libgp-collector.la libgp-collectorAPI.la libgp-heap.la \
58 libgp-sync.la libgp-iotrace.la
60 libgp_collector_la_SOURCES = $(CSOURCES)
61 libgp_collector_la_CPPFLAGS = $(AM_CPPFLAGS) $(jdk_inc) \
62 -I../../bfd -I$(srcdir)/../..
63 # Prevent libtool from reordering -Wl,--no-as-needed after -lrt by
64 # disguising -lrt as a linker flag.
65 libgp_collector_la_LDFLAGS = $(AM_LDFLAGS)
66 libgp_collector_la_LIBADD = $(CLOCK_GETTIME_LINK)
68 libgp_heap_la_SOURCES = heaptrace.c
69 libgp_heap_la_LDFLAGS = $(AM_LDFLAGS)
71 libgp_sync_la_SOURCES = synctrace.c
72 libgp_sync_la_LDFLAGS = $(AM_LDFLAGS)
74 libgp_iotrace_la_SOURCES = iotrace.c
75 libgp_iotrace_la_LDFLAGS = $(AM_LDFLAGS)
77 libgp_collectorAPI_la_SOURCES = collectorAPI.c
78 libgp_collectorAPI_la_LIBADD = -lc -ldl