]> Zhao Yanbai Git Server - minix.git/commitdiff
put the zoneinfo library files directly in the lib/stdtime dir
authorBen Gras <ben@minix3.org>
Thu, 12 Apr 2007 14:29:30 +0000 (14:29 +0000)
committerBen Gras <ben@minix3.org>
Thu, 12 Apr 2007 14:29:30 +0000 (14:29 +0000)
commands/zoneinfo/Makefile
lib/generate.sh
lib/stdtime/Makefile.in
lib/stdtime/asctime.c [moved from commands/zoneinfo/asctime.c with 100% similarity]
lib/stdtime/localtime.c [moved from commands/zoneinfo/localtime.c with 100% similarity]
lib/stdtime/strftime.c [moved from commands/zoneinfo/strftime.c with 100% similarity]

index bf2b5baecc988bfac14b8cd30115d472cc0b3c59..7ef9f7b912a7e1b8ff28bb5071df27a755700d5b 100644 (file)
@@ -238,17 +238,17 @@ VALIDATE_ENV = \
 cc=            cc
 CC=            $(cc) -DTZDIR=\"$(TZDIR)\"
 
-TZCSRCS=       zic.c localtime.c asctime.c scheck.c ialloc.c
-TZCOBJS=       zic.o localtime.o asctime.o scheck.o ialloc.o
-TZDSRCS=       zdump.c localtime.c ialloc.c
-TZDOBJS=       zdump.o localtime.o ialloc.o
-DATESRCS=      date.c localtime.c logwtmp.c strftime.c asctime.c
-DATEOBJS=      date.o localtime.o logwtmp.o strftime.o asctime.o
-LIBSRCS=       localtime.c asctime.c difftime.c
-LIBOBJS=       localtime.o asctime.o difftime.o
+TZCSRCS=       zic.c scheck.c ialloc.c
+TZCOBJS=       zic.o scheck.o ialloc.o
+TZDSRCS=       zdump.c ialloc.c
+TZDOBJS=       zdump.o ialloc.o
+DATESRCS=      date.c logwtmp.c
+DATEOBJS=      date.o logwtmp.o
+LIBSRCS=       difftime.c
+LIBOBJS=       difftime.o
 HEADERS=       tzfile.h private.h
 NONLIBSRCS=    zic.c zdump.c scheck.c ialloc.c
-NEWUCBSRCS=    date.c logwtmp.c strftime.c
+NEWUCBSRCS=    date.c logwtmp.c
 SOURCES=       $(HEADERS) $(LIBSRCS) $(NONLIBSRCS) $(NEWUCBSRCS) tzselect.ksh
 DOCS=          README Theory date.1 Makefile
 PRIMARY_YDATA= africa antarctica asia australasia \
@@ -329,8 +329,8 @@ zones:              $(REDO)
 # We use the system's logwtmp in preference to ours if available.
 
 date:          $(DATEOBJS) logwtmp.o
-               $(CC) $(CFLAGS) date.o logwtmp.o localtime.o asctime.o \
-                       strftime.o $(LDLIBS) -o $@
+               $(CC) $(CFLAGS) date.o logwtmp.o \
+                       $(LDLIBS) -o $@
 
 tzselect:      tzselect.ksh
                sed \
@@ -386,13 +386,10 @@ typecheck:
 zonenames:     $(TDATA)
                @$(AWK) '/^Zone/ { print $$2 } /^Link/ { print $$3 }' $(TDATA)
 
-asctime.o:     private.h tzfile.h
 date.o:                private.h
 difftime.o:    private.h
 ialloc.o:      private.h
-localtime.o:   private.h tzfile.h
 scheck.o:      private.h
-strftime.o:    tzfile.h
 zic.o:         private.h tzfile.h
 
 .KEEP_STATE:
index ad4d598725d2d6272e34a2ef0b6fc6d248d8c9eb..f520a32e78afd1c17490ab14a85bf083e7bcc331 100644 (file)
@@ -167,7 +167,7 @@ for lib in $LIBRARIES
                echo
                for f in $FILES
                {
-                       o=`basename $f | sed -e 's/\\..\$/\.o/'`
+                       o=`echo $f | sed -e 's/\\..*\$/\.o/'`
                        echo "$ACKBASE/$lib.a: $ACKBASE/$lib.a($o)"
                }
                echo
@@ -177,7 +177,7 @@ for lib in $LIBRARIES
                echo
                for f in $FILES
                {
-                       o=`basename $f | sed -e 's/\\..\$/\.o/'`
+                       o=`echo $f | sed -e 's/\\..*\$/\.o/'`
                        echo "$ACKBASE/$lib.a($o): $f"
                        
                        ackCommands $ACKBASE/$OBJDIR/$o $f
@@ -191,7 +191,7 @@ for lib in $LIBRARIES
                echo
                for f in $FILES
                {
-                       o=`basename $f | sed -e 's/\\..\$/\.o/'`
+                       o=`echo $f | sed -e 's/\\..*\$/\.o/'`
                        echo "$GNUBASE/$lib.a: $GNUBASE/$OBJDIR/$o"
                }
                echo
@@ -200,7 +200,7 @@ for lib in $LIBRARIES
                echo
                for f in $FILES
                {
-                       o=`basename $f | sed -e 's/\\..\$/\.o/'`
+                       o=`echo $f | sed -e 's/\\..*\$/\.o/'`
                        
                        echo "$GNUBASE/$OBJDIR/$o: $f"
                        
@@ -214,7 +214,7 @@ echo
 #start files
 for f in $STARTFILES
 {
-       o=`basename $f | sed -e 's/\\..\$/\.o/'`
+       o=`echo $f | sed -e 's/\\..*\$/\.o/'`
        
        if [ $TYPE = "both" -o $TYPE = "ack" ]; then
                echo "all-ack: $ACKBASE/$o"
index 1d4c975e9f26369f3c42a626bb27d9c99656e89e..ea657d580d68c6c8d5fb71527aaa736e929bad26 100644 (file)
@@ -6,9 +6,9 @@ CFLAGS="-O -D_MINIX -D_POSIX_SOURCE -D__USG -I$Z"
 
 LIBRARIES=libc
 libc_FILES="
-       $Z/asctime.c
-       $Z/localtime.c
-       $Z/strftime.c
+       asctime.c
+       localtime.c
+       strftime.c
        "
                
 TYPE=both