]> code.delx.au - gnu-emacs/blobdiff - lib/makefile.w32-in
Update Windows port to gnulib changes in 2012-07-06T21:07:46Z!eggert@cs.ucla.edu.
[gnu-emacs] / lib / makefile.w32-in
index b2aececf251b57f6e67a1a0cf2239720268a1724..f2853f10cb9a8d9a11182d4420f5e7220fc2758e 100644 (file)
@@ -20,15 +20,25 @@ ALL = gnulib
 
 .PHONY: $(ALL)
 
-LOCAL_FLAGS    = -DHAVE_CONFIG_H=1 -I. -I../nt/inc -I../src
+LOCAL_FLAGS    = -I. -I../nt/inc -I../src
 LIBS           =
 
-GNULIBOBJS = $(BLD)/dtoastr.$(O) \
+GNULIBOBJS = $(BLD)/c-ctype.$(O) \
+            $(BLD)/c-strcasecmp.$(O) \
+            $(BLD)/c-strncasecmp.$(O) \
+            $(BLD)/dtoastr.$(O) \
+            $(BLD)/dtotimespec.$(O)  \
             $(BLD)/getopt.$(O)  \
             $(BLD)/getopt1.$(O) \
+            $(BLD)/gettime.$(O) \
             $(BLD)/strftime.$(O) \
             $(BLD)/time_r.$(O) \
+            $(BLD)/timespec-add.$(O) \
+            $(BLD)/timespec-sub.$(O) \
             $(BLD)/md5.$(O) \
+            $(BLD)/sha1.$(O) \
+            $(BLD)/sha256.$(O) \
+            $(BLD)/sha512.$(O) \
             $(BLD)/filemode.$(O)
 
 #
@@ -38,16 +48,18 @@ $(BLD)/libgnu.$(A): $(GNULIBOBJS)
        - $(DEL) $@
        $(AR) $(AR_OUT)$@ $(ALL_DEPS)
 
-gnulib:        stamp_BLD $(BLD)/libgnu.$(A)
+gnulib:                $(BLD)/libgnu.$(A)
 
 #
 # Build everything
 #
-all:           stamp_BLD $(ALL)
+all:           $(ALL)
 
 ### TAGS ###
 
-TAGS:
+FRC:
+
+TAGS: FRC
         ../lib-src/$(BLD)/etags.exe *.c *.h
 
 ### DEPENDENCIES ###
@@ -55,6 +67,26 @@ TAGS:
 EMACS_ROOT     = ..
 SRC            = .
 
+$(BLD)/c-ctype.$(O) : \
+       $(SRC)/c-ctype.c \
+       $(SRC)/c-ctype.h \
+       $(EMACS_ROOT)/src/s/ms-w32.h \
+       $(EMACS_ROOT)/src/config.h
+
+$(BLD)/c-strcasecmp.$(O) : \
+       $(SRC)/c-strcasecmp.c \
+       $(SRC)/c-strcase.h \
+       $(SRC)/c-ctype.h \
+       $(EMACS_ROOT)/src/s/ms-w32.h \
+       $(EMACS_ROOT)/src/config.h
+
+$(BLD)/c-strncasecmp.$(O) : \
+       $(SRC)/c-strncasecmp.c \
+       $(SRC)/c-strcase.h \
+       $(SRC)/c-ctype.h \
+       $(EMACS_ROOT)/src/s/ms-w32.h \
+       $(EMACS_ROOT)/src/config.h
+
 $(BLD)/dtoastr.$(O) : \
        $(SRC)/dtoastr.c \
        $(SRC)/ftoastr.c \
@@ -62,7 +94,14 @@ $(BLD)/dtoastr.$(O) : \
        $(SRC)/intprops.h \
        $(EMACS_ROOT)/nt/inc/sys/stat.h \
        $(EMACS_ROOT)/src/s/ms-w32.h \
-       $(EMACS_ROOT)/src/m/intel386.h \
+       $(EMACS_ROOT)/src/config.h
+
+$(BLD)/dtotimespec.$(O) : \
+       $(SRC)/dtotimespec.c \
+       $(SRC)/intprops.h \
+       $(SRC)/timespec.h \
+       $(EMACS_ROOT)/nt/inc/sys/stat.h \
+       $(EMACS_ROOT)/src/s/ms-w32.h \
        $(EMACS_ROOT)/src/config.h
 
 $(BLD)/getopt.$(O) : \
@@ -73,7 +112,6 @@ $(BLD)/getopt.$(O) : \
        $(EMACS_ROOT)/nt/inc/unistd.h \
        $(EMACS_ROOT)/nt/inc/sys/stat.h \
        $(EMACS_ROOT)/src/s/ms-w32.h \
-       $(EMACS_ROOT)/src/m/intel386.h \
        $(EMACS_ROOT)/src/config.h
 
 $(BLD)/getopt1.$(O) : \
@@ -82,7 +120,14 @@ $(BLD)/getopt1.$(O) : \
        $(SRC)/getopt_int.h \
        $(EMACS_ROOT)/nt/inc/sys/stat.h \
        $(EMACS_ROOT)/src/s/ms-w32.h \
-       $(EMACS_ROOT)/src/m/intel386.h \
+       $(EMACS_ROOT)/src/config.h
+
+$(BLD)/gettime.$(O) : \
+       $(SRC)/gettime.c \
+       $(SRC)/timespec.h \
+       $(EMACS_ROOT)/nt/inc/sys/time.h \
+       $(EMACS_ROOT)/nt/inc/sys/stat.h \
+       $(EMACS_ROOT)/src/s/ms-w32.h \
        $(EMACS_ROOT)/src/config.h
 
 $(BLD)/strftime.$(O) : \
