aplat

Documents structurés pour Unix
git clone git://git.asteride.xyz/~ldp/aplat.git
Journaux | Fichiers | Références | LISEZ-MOI | LICENCE

commit 2aa1df1d8fe2e28bd4d587c934756128e63c1d45
parent 716784db136c5b206560f1e819d954e0fdfba8ac
Auteur: Selve <selve@asteride.xyz>
Date:   Tue, 23 Jan 2024 14:31:40 -0500

création de deux nouvelles variables dans le Makefile

Il s'agit de LIB_DOS et de INC_DOS. C'est pour faciliter la portabilité.

Diffstat:
MMakefile | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,16 +1,17 @@ PREFIX = /usr/local/bin MAN_DOS = /usr/local/man I18N_DOS = /usr/local/share/locale +LIB_DOS = /usr/local/lib +INC_DOS = /usr/local/include DOS_PO = po DOS_MAN = man CC = cc COPT_SPCL = -O2 -DNDEBUG -COPT = -Wall -Wextra -Werror -Wpedantic --std=c89 ${COPT_SPCL} -CPPOPT = -I/usr/local/include \ - -DI18N_DOMAINE=\"aplat\" \ - -DI18N_DOS=\"${I18N_DOS}\" +COPT = -Wall -Wextra -Werror -Wpedantic -Wno-implicit-fallthrough \ + --std=c89 ${COPT_SPCL} +CPPOPT = -I${INC_DOS} -DI18N_DOMAINE=\"aplat\" -DI18N_DOS=\"${I18N_DOS}\" FCH_PO != find ${DOS_PO} -name '*.po' FCH_MO != find ${DOS_PO} -name '*.po' | sed 's/\.po$$/\.mo/' @@ -25,7 +26,7 @@ FCH_MO != find ${DOS_PO} -name '*.po' | sed 's/\.po$$/\.mo/' all: aplat traductions aplat: aplat.o tampon.o - ${CC} ${COPT} -L/usr/local/lib -lintl -o "$@" aplat.o tampon.o + ${CC} ${COPT} -L${LIB_DOS} -lintl -o "$@" aplat.o tampon.o traductions: ${FCH_MO}