mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
Update autotools and docs
This commit is contained in:
parent
63f52b635b
commit
1664913ebd
2 changed files with 18 additions and 9 deletions
|
@ -299,15 +299,27 @@ Then your `Makefile.am` might look like this:
|
|||
|
||||
```automake
|
||||
noinst_LTLIBRARIES =
|
||||
WHIPPET_EMBEDDER_CPPFLAGS = -include whippet/benchmarks/mt-gcbench-embedder.h
|
||||
WHIPPET_EMBEDDER_CPPFLAGS = -include $(srcdir)/whippet/benchmarks/mt-gcbench-embedder.h
|
||||
include whippet/embed.am
|
||||
|
||||
noinst_PROGRAMS = whippet/benchmarks/mt-gcbench
|
||||
whippet_benchmarks_mt_gcbench_SOURCES = \
|
||||
whippet/benchmarks/mt-gcbench.c \
|
||||
whippet/benchmarks/mt-gcbench-types.h \
|
||||
whippet/benchmarks/simple-tagging-scheme.h \
|
||||
whippet/benchmarks/simple-roots-api.h \
|
||||
whippet/benchmarks/simple-roots-types.h \
|
||||
whippet/benchmarks/simple-allocator.h \
|
||||
whippet/benchmarks/heap-objects.h \
|
||||
whippet/benchmarks/mt-gcbench-embedder.h
|
||||
|
||||
AM_CFLAGS = $(WHIPPET_CPPFLAGS) $(WHIPPET_CFLAGS) $(WHIPPET_TO_EMBEDDER_CPPFLAGS)
|
||||
LDADD = libwhippet.la
|
||||
```
|
||||
|
||||
We have to list all the little header files it uses because, well,
|
||||
autotools.
|
||||
|
||||
To actually build, you do the usual autotools dance:
|
||||
|
||||
```bash
|
||||
|
|
13
embed.am
13
embed.am
|
@ -77,15 +77,12 @@ libwhippet_la_SOURCES = \
|
|||
%D%/src/gc-lock.h \
|
||||
%D%/src/gc-platform.h \
|
||||
%D%/src/gc-trace.h \
|
||||
%D%/src/generational-roots.h \
|
||||
%D%/src/growable-heap-sizer.h \
|
||||
%D%/src/heap-sizer.h \
|
||||
%D%/src/large-object-space.h \
|
||||
%D%/src/local-worklist.h \
|
||||
%D%/src/nofl-space.h \
|
||||
%D%/src/nursery.h \
|
||||
%D%/src/parallel-tracer.h \
|
||||
%D%/src/remembered-edges.h \
|
||||
%D%/src/root.h \
|
||||
%D%/src/root-worklist.h \
|
||||
%D%/src/serial-tracer.h \
|
||||
|
@ -128,7 +125,7 @@ WHIPPET_CFLAGS_heap_conservative_parallel_generational_mmc = \
|
|||
WHIPPET_CFLAGS = $(WHIPPET_CFLAGS_$(subst -,_,$(WHIPPET_COLLECTOR)))
|
||||
WHIPPET_IMPL_CFLAGS =
|
||||
WHIPPET_LIBS = -lm
|
||||
WHIPPET_CPPFLAGS = -I%D%/api
|
||||
WHIPPET_CPPFLAGS = -I$(srcdir)/%D%/api
|
||||
WHIPPET_TO_EMBEDDER_CPPFLAGS = $(WHIPPET_CPPFLAGS)
|
||||
|
||||
if WHIPPET_ENABLE_DEBUG
|
||||
|
@ -137,24 +134,24 @@ endif
|
|||
|
||||
if WHIPPET_COLLECTOR_SEMI
|
||||
libwhippet_la_SOURCES += %D%/src/semi.c
|
||||
WHIPPET_TO_EMBEDDER_CPPFLAGS += -include %D%/api/semi-attrs.h
|
||||
WHIPPET_TO_EMBEDDER_CPPFLAGS += -include $(srcdir)/%D%/api/semi-attrs.h
|
||||
endif
|
||||
|
||||
if WHIPPET_COLLECTOR_PCC
|
||||
libwhippet_la_SOURCES += %D%/src/pcc.c
|
||||
WHIPPET_TO_EMBEDDER_CPPFLAGS += -include %D%/api/pcc-attrs.h
|
||||
WHIPPET_TO_EMBEDDER_CPPFLAGS += -include $(srcdir)/%D%/api/pcc-attrs.h
|
||||
endif
|
||||
|
||||
if WHIPPET_COLLECTOR_BDW
|
||||
libwhippet_la_SOURCES += %D%/src/bdw.c
|
||||
WHIPPET_IMPL_CFLAGS += $(WHIPPET_BDW_CFLAGS)
|
||||
WHIPPET_LIBS += $(WHIPPET_BDW_LIBS)
|
||||
WHIPPET_TO_EMBEDDER_CPPFLAGS += -include %D%/api/bdw-attrs.h
|
||||
WHIPPET_TO_EMBEDDER_CPPFLAGS += -include $(srcdir)/%D%/api/bdw-attrs.h
|
||||
endif
|
||||
|
||||
if WHIPPET_COLLECTOR_MMC
|
||||
libwhippet_la_SOURCES += %D%/src/mmc.c
|
||||
WHIPPET_TO_EMBEDDER_CPPFLAGS += -include %D%/api/mmc-attrs.h
|
||||
WHIPPET_TO_EMBEDDER_CPPFLAGS += -include $(srcdir)/%D%/api/mmc-attrs.h
|
||||
endif
|
||||
|
||||
# add to cflags: -flto -fvisibility=hidden -fno-strict-aliasing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue