Paul Floyd e2583c02a5 FreeBSD support, patch 2
Files in the root directory
Several Makefile.am files that have dependencies on FreeBSD autoconf
variables. Included a few new filter files to act as placeholders
to create new freebsd subdirectories.

Updated NEWS with the FreeBSD bugzilla items plus a couple of other
items fixed indirectly.
2021-10-07 08:18:47 +02:00

42 lines
1023 B
Makefile

include $(top_srcdir)/Makefile.tool-tests.am
SUBDIRS = .
if VGCONF_ARCHS_INCLUDE_X86
SUBDIRS += x86
endif
DIST_SUBDIRS = x86 .
dist_noinst_SCRIPTS = filter_stderr filter_cachesim_discards
# Note that test.c and a.c are not compiled.
# They just serve as input for cg_annotate in ann1 and ann2.
EXTRA_DIST = \
cgout-test \
ann1.post.exp ann1.stderr.exp ann1.vgtest \
ann2.post.exp ann2.stderr.exp ann2.vgtest \
chdir.vgtest chdir.stderr.exp \
clreq.vgtest clreq.stderr.exp \
dlclose.vgtest dlclose.stderr.exp dlclose.stdout.exp \
notpower2.vgtest notpower2.stderr.exp \
test.c a.c \
wrap5.vgtest wrap5.stderr.exp wrap5.stdout.exp
check_PROGRAMS = \
chdir clreq dlclose myprint.so
AM_CFLAGS += $(AM_FLAG_M3264_PRI)
AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
# C ones
if !VGCONF_OS_IS_FREEBSD
dlclose_LDADD = -ldl
endif
if VGCONF_OS_IS_DARWIN
myprint_so_LDFLAGS = $(AM_CFLAGS) -dynamic -dynamiclib -all_load -fpic
else
myprint_so_LDFLAGS = $(AM_CFLAGS) -shared -fPIC
endif
myprint_so_CFLAGS = $(AM_CFLAGS) -fPIC