Wicri:Dilib source, module CharSet
De Wicri Outils
Révision datée du 16 janvier 2015 à 20:09 par imported>Jacques Ducloy
Module CharSet |
Cette page introduit les sources du module Dilib, module CharSet.
Fichier CharSet.mk
#
# Module : CharSet
# Fichier : CharSet.mk
#
include $(DILIB_TARGET)/MakeDef.mk
$(DILIB_TARGET)/Date/CharSet.mod: $(DILIB_TARGET)/Date/CharSet.include \
$(DILIB_TARGET)/Date/CharSet.man \
$(DILIB_TARGET)/Date/CharSet.lib \
$(DILIB_TARGET)/Date/CharSetBuffer.lib \
$(DILIB_TARGET)/Date/CharSet.bin
$(TOUCH)
#----------------------------------------------------------------
# Les Fichiers include
#
$(DILIB_TARGET)/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_TARGET)/Date/CharSet.lib: $(DILIB_TARGET)/Date/CharSetCtoA.o \
$(DILIB_TARGET)/Date/CharSetAtoS.o \
$(DILIB_TARGET)/Date/CharSetAtoSO.o \
$(DILIB_TARGET)/Date/CharSetOtoA.o \
$(DILIB_TARGET)/Date/CharSetMisc.o
$(RANLIB) $(DILIB)/lib/libDilib.a
$(TOUCH)
$(DILIB_TARGET)/Date/CharSetCtoA.o:$(DILIB_IMPORT)/CharSet/CharSetCtoA.c $(DILIB_TARGET)/Date/CharSet.include
$(CC) $(DILIB_IMPORT)/CharSet/CharSetCtoA.c -c -o CharSetCtoA.o
ar ruv $(DILIB)/lib/libDilib.a CharSetCtoA.o
$(TOUCH)
$(DILIB_TARGET)/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_TARGET)/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_TARGET)/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_TARGET)/Date/CharSetAtoSO.o: $(DILIB_IMPORT)/CharSet/CharSetAtoSO.c \
$(DILIB_TARGET)/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_TARGET)/Date/CharSetBuffer.lib: $(DILIB_TARGET)/Date/CharSetUrl.o \
$(DILIB_TARGET)/Date/CharSetToHtml.o
$(RANLIB) $(DILIB)/lib/libDilib.a
$(TOUCH)
$(DILIB_TARGET)/Date/CharSetUrl.o: $(DILIB_IMPORT)/CharSet/CharSetUrl.c \
$(DILIB_TARGET)/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_TARGET)/Date/CharSetToHtml.o: $(DILIB_IMPORT)/CharSet/CharSetToHtml.c \
$(DILIB_TARGET)/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_TARGET)/Date/CharSet.bin: $(DILIB)/bin/CharSetTr
$(TOUCH)
$(DILIB)/bin/CharSetTr: $(DILIB_IMPORT)/CharSet/CharSetTr.c \
$(DILIB_TARGET)/Date/CharSet.lib \
$(DILIB_TARGET)/Date/Buffer.o
$(CC) $(DILIB_IMPORT)/CharSet/CharSetTr.c -I$(DILIB)/include \
$(DILIB)/lib/libDilib.a -o $@
#--------------------------------------------------------------------
# La Documentation par man d'Unix
$(DILIB_TARGET)/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