@@ -91,23 +136,64 @@ $(BLD)/strftime.$(O) : \
        $(EMACS_ROOT)/nt/inc/stdbool.h \
        $(EMACS_ROOT)/nt/inc/sys/stat.h \
        $(EMACS_ROOT)/src/s/ms-w32.h \
-       $(EMACS_ROOT)/src/m/intel386.h \
        $(EMACS_ROOT)/src/config.h
 
 $(BLD)/time_r.$(O) : \
        $(SRC)/time_r.c \
        $(EMACS_ROOT)/nt/inc/sys/stat.h \
        $(EMACS_ROOT)/src/s/ms-w32.h \
-       $(EMACS_ROOT)/src/m/intel386.h \
+       $(EMACS_ROOT)/src/config.h
+
+$(BLD)/timespec-add.$(O) : \
+       $(SRC)/timespec-add.c \
+       $(SRC)/intprops.h \
+       $(SRC)/timespec.h \
+       $(EMACS_ROOT)/nt/inc/sys/stat.h \
+       $(EMACS_ROOT)/src/s/ms-w32.h \
+       $(EMACS_ROOT)/src/config.h
+
+$(BLD)/timespec-sub.$(O) : \
+       $(SRC)/timespec-sub.c \
+       $(SRC)/intprops.h \
+       $(SRC)/timespec.h \
+       $(EMACS_ROOT)/nt/inc/sys/stat.h \
+       $(EMACS_ROOT)/src/s/ms-w32.h \
        $(EMACS_ROOT)/src/config.h
 
 $(BLD)/md5.$(O) : \
        $(SRC)/md5.c \
        $(SRC)/md5.h \
        $(EMACS_ROOT)/nt/inc/stdint.h \
+       $(EMACS_ROOT)/nt/inc/stdalign.h \
+       $(EMACS_ROOT)/nt/inc/sys/stat.h \
+       $(EMACS_ROOT)/src/s/ms-w32.h \
+       $(EMACS_ROOT)/src/config.h
+
+$(BLD)/sha1.$(O) : \
+       $(SRC)/sha1.c \
+       $(SRC)/sha1.h \
+       $(EMACS_ROOT)/nt/inc/stdint.h \
+       $(EMACS_ROOT)/nt/inc/stdalign.h \
+       $(EMACS_ROOT)/nt/inc/sys/stat.h \
+       $(EMACS_ROOT)/src/s/ms-w32.h \
+       $(EMACS_ROOT)/src/config.h
+
+$(BLD)/sha256.$(O) : \
+       $(SRC)/sha256.c \
+       $(SRC)/sha256.h \
+       $(EMACS_ROOT)/nt/inc/stdint.h \
+       $(EMACS_ROOT)/nt/inc/stdalign.h \
+       $(EMACS_ROOT)/nt/inc/sys/stat.h \
+       $(EMACS_ROOT)/src/s/ms-w32.h \
+       $(EMACS_ROOT)/src/config.h
+
+$(BLD)/sha512.$(O) : \
+       $(SRC)/sha512.c \
+       $(SRC)/sha512.h \
+       $(EMACS_ROOT)/nt/inc/stdint.h \
+       $(EMACS_ROOT)/nt/inc/stdalign.h \
        $(EMACS_ROOT)/nt/inc/sys/stat.h \
        $(EMACS_ROOT)/src/s/ms-w32.h \
-       $(EMACS_ROOT)/src/m/intel386.h \
        $(EMACS_ROOT)/src/config.h
 
 $(BLD)/filemode.$(O) : \
@@ -115,15 +201,12 @@ $(BLD)/filemode.$(O) : \
        $(SRC)/filemode.h \
        $(EMACS_ROOT)/nt/inc/sys/stat.h \
        $(EMACS_ROOT)/src/s/ms-w32.h \
-       $(EMACS_ROOT)/src/m/intel386.h \
        $(EMACS_ROOT)/src/config.h
 
 # The following dependencies are for supporting parallel builds, where
 # we must make sure $(BLD) exists before any compilation starts.
 #
-$(BLD)/dtoastr.$(O) $(BLD)/getopt.$(O) $(BLD)/getopt1.$(O): stamp_BLD
-$(BLD)/strftime.$(O) $(BLD)/time_r.$(O) $(BLD)/md5.$(O): stamp_BLD
-$(BLD)/filemode.$(O): stamp_BLD
+$(GNULIBOBJS): stamp_BLD
 
 #
 # Headers we would preprocess if we could.
@@ -180,14 +263,14 @@ getopt_.h-SH: doit
 
 HAVE_GETOPT_H = HAVE_GETOPT_H
 INCLUDE_NEXT = include_next
-PRAGMA_SYSTEM_HEADER = \#pragma GCC system_header
 PRAGMA_COLUMNS =
 NEXT_GETOPT_H = <getopt.h>
-ARG_NONNULL_H = ../arg-nonnull.h
+ARG_NONNULL_H = ../build-aux/snippet/arg-nonnull.h
 
 getopt_h:
        - $(DEL) getopt_.h-t getopt_.h
-       sed -e "s!@HAVE_GETOPT_H@!$(HAVE_GETOPT_H)!g" \
+       sed -e "s!@GUARD_PREFIX@!GL!g" \
+           -e "s!@HAVE_GETOPT_H@!$(HAVE_GETOPT_H)!g" \
            -e "s!@INCLUDE_NEXT@!$(INCLUDE_NEXT)!g" \
            -e "s!@PRAGMA_SYSTEM_HEADER@!$(PRAGMA_SYSTEM_HEADER)!g" \
            -e "s!@PRAGMA_COLUMNS@!$(PRAGMA_COLUMNS)!g" \