Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ prefix = /usr
DESTDIR = $(prefix)

LIBRARY_TYPES = static static-pic relocatable
BUILD_MODE = prod
ADA_TOML_BUILD_MODE = prod

PROCESSORS = 0

Expand All @@ -11,14 +11,14 @@ all: build
build: build-static build-static-pic build-relocatable
build-%:
gprbuild -Pada_toml \
-XBUILD_MODE=$(BUILD_MODE) \
-XADA_TOML_BUILD_MODE=$(ADA_TOML_BUILD_MODE) \
-XLIBRARY_TYPE=$* \
-p -j$(PROCESSORS)

install: install-static install-static-pic install-relocatable
install-%: build-%
gprinstall -Pada_toml \
-XBUILD_MODE=$(BUILD_MODE) \
-XADA_TOML_BUILD_MODE=$(ADA_TOML_BUILD_MODE) \
-XLIBRARY_TYPE=$* \
--sources-subdir=include/ada-toml \
--prefix="$(DESTDIR)" \
Expand All @@ -30,6 +30,6 @@ install-%: build-%
clean: clean-static clean-static-pic clean-relocatable
clean-%:
gprclean -Pada_toml \
-XBUILD_MODE=$(BUILD_MODE) \
-XADA_TOML_BUILD_MODE=$(ADA_TOML_BUILD_MODE) \
-XLIBRARY_TYPE=$* \
-p
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ manually:
gprbuild -Pada_toml.gpr -p
This will build in debug mode and produce a static library. In order to build
in production mode, add ``-XBUILD_MODE=prod``, and to build a dynamic library,
add ``-XLIBRARY_TYPE=static``.
in production mode, add ``-XADA_TOML_BUILD_MODE=prod``, and to build a dynamic
library, add ``-XLIBRARY_TYPE=static``.

Installation to ``$PREFIX`` is simply done using GPRinstall:

Expand Down