Wicri:Dilib source, module CharSet : Différence entre versions
De Wicri Outils
imported>Jacques Ducloy |
imported>Jacques Ducloy m (13 révisions importées) |
||
(4 révisions intermédiaires par le même utilisateur non affichées) | |||
Ligne 7 : | Ligne 7 : | ||
# | # | ||
# Module : CharSet | # Module : CharSet | ||
− | # | + | # File : CharSet.mk |
# | # | ||
− | + | # WARNING : The source reference for this file is on | |
+ | # wiki: Wicri/Outils (fr) | ||
+ | # page: Wicri:Dilib source, module CharSet | ||
− | $( | + | include $(DILIB)/MakeDef.mk |
− | + | ||
− | + | $(DILIB)/Date/CharSet.mod: $(DILIB)/Date/CharSet.include \ | |
− | + | $(DILIB)/Date/CharSet.man \ | |
− | + | $(DILIB)/Date/CharSet.lib \ | |
+ | $(DILIB)/Date/CharSetBuffer.lib \ | ||
+ | $(DILIB)/Date/CharSet.bin | ||
$(TOUCH) | $(TOUCH) | ||
Ligne 23 : | Ligne 27 : | ||
# | # | ||
− | $( | + | $(DILIB)/Date/CharSet.include: $(DILIB)/include/CharSet.h \ |
− | + | $(DILIB)/include/CharSetTabO.h \ | |
− | + | $(DILIB)/include/CharSetBuffer.h \ | |
$(DILIB)/include/CharSetEbcdic.h | $(DILIB)/include/CharSetEbcdic.h | ||
$(TOUCH) | $(TOUCH) | ||
Ligne 33 : | Ligne 37 : | ||
$(DILIB)/include/CharSetBuffer.h : $(DILIB_IMPORT)/CharSet/CharSetBuffer.h \ | $(DILIB)/include/CharSetBuffer.h : $(DILIB_IMPORT)/CharSet/CharSetBuffer.h \ | ||
− | + | $(DILIB_IMPORT)/CharSet/CharSet.h \ | |
− | + | $(DILIB)/include/Buffer.h | |
cp $(DILIB_IMPORT)/CharSet/CharSetBuffer.h $@ | cp $(DILIB_IMPORT)/CharSet/CharSetBuffer.h $@ | ||
Ligne 47 : | Ligne 51 : | ||
# | # | ||
− | $( | + | $(DILIB)/Date/CharSet.lib: $(DILIB)/Date/CharSetCtoA.o \ |
− | + | $(DILIB)/Date/CharSetAtoS.o \ | |
− | + | $(DILIB)/Date/CharSetAtoSO.o \ | |
− | + | $(DILIB)/Date/CharSetOtoA.o \ | |
− | + | $(DILIB)/Date/CharSetMisc.o | |
$(RANLIB) $(DILIB)/lib/libDilib.a | $(RANLIB) $(DILIB)/lib/libDilib.a | ||
$(TOUCH) | $(TOUCH) | ||
− | $( | + | $(DILIB)/Date/CharSetCtoA.o:$(DILIB_IMPORT)/CharSet/CharSetCtoA.c \ |
+ | $(DILIB)/Date/CharSet.include | ||
$(CC) $(DILIB_IMPORT)/CharSet/CharSetCtoA.c -c -o CharSetCtoA.o | $(CC) $(DILIB_IMPORT)/CharSet/CharSetCtoA.c -c -o CharSetCtoA.o | ||
ar ruv $(DILIB)/lib/libDilib.a CharSetCtoA.o | ar ruv $(DILIB)/lib/libDilib.a CharSetCtoA.o | ||
$(TOUCH) | $(TOUCH) | ||
− | $( | + | $(DILIB)/Date/CharSetMisc.o: $(DILIB_IMPORT)/CharSet/CharSetMisc.c |
$(CC) $(DILIB_IMPORT)/CharSet/CharSetMisc.c -c -o CharSetMisc.o | $(CC) $(DILIB_IMPORT)/CharSet/CharSetMisc.c -c -o CharSetMisc.o | ||
ar ruv $(DILIB)/lib/libDilib.a CharSetMisc.o | ar ruv $(DILIB)/lib/libDilib.a CharSetMisc.o | ||
$(TOUCH) | $(TOUCH) | ||
− | $( | + | $(DILIB)/Date/CharSetOtoA.o: $(DILIB_IMPORT)/CharSet/CharSetOtoA.c |
$(CC) $(DILIB_IMPORT)/CharSet/CharSetOtoA.c -c -o CharSetOtoA.o | $(CC) $(DILIB_IMPORT)/CharSet/CharSetOtoA.c -c -o CharSetOtoA.o | ||
ar ruv $(DILIB)/lib/libDilib.a CharSetOtoA.o | ar ruv $(DILIB)/lib/libDilib.a CharSetOtoA.o | ||
$(TOUCH) | $(TOUCH) | ||
− | $( | + | $(DILIB)/Date/CharSetAtoS.o: $(DILIB_IMPORT)/CharSet/CharSetAtoS.c \ |
− | $(DILIB_TARGET)/Date/CharSet.include $(DILIB)/include/Buffer.h | + | $(DILIB_TARGET)/Date/CharSet.include \ |
− | $(CC) $(DILIB_IMPORT)/CharSet/CharSetAtoS.c | + | $(DILIB)/include/Buffer.h |
+ | $(CC) $(DILIB_IMPORT)/CharSet/CharSetAtoS.c \ | ||
-I$(DILIB)/include \ | -I$(DILIB)/include \ | ||
-c -o CharSetAtoS.o | -c -o CharSetAtoS.o | ||
Ligne 78 : | Ligne 84 : | ||
$(TOUCH) | $(TOUCH) | ||
− | $( | + | $(DILIB)/Date/CharSetAtoSO.o: $(DILIB_IMPORT)/CharSet/CharSetAtoSO.c \ |
− | $( | + | $(DILIB)/Date/CharSet.include \ |
+ | $(DILIB)/include/Buffer.h | ||
$(CC) $(DILIB_IMPORT)/CharSet/CharSetAtoSO.c \ | $(CC) $(DILIB_IMPORT)/CharSet/CharSetAtoSO.c \ | ||
-I$(DILIB)/include \ | -I$(DILIB)/include \ | ||
Ligne 86 : | Ligne 93 : | ||
$(TOUCH) | $(TOUCH) | ||
− | $( | + | $(DILIB)/Date/CharSetBuffer.lib: $(DILIB_TARGET)/Date/CharSetUrl.o \ |
$(DILIB_TARGET)/Date/CharSetToHtml.o | $(DILIB_TARGET)/Date/CharSetToHtml.o | ||
$(RANLIB) $(DILIB)/lib/libDilib.a | $(RANLIB) $(DILIB)/lib/libDilib.a | ||
$(TOUCH) | $(TOUCH) | ||
− | $( | + | $(DILIB)/Date/CharSetUrl.o: $(DILIB_IMPORT)/CharSet/CharSetUrl.c \ |
− | $( | + | $(DILIB)/Date/CharSet.include \ |
$(DILIB)/include/CharSetBuffer.h | $(DILIB)/include/CharSetBuffer.h | ||
$(CC) $(DILIB_IMPORT)/CharSet/CharSetUrl.c \ | $(CC) $(DILIB_IMPORT)/CharSet/CharSetUrl.c \ | ||
Ligne 100 : | Ligne 107 : | ||
$(TOUCH) | $(TOUCH) | ||
− | $( | + | $(DILIB)/Date/CharSetToHtml.o: $(DILIB_IMPORT)/CharSet/CharSetToHtml.c \ |
− | $( | + | $(DILIB)/Date/CharSet.include \ |
$(DILIB)/include/CharSetBuffer.h | $(DILIB)/include/CharSetBuffer.h | ||
$(CC) $(DILIB_IMPORT)/CharSet/CharSetToHtml.c \ | $(CC) $(DILIB_IMPORT)/CharSet/CharSetToHtml.c \ | ||
Ligne 114 : | Ligne 121 : | ||
# | # | ||
− | $( | + | $(DILIB)/Date/CharSet.bin: $(DILIB)/bin/CharSetTr |
$(TOUCH) | $(TOUCH) | ||
$(DILIB)/bin/CharSetTr: $(DILIB_IMPORT)/CharSet/CharSetTr.c \ | $(DILIB)/bin/CharSetTr: $(DILIB_IMPORT)/CharSet/CharSetTr.c \ | ||
− | $( | + | $(DILIB)/Date/CharSet.lib \ |
− | $( | + | $(DILIB)/Date/Buffer.o |
− | $(CC) $(DILIB_IMPORT)/CharSet/CharSetTr.c | + | $(CC) $(DILIB_IMPORT)/CharSet/CharSetTr.c -Wall -I$(DILIB)/include \ |
$(DILIB)/lib/libDilib.a -o $@ | $(DILIB)/lib/libDilib.a -o $@ | ||
Ligne 126 : | Ligne 133 : | ||
# La Documentation par man d'Unix | # La Documentation par man d'Unix | ||
− | $( | + | $(DILIB)/Date/CharSet.man:$(DILIB)/man/man1/CharSetIntro.1 \ |
− | + | $(DILIB)/man/man1/CharSetTr.1 \ | |
− | + | $(DILIB)/man/man5/CharSet.5 \ | |
− | + | $(DILIB)/man/man3/CharSet.3 | |
$(TOUCH) | $(TOUCH) | ||
Ligne 148 : | Ligne 155 : | ||
#----------------- end CharSet.mk ---------------------------------- | #----------------- end CharSet.mk ---------------------------------- | ||
</source> | </source> | ||
+ | |||
==Mise en œuvre== | ==Mise en œuvre== | ||
Exécuter sous le répertoire $DILIB_ROOT les commandes suivantes : | Exécuter sous le répertoire $DILIB_ROOT les commandes suivantes : | ||
Ligne 156 : | Ligne 164 : | ||
;Test: | ;Test: | ||
<source lang="sh"> | <source lang="sh"> | ||
− | + | . $DILIB_IMPORT/DilibMake/DilibUpdate.sh | |
</source> | </source> | ||
[[Catégorie:Dilib source|CharSet]] | [[Catégorie:Dilib source|CharSet]] |
Version actuelle datée du 16 juin 2017 à 18:03
Module CharSet |
Cette page introduit les sources du module Dilib, module CharSet.
Fichier CharSet.mk
#
# Module : CharSet
# File : CharSet.mk
#
# WARNING : The source reference for this file is on
# wiki: Wicri/Outils (fr)
# page: Wicri:Dilib source, module CharSet
include $(DILIB)/MakeDef.mk
$(DILIB)/Date/CharSet.mod: $(DILIB)/Date/CharSet.include \
$(DILIB)/Date/CharSet.man \
$(DILIB)/Date/CharSet.lib \
$(DILIB)/Date/CharSetBuffer.lib \
$(DILIB)/Date/CharSet.bin
$(TOUCH)
#----------------------------------------------------------------
# Les Fichiers include
#
$(DILIB)/Date/CharSet.include: $(DILIB)/include/CharSet.h \
$(DILIB)/include/CharSetTabO.h \
$(DILIB)/include/CharSetBuffer.h \
$(DILIB)/include/CharSetEbcdic.h
$(TOUCH)
$(DILIB)/include/CharSet.h : $(DILIB_IMPORT)/CharSet/CharSet.h
cp $(DILIB_IMPORT)/CharSet/CharSet.h $@
$(DILIB)/include/CharSetBuffer.h : $(DILIB_IMPORT)/CharSet/CharSetBuffer.h \
$(DILIB_IMPORT)/CharSet/CharSet.h \
$(DILIB)/include/Buffer.h
cp $(DILIB_IMPORT)/CharSet/CharSetBuffer.h $@
$(DILIB)/include/CharSetTabO.h : $(DILIB_IMPORT)/CharSet/CharSetTabO.h
cp $(DILIB_IMPORT)/CharSet/CharSetTabO.h $@
$(DILIB)/include/CharSetEbcdic.h : $(DILIB_IMPORT)/CharSet/CharSetEbcdic.h
cp $(DILIB_IMPORT)/CharSet/CharSetEbcdic.h $@
#--------------------------------------------------------------------
# la librairie Dilib
#
$(DILIB)/Date/CharSet.lib: $(DILIB)/Date/CharSetCtoA.o \
$(DILIB)/Date/CharSetAtoS.o \
$(DILIB)/Date/CharSetAtoSO.o \
$(DILIB)/Date/CharSetOtoA.o \
$(DILIB)/Date/CharSetMisc.o
$(RANLIB) $(DILIB)/lib/libDilib.a
$(TOUCH)
$(DILIB)/Date/CharSetCtoA.o:$(DILIB_IMPORT)/CharSet/CharSetCtoA.c \
$(DILIB)/Date/CharSet.include
$(CC) $(DILIB_IMPORT)/CharSet/CharSetCtoA.c -c -o CharSetCtoA.o
ar ruv $(DILIB)/lib/libDilib.a CharSetCtoA.o
$(TOUCH)
$(DILIB)/Date/CharSetMisc.o: $(DILIB_IMPORT)/CharSet/CharSetMisc.c
$(CC) $(DILIB_IMPORT)/CharSet/CharSetMisc.c -c -o CharSetMisc.o
ar ruv $(DILIB)/lib/libDilib.a CharSetMisc.o
$(TOUCH)
$(DILIB)/Date/CharSetOtoA.o: $(DILIB_IMPORT)/CharSet/CharSetOtoA.c
$(CC) $(DILIB_IMPORT)/CharSet/CharSetOtoA.c -c -o CharSetOtoA.o
ar ruv $(DILIB)/lib/libDilib.a CharSetOtoA.o
$(TOUCH)
$(DILIB)/Date/CharSetAtoS.o: $(DILIB_IMPORT)/CharSet/CharSetAtoS.c \
$(DILIB_TARGET)/Date/CharSet.include \
$(DILIB)/include/Buffer.h
$(CC) $(DILIB_IMPORT)/CharSet/CharSetAtoS.c \
-I$(DILIB)/include \
-c -o CharSetAtoS.o
ar ruv $(DILIB)/lib/libDilib.a CharSetAtoS.o
$(TOUCH)
$(DILIB)/Date/CharSetAtoSO.o: $(DILIB_IMPORT)/CharSet/CharSetAtoSO.c \
$(DILIB)/Date/CharSet.include \
$(DILIB)/include/Buffer.h
$(CC) $(DILIB_IMPORT)/CharSet/CharSetAtoSO.c \
-I$(DILIB)/include \
-c -o CharSetAtoSO.o
ar ruv $(DILIB)/lib/libDilib.a CharSetAtoSO.o
$(TOUCH)
$(DILIB)/Date/CharSetBuffer.lib: $(DILIB_TARGET)/Date/CharSetUrl.o \
$(DILIB_TARGET)/Date/CharSetToHtml.o
$(RANLIB) $(DILIB)/lib/libDilib.a
$(TOUCH)
$(DILIB)/Date/CharSetUrl.o: $(DILIB_IMPORT)/CharSet/CharSetUrl.c \
$(DILIB)/Date/CharSet.include \
$(DILIB)/include/CharSetBuffer.h
$(CC) $(DILIB_IMPORT)/CharSet/CharSetUrl.c \
-I$(DILIB)/include \
-c -o CharSetUrl.o
ar ruv $(DILIB)/lib/libDilib.a CharSetUrl.o
$(TOUCH)
$(DILIB)/Date/CharSetToHtml.o: $(DILIB_IMPORT)/CharSet/CharSetToHtml.c \
$(DILIB)/Date/CharSet.include \
$(DILIB)/include/CharSetBuffer.h
$(CC) $(DILIB_IMPORT)/CharSet/CharSetToHtml.c \
-I$(DILIB)/include \
-c -o CharSetToHtml.o
ar ruv $(DILIB)/lib/libDilib.a CharSetToHtml.o
$(TOUCH)
#------------------------------------------------------------------
# Les binaires
#
$(DILIB)/Date/CharSet.bin: $(DILIB)/bin/CharSetTr
$(TOUCH)
$(DILIB)/bin/CharSetTr: $(DILIB_IMPORT)/CharSet/CharSetTr.c \
$(DILIB)/Date/CharSet.lib \
$(DILIB)/Date/Buffer.o
$(CC) $(DILIB_IMPORT)/CharSet/CharSetTr.c -Wall -I$(DILIB)/include \
$(DILIB)/lib/libDilib.a -o $@
#--------------------------------------------------------------------
# La Documentation par man d'Unix
$(DILIB)/Date/CharSet.man:$(DILIB)/man/man1/CharSetIntro.1 \
$(DILIB)/man/man1/CharSetTr.1 \
$(DILIB)/man/man5/CharSet.5 \
$(DILIB)/man/man3/CharSet.3
$(TOUCH)
$(DILIB)/man/man1/CharSetIntro.1: $(DILIB_IMPORT)/CharSet/CharSetIntro.1.man
$(MAKE_MAN) $(DILIB_IMPORT)/CharSet/CharSetIntro.1.man CharSet $@
$(DILIB)/man/man1/CharSetTr.1: $(DILIB_IMPORT)/CharSet/CharSetTr.1.man
$(MAKE_MAN) $(DILIB_IMPORT)/CharSet/CharSetTr.1.man CharSet $@
$(DILIB)/man/man5/CharSet.5: $(DILIB_IMPORT)/CharSet/CharSet.5.man
$(MAKE_MAN) $(DILIB_IMPORT)/CharSet/CharSet.5.man CharSet $@
$(DILIB)/man/man3/CharSet.3: $(DILIB_IMPORT)/CharSet/CharSet.3.man
$(MAKE_MAN) $(DILIB_IMPORT)/CharSet/CharSet.3.man CharSet $@
cp $(DILIB_IMPORT)/CharSet/CharSet.3.rman $(DILIB)/man/man3/CharSetOtoA.3
cp $(DILIB_IMPORT)/CharSet/CharSet.3.rman $(DILIB)/man/man3/CharSetCtoA.3
#----------------- end CharSet.mk ----------------------------------
Mise en œuvre
Exécuter sous le répertoire $DILIB_ROOT les commandes suivantes :
WicriGetPage -l wicri-outils.fr -p "Wicri:Dilib source, module CharSet" \
| MediaWikiExtractSources -w | HfdStoreFile
- Test
. $DILIB_IMPORT/DilibMake/DilibUpdate.sh