Wicri:Dilib source, module CharSet : Différence entre versions
De Wicri Outils
imported>Jacques Ducloy (→Mise en œuvre) |
imported>Jacques Ducloy |
||
Ligne 65 : | Ligne 65 : | ||
$(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 83 : | 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 91 : | 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 105 : | 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 119 : | 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 -I$(DILIB)/include \ | $(CC) $(DILIB_IMPORT)/CharSet/CharSetTr.c -I$(DILIB)/include \ | ||
$(DILIB)/lib/libDilib.a -o $@ | $(DILIB)/lib/libDilib.a -o $@ | ||
Ligne 131 : | 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) | ||
Version du 16 janvier 2015 à 22:02
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 -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