Changeset 4187

Show
Ignore:
Timestamp:
01/21/07 21:32:03 (2 years ago)
Author:
fujii
Message:

Sync up with makefile.w32-in.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/leim/ChangeLog.Meadow

    r4184 r4187  
     12007-01-21  Masayuki FUJII  <boochang@m4.kcn.ne.jp> 
     2 
     3        * makefile.mw32-in: Sync up with makefile.w32-in. 
     4 
    152007-01-08  MIYOSHI Masanori  <miyoshi@meadowy.org> 
    26 
  • trunk/leim/makefile.mw32-in

    r4125 r4187  
    11# -*- Makefile -*- for leim subdirectory in GNU Emacs on the Microsoft W32 API. 
    2 # Copyright (C) 1997, 2004 Electrotechnical Laboratory, JAPAN. 
    3 #   Licensed to the Free Software Foundation. 
    4 # Copyright (C) 2005, Free Software Foundation, Inc. 
     2# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 
     3#   Free Software Foundation, Inc. 
     4# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 
     5#   National Institute of Advanced Industrial Science and Technology (AIST) 
     6#   Registration Number H14PRO021 
    57 
    68# This file is part of GNU Emacs. 
     
    118120        $(srcdir)/quail/ipa.elc \ 
    119121        $(srcdir)/quail/hebrew.elc \ 
    120         $(srcdir)/quail/georgian.elc 
     122        $(srcdir)/quail/georgian.elc \ 
     123        $(srcdir)/quail/sisheng.elc 
    121124 
    122125MISC_DIC=\ 
     
    164167 
    165168# Rule to generate quail/*.el from CXTERM-DIC/*.tit. 
     169# 
     170# WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as 
     171#          this can break with GNU Make 3.81 and later if sh.exe is used. 
    166172$(TIT): 
    167173        $(RUN_EMACS) -l $(buildlisppath)/international/titdic-cnv \ 
     
    178184            -f batch-byte-compile $(MISC_DIC:.elc=.el) 
    179185 
    180 leim-list.el: $(SUBDIRS) $(WORLD) 
     186
     187# WARNING: Do NOT split the parts inside $(ARGQUOTE)s into multiple lines as 
     188#          this can break with GNU Make 3.81 and later if sh.exe is used. 
     189leim-list.el: $(SUBDIRS) $(WORLD) $(srcdir)/leim-ext.el 
    181190        $(RUN_EMACS) -l $(buildlisppath)/international/quail \ 
    182191            --eval $(ARGQUOTE)(update-leim-list-file $(DQUOTE).$(DQUOTE))$(ARGQUOTE) 
     192        $(RUN_EMACS) --eval $(ARGQUOTE)(w32-append-code-lines $(DQUOTE)$@$(DQUOTE) $(DQUOTE)$(srcdir)/leim-ext.el$(DQUOTE))$(ARGQUOTE) 
    183193 
    184194install: all 
  • trunk/lib-src

    • Property svn:ignore changed from
      DOC
      ctags.c
      getopt.h
      makefile
      obj
      obj-spd
      oo-spd
      oo
      to
      DOC
      ctags.c
      getopt.h
      makefile
      obj
      obj-spd
      oo-spd
      oo
      stamp_BLD
  • trunk/lib-src/ChangeLog.Meadow

    r4181 r4187  
     12007-01-21  Masayuki FUJII  <boochang@m4.kcn.ne.jp> 
     2 
     3        * makefile.mw32-in: Sync up with makefile.w32-in. 
     4 
    152006-11-19  Masayuki FUJII  <boochang@m4.kcn.ne.jp> 
    26 
  • trunk/lib-src/makefile.mw32-in

    r4181 r4187  
    2121# 
    2222 
    23 ALL          = make-docfile hexl ctags etags movemail ebrowse emacsclient 
     23ALL = make-docfile hexl ctags etags movemail ebrowse sorted-doc digest-doc emacsclient 
    2424 
    2525.PHONY: $(ALL) 
     26 
     27VERSION         = 22.0.92 
    2628 
    2729LOCAL_FLAGS     = -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=1 -DNO_LDAV=1 \ 
     
    4143#               $(BLD)/test-distrib.exe \ 
    4244 
    43 LIBS        = $(BASE_LIBS) $(ADVAPI32) 
     45LIBS        = $(BASE_LIBS) $(ADVAPI32) 
    4446 
    4547$(BLD)/make-docfile.exe:        $(BLD)/make-docfile.$(O) $(BLD)/ntlib.$(O) 
     
    4951$(BLD)/fakemail.exe:            $(BLD)/fakemail.$(O) $(BLD)/ntlib.$(O) 
    5052                $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/fakemail.$(O) $(BLD)/ntlib.$(O) $(LIBS) 
    51  
    52 make-docfile:   $(BLD) $(BLD)/make-docfile.exe 
    53 ctags:          $(BLD) $(BLD)/ctags.exe 
    54 etags:          $(BLD) $(BLD)/etags.exe 
    55 ebrowse:        $(BLD) $(BLD)/ebrowse.exe 
    56 hexl:           $(BLD) $(BLD)/hexl.exe 
    57 movemail:       $(BLD) $(BLD)/movemail.exe 
    58 fakemail:       $(BLD) $(BLD)/fakemail.exe 
    59 emacsclient:    $(BLD) $(BLD)/emacsclient.exe $(BLD)/emacsclientw.exe 
     53$(BLD)/sorted-doc.exe:  $(BLD)/sorted-doc.$(O) 
     54                $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/sorted-doc.$(O) $(LIBS) 
     55$(BLD)/digest-doc.exe:  $(BLD)/digest-doc.$(O) 
     56                $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/digest-doc.$(O) $(LIBS) 
     57$(BLD)/test-distrib.exe: $(BLD)/test-distrib.$(O) 
     58                $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/test-distrib.$(O) $(LIBS) 
     59 
     60make-docfile:   stamp_BLD $(BLD)/make-docfile.exe 
     61ctags:          stamp_BLD $(BLD)/ctags.exe 
     62etags:          stamp_BLD $(BLD)/etags.exe 
     63ebrowse:        stamp_BLD $(BLD)/ebrowse.exe 
     64hexl:           stamp_BLD $(BLD)/hexl.exe 
     65movemail:       stamp_BLD $(BLD)/movemail.exe 
     66fakemail:       stamp_BLD $(BLD)/fakemail.exe 
     67sorted-doc:     stamp_BLD $(BLD)/sorted-doc.exe 
     68digest-doc:     stamp_BLD $(BLD)/digest-doc.exe 
     69emacsclient:    stamp_BLD $(BLD)/emacsclient.exe $(BLD)/emacsclientw.exe 
     70 
     71test-distrib:   stamp_BLD $(BLD)/test-distrib.exe 
     72        "$(BLD)/test-distrib.exe" "$(SRC)/testfile" 
    6073 
    6174GETOPTOBJS = $(BLD)/getopt.$(O) $(BLD)/getopt1.$(O) 
     
    7588                $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(MOVEMAILOBJS) $(MOVEMAIL_PROGDLG) $(WSOCK32) $(LIBS) $(MOVEMAIL_PROGDLG_LIB) 
    7689 
    77 ECLIENT_CFLAGS = -DHAVE_GETCWD -DHAVE_STRERROR 
     90ECLIENT_CFLAGS = -DHAVE_GETCWD -DHAVE_STRERROR -DVERSION="\"$(VERSION)\"" 
    7891ECLIENTOBJS =   $(BLD)/emacsclient.$(O) \ 
    7992                $(BLD)/getopt.$(O) \ 
    8093                $(BLD)/getopt1.$(O) \ 
    8194                $(BLD)/ntlib.$(O) 
     95TRES =          ../nt/$(BLD)/meadow.res 
     96 
     97$(TRES):        ../nt/meadow.rc 
     98                $(RC) $(RC_OUT)../nt/$(BLD)/meadow.res $(ALL_DEPS) 
    8299 
    83100$(BLD)/emacsclient.exe:         $(ECLIENTOBJS) 
    84101# put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib 
    85                 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(ECLIENTOBJS) $(WSOCK32) $(LIBS) 
    86  
    87 $(BLD)/emacsclientw.exe:        $(ECLIENTOBJS) 
     102                $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(ECLIENTOBJS) $(WSOCK32) $(USER32) $(LIBS) 
     103 
     104$(BLD)/emacsclientw.exe:        $(ECLIENTOBJS) $(TRES) 
    88105# put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib 
    89                 $(LINK) $(LINK_OUT)$@ -mwindows $(LINK_FLAGS) $(ECLIENTOBJS) $(WSOCK32) $(LIBS) 
    90  
    91 $(BLD)/emacsclient.$(O):        emacsclient.c 
     106                $(LINK) $(LINK_OUT)$@ $(TRES) -mwindows $(LINK_FLAGS) $(ECLIENTOBJS) $(WSOCK32) $(USER32) $(LIBS) 
     107 
     108# emacsclient.$(O) depends on makefile.mw32-in because makefile.mw32-in 
     109# can be edited to define VERSION string, which is part of ECLIENT_CFLAGS. 
     110$(BLD)/emacsclient.$(O):        emacsclient.c makefile.mw32-in 
    92111                $(CC) $(CFLAGS) $(ECLIENT_CFLAGS) $(CC_OUT)$@ emacsclient.c 
    93112 
     
    292311        $(lispsource)version.el 
    293312 
     313# This is needed the first time we build the tree, since temacs.exe 
     314# does not exist yet, and the DOC rule needs it to rebuild DOC whenever 
     315# Emacs is rebuilt. 
     316../src/$(BLD)/temacs.exe: 
     317        - mkdir "../src/$(OBJDIR)" 
     318        - mkdir "../src/$(BLD)" 
     319        @echo temacs > temacs.exe 
     320        $(CP) temacs.exe ../src/$(BLD) 
     321        - $(DEL) temacs.exe 
    294322 
    295323DOC           = DOC 
    296 $(DOC):         $(BLD) $(BLD)/make-docfile.exe $(lisp1) $(lisp2) 
     324$(DOC):         stamp_BLD $(BLD)/make-docfile.exe ../src/$(BLD)/temacs.exe $(lisp1) $(lisp2) 
    297325                - $(DEL) $(DOC) 
    298326                "$(THISDIR)/$(BLD)/make-docfile" -o $(DOC) -d ../src $(obj) 
     
    310338# Build the executables 
    311339# 
    312 all:            $(BLD) $(ALL) $(DOC) 
     340all:            stamp_BLD $(ALL) $(DOC) 
    313341 
    314342# 
     
    323351                $(CP) $(BLD)/hexl.exe $(INSTALL_DIR)/bin 
    324352                $(CP) $(BLD)/movemail.exe $(INSTALL_DIR)/bin 
     353                $(CP) $(BLD)/sorted-doc.exe $(INSTALL_DIR)/bin 
     354                $(CP) $(BLD)/digest-doc.exe $(INSTALL_DIR)/bin 
    325355                $(CP) $(BLD)/emacsclient.exe $(INSTALL_DIR)/bin 
    326356                $(CP) $(BLD)/emacsclientw.exe $(INSTALL_DIR)/bin 
     
    336366                - $(DEL) getopt.h 
    337367                - $(DEL_TREE) $(OBJDIR) 
     368                - $(DEL) stamp_BLD 
    338369 
    339370cleanall:       clean 
     
    347378# 
    348379../src/config.h:        ../nt/$(CONFIG_H) 
    349                         echo config.h has changed. Re-run configure.bat. 
     380                        echo $(CONFIG_H) has changed. Re-run configure.bat. 
    350381                        exit -1 
    351382 
     
    492523 
    493524$(BLD)/sorted-doc.$(O) : \ 
    494         $(SRC)/sorted-doc.c 
     525        $(SRC)/sorted-doc.c \ 
     526        $(EMACS_ROOT)/src/s/ms-w32.h \ 
     527        $(EMACS_ROOT)/src/m/intel386.h \ 
     528        $(EMACS_ROOT)/src/config.h \ 
    495529 
    496530$(BLD)/tcp.$(O) : \ 
     
    506540        $(EMACS_ROOT)/lib-src/../src/config.h 
    507541 
    508 $(BLD)/yow.$(O) : \ 
    509         $(SRC)/yow.c \ 
    510         $(EMACS_ROOT)/lib-src/../src/paths.h 
     542# The following dependencies are for supporting parallel builds, where 
     543# we must make sure $(BLD) exists before any compilation starts. 
     544
     545$(BLD)/make-docfile.$(O) $(BLD)/hexl.$(O) $(BLD)/fakemail.$(O): stamp_BLD 
     546 
     547$(BLD)/sorted-doc.$(O) $(BLD)/digest-doc.$(O): stamp_BLD 
     548 
     549$(BLD)/test-distrib.$(O) $(GETOPTOBJS) $(MOVEMAILOBJS): stamp_BLD 
     550 
     551$(BLD)/emacsclient.$(O) $(BLD)/etags.$(O) $(BLD)/regex.$(O): stamp_BLD 
     552 
     553$(BLD)/ebrowse.$(O) $(BLD)/ctags.$(O): stamp_BLD 
  • trunk/lisp/ChangeLog.Meadow

    r4184 r4187  
     12007-01-21  Masayuki FUJII  <boochang@m4.kcn.ne.jp> 
     2 
     3        * makefile.mw32-in: Sync up with makefile.w32-in. 
     4 
    152007-01-08  MIYOSHI Masanori  <miyoshi@meadowy.org> 
    26 
  • trunk/lisp/makefile.mw32-in

    r4125 r4187  
    11#  -*- Makefile -*- for GNU Emacs on the Microsoft W32 API. 
    22#  Copyright (C) 2000, 2001, 2002, 2003, 2004, 
    3 #                2005 Free Software Foundation, Inc. 
     3#                2005, 2006 Free Software Foundation, Inc. 
    44# 
    55#  This file is part of GNU Emacs. 
     
    3434# e.g. "make EMACS=../src/emacs ...". 
    3535 
    36 EMACS = "$(THISDIR)/../src/$(BLD)/Meadow.exe" 
     36EMACS = $(THISDIR)/../src/$(BLD)/Meadow.exe 
    3737 
    3838# Command line flags for Emacs.  This must include --multibyte, 
     
    6262 
    6363# The actual Emacs command run in the targets below. 
    64  
    65 emacs = $(EMACS) $(EMACSOPT) 
    66  
    67 # Common command to find subdirectories 
    68  
    69 setwins=subdirs=`find $$wd -type d -print`; \ 
    70         for file in $$subdirs; do \ 
    71            case $$file in */Old | */RCS | */CVS | */CVS/* | */=* ) ;; \ 
    72                 *) wins="$$wins $$file" ;; \ 
    73            esac; \ 
    74         done 
     64# The quotes around $(EMACS) are here because the user could type 
     65# it with forward slashes and without quotes, which will fail if 
     66# the shell is cmd.exe. 
     67 
     68emacs = "$(EMACS)" $(EMACSOPT) 
    7569 
    7670# Have to define the list of subdirs manually when not using sh. 
    77 WINS=\ 
     71WINS_ALMOST=\ 
    7872        calc \ 
    7973        calendar \ 
     
    8882        mh-e \ 
    8983        net \ 
    90         obsolete \ 
    9184        play \ 
    9285        progmodes \ 
     
    9689        url 
    9790 
     91WINS= $(WINS_ALMOST) \ 
     92        obsolete 
     93 
    9894doit: 
    9995 
    100 cus-load.el: 
     96$(lisp)/cus-load.el: 
    10197        touch $@ 
    102 custom-deps: cus-load.el doit 
     98# WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as 
     99#          this can break with GNU Make 3.81 and later if sh.exe is used. 
     100custom-deps: $(lisp)/cus-load.el doit 
    103101        @echo Directories: $(WINS) 
    104102        -$(emacs) -l cus-dep --eval $(ARGQUOTE)(setq find-file-hook nil)$(ARGQUOTE) -f custom-make-dependencies $(lisp) $(WINS) 
     
    108106        $(emacs) -l finder -f finder-compile-keywords-make-dist $(lisp) $(WINS) 
    109107 
    110 loaddefs.el: 
     108$(lisp)/loaddefs.el: 
    111109        $(MAKE) $(MFLAGS) loaddefs.el-$(SHELLTYPE) 
    112110        cp loaddefs.el-$(SHELLTYPE) $@ 
     
    149147        echo ;;; loaddefs.el ends here>> $@ 
    150148 
    151 autoloads: loaddefs.el doit 
    152         @echo Directories: $(WINS) 
     149# Use . instead of $(lisp) because $(lisp) is an absolute file name, 
     150# including a drive letter and any leading directories, so the generated 
     151# loaddefs.el will mention file names that on other machine reference 
     152# possibly non-existent directories. 
     153
     154# WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as 
     155#          this can break with GNU Make 3.81 and later if sh.exe is used. 
     156autoloads: $(lisp)/loaddefs.el doit 
     157        @echo Directories: . $(WINS_ALMOST) 
    153158        $(emacs) -l autoload \ 
    154                 --eval $(ARGQUOTE)(setq find-file-hook nil \ 
    155                         find-file-suppress-same-file-warnings t \ 
    156                         generated-autoload-file \ 
    157                           $(DQUOTE)$(lisp)/loaddefs.el$(DQUOTE))$(ARGQUOTE) \ 
    158                 -f batch-update-autoloads $(lisp) $(WINS) 
    159  
    160 subdirs.el: 
     159                --eval $(ARGQUOTE)(setq find-file-hook nil find-file-suppress-same-file-warnings t)$(ARGQUOTE) \ 
     160                -f w32-batch-update-autoloads "$(lisp)/loaddefs.el" . $(WINS_ALMOST) 
     161 
     162$(lisp)/subdirs.el: 
    161163        $(MAKE) $(MFLAGS) update-subdirs 
    162164 
     
    165167 
    166168update-subdirs-CMD: doit 
    167         echo ;; -*- no-byte-compile: t -*->subdirs.el 
    168         echo ;; In load-path, after this directory should come>> subdirs.el 
    169         echo ;; certain of its subdirectories.  Here we specify them.>> subdirs.el 
    170         echo (normal-top-level-add-to-load-path $(SQUOTE)(>> subdirs.el 
    171         @for %%d in ($(WINS)) do if not (%%d)==(term) echo "%%d">> subdirs.el 
    172         echo ))>> subdirs.el 
     169        echo ;; -*- no-byte-compile: t -*-> $(lisp)/subdirs.el 
     170        echo ;; In load-path, after this directory should come>> $(lisp)/subdirs.el 
     171        echo ;; certain of its subdirectories.  Here we specify them.>> $(lisp)/subdirs.el 
     172        echo (normal-top-level-add-to-load-path $(SQUOTE)(>> $(lisp)/subdirs.el 
     173        @for %%d in ($(WINS)) do if not (%%d)==(term) echo "%%d">> $(lisp)/subdirs.el 
     174        echo ))>> $(lisp)/subdirs.el 
    173175 
    174176update-subdirs-SH: doit 
     
    178180        done; 
    179181 
    180 updates: update-subdirs autoloads finder-data custom-deps 
     182updates: update-subdirs autoloads mh-autoloads finder-data custom-deps 
     183 
     184# This is useful after "cvs up". 
     185cvs-update: recompile autoloads finder-data custom-deps 
    181186 
    182187# Update the AUTHORS file. 
     
    209214 
    210215# Need separate version for sh and native cmd.exe 
    211 compile: subdirs.el compile-$(SHELLTYPE) doit 
     216compile: $(lisp)/subdirs.el mh-autoloads compile-$(SHELLTYPE) doit 
    212217 
    213218compile-CMD: 
     
    238243# set the local variable no-byte-compile. 
    239244 
    240 compile-always: subdirs.el compile-always-$(SHELLTYPE) doit 
     245compile-always: $(lisp)/subdirs.el compile-always-$(SHELLTYPE) doit 
    241246 
    242247compile-always-CMD: 
     
    283288# Note that this doesn't create .elc files.  It only recompiles if an 
    284289# .elc is present. 
    285  
    286 recompile: doit 
    287         $(emacs) -f batch-byte-recompile-directory $(lisp) 
     290# WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as 
     291#          this can break with GNU Make 3.81 and later if sh.exe is used. 
     292recompile: mh-autoloads doit $(lisp)/progmodes/cc-mode.elc 
     293        $(emacs) --eval $(ARGQUOTE)(batch-byte-recompile-directory 0)$(ARGQUOTE) $(lisp) 
    288294 
    289295# Update MH-E internal autoloads. These are not to be confused with 
     
    309315        cp pre-mh-loaddefs.el-$(SHELLTYPE) $@ 
    310316        rm pre-mh-loaddefs.el-$(SHELLTYPE) 
    311         $(EMACS) $(EMACSOPT) \ 
     317        "$(EMACS)" $(EMACSOPT) \ 
    312318           -l autoload \ 
    313319           --eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \ 
     
    367373 
    368374# Need separate version for sh and native cmd.exe 
    369 bootstrap-clean: bootstrap-clean-$(SHELLTYPE) loaddefs.el 
     375# Note that bootstrap-clean-$(SHELLTYPE) copies ldefs-boot.el to loaddefs.el, 
     376# and thus the almost-empty loaddefs.el crafted by the $(lisp)/loaddefs.el 
     377# target can NOT be built _after_ bootstrap-clean-$(SHELLTYPE) does its 
     378# thing, or else an empty loaddefs.el will overwrite the full one. 
     379bootstrap-clean: $(lisp)/loaddefs.el 
     380        $(MAKE) $(MFLAGS) bootstrap-clean-$(SHELLTYPE) 
    370381 
    371382bootstrap-clean-CMD: 
    372 #       if exist $(EMACS) $(MAKE) $(MFLAGS) autoloads 
     383#       if exist "$(EMACS)" $(MAKE) $(MFLAGS) autoloads 
    373384        cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el 
    374385        -for %%f in (. $(WINS)) do for %%g in (%%f\*.elc) do @$(DEL) %%g 
    375386 
    376387bootstrap-clean-SH: 
    377 #       if test -f $(EMACS); then $(MAKE) $(MFLAGS) autoloads; fi 
     388#       if test -f "$(EMACS)"; then $(MAKE) $(MFLAGS) autoloads; fi 
    378389#       -rm -f $(lisp)/*.elc $(lisp)/*/*.elc 
    379390        cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el 
     
    385396 
    386397bootstrap: update-subdirs autoloads mh-autoloads compile finder-data custom-deps 
    387 #       - $(DEL) $(EMACS) 
     398        - $(DEL) "$(EMACS)" 
    388399 
    389400# 
  • trunk/nt

    • Property svn:ignore changed from
      Meadow.bat
      emacs.bat
      makefile
      obj-spd
      oo-spd
      obj
      oo
      to
      Meadow.bat
      emacs.bat
      makefile
      obj-spd
      oo-spd
      obj
      oo
      stamp_BLD
  • trunk/nt/ChangeLog.Meadow

    r4180 r4187  
     12007-01-21  Masayuki FUJII  <boochang@m4.kcn.ne.jp> 
     2 
     3        * makefile.mw32-in: Sync up with makefile.w32-in. 
     4 
     5        * gmake.mw32.defs: Ditto. 
     6 
     7        * nmake.mw32.defs: Ditto. 
     8 
    192006-11-18  MIYOSHI Masanori  <miyoshi@meadowy.org> 
    210 
  • trunk/nt/gmake.mw32.defs

    r4125 r4187  
    210210$(OBJDIR):;     -mkdir "$(OBJDIR)" 
    211211BLD             = $(OBJDIR)/$(ARCH) 
    212 $(BLD):         $(OBJDIR) 
     212stamp_BLD:      $(OBJDIR) 
    213213                -mkdir "$(BLD)" 
     214                echo $(BLD) > $@ 
    214215 
    215216COMPILER_TEMP_FILES = 
     
    281282LINK_FLAGS      = $(ARCH_LDFLAGS) $(DEBUG_LINK) $(NOCYGWIN) $(USER_LDFLAGS) 
    282283 
     284export XMFLAGS 
     285 
    283286.DEFAULT: 
    284287 
  • trunk/nt/makefile.mw32-in

    r4124 r4187  
    11#  -*- Makefile -*- for GNU Emacs on the Microsoft W32 API. 
    22#  Copyright (C) 2000, 2001, 2002, 2003, 2004, 
    3 #    2005 Free Software Foundation, Inc. 
     3#    2005, 2006 Free Software Foundation, Inc. 
    44# 
    55#  Top level makefile for building GNU Emacs on Windows NT 
     
    2222#  Boston, MA 02110-1301, USA. 
    2323 
    24 ALL             = RunMW32 install_exe cmdproxy fiber addsection 
     24ALL             = RunMW32 install_exe cmdproxy fiber addsection preprep 
    2525 
    2626.PHONY: $(ALL) 
     
    2828TRES            = $(BLD)/meadow.res 
    2929 
    30 install_exe:    $(BLD) $(BLD)/install.exe 
     30XMFLAGS         = 
     31 
     32install_exe:    stamp_BLD $(BLD)/install.exe 
    3133$(BLD)/install.exe: $(BLD)/install.$(O) 
    3234                $(LINK) $(LINK_OUT)$@ \ 
    3335                $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) $(OLE32) $(SHELL32) $(UUID) 
    3436 
    35 fiber:          $(BLD) $(BLD)/fiber.exe 
     37fiber:          stamp_BLD $(BLD)/fiber.exe 
    3638$(BLD)/fiber.exe: $(BLD)/fiber.$(O) 
    3739                $(LINK) $(LINK_OUT)$@ \ 
    3840                $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(SHELL32) $(USER32) 
    3941 
    40 RunMW32:        $(BLD) $(BLD)/RunMW32.exe 
     42RunMW32:        stamp_BLD $(BLD)/RunMW32.exe 
    4143$(BLD)/RunMW32.exe: $(BLD)/RunMW32.$(O) $(TRES) 
    4244                $(LINK) -mwindows $(LINK_OUT)$@ \ 
    4345                $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32) 
    4446 
    45 cmdproxy:         $(BLD) $(BLD)/cmdproxy.exe 
     47cmdproxy:         stamp_BLD $(BLD)/cmdproxy.exe 
    4648$(BLD)/cmdproxy.exe: $(BLD)/cmdproxy.$(O) 
    4749                  $(LINK) $(LINK_OUT)$@ \ 
    4850                  $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32) 
    4951 
    50 addsection:       $(BLD) $(BLD)/addsection.exe 
     52addsection:       stamp_BLD $(BLD)/addsection.exe 
    5153$(BLD)/addsection.exe: $(BLD)/addsection.$(O) 
    5254                  $(LINK) $(LINK_OUT)$@ \ 
    5355                  $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32) 
    5456 
     57preprep:          stamp_BLD $(BLD)/preprep.exe 
     58$(BLD)/preprep.exe: $(BLD)/preprep.$(O) 
     59                  $(LINK) $(LINK_OUT)$@ \ 
     60                  $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) 
     61 
    5562# 
    5663# The resource file.  NT 3.10 requires the use of cvtres; even though 
    5764# it is not necessary on later versions, it is still ok to use it. 
    5865# 
    59 $(TRES):        meadow.rc 
    60                 $(RC) $(RC_OUT)$(BLD)/meadow.res $(ALL_DEPS) 
     66$(TRES):        meadow.rc stamp_BLD 
     67                $(RC) $(RC_OUT)$(BLD)/meadow.res meadow.rc 
    6168 
    6269which-sh: 
    6370        @echo Using $(THE_SHELL) as shell. 
    6471 
     72# These depend on stamp_BLD to make sure the $(BLD) directory is created 
     73# before the compilation begins, even if Make runs several commands 
     74# in parallel under "make -j". 
     75# 
     76$(BLD)/addpm.$(O) $(BLD)/ddeclient.$(O) $(BLD)/runemacs.$(O) $(BLD)/cmdproxy.$(O) $(BLD)/addsection.$(O) $(BLD)/preprep.$(O): stamp_BLD 
     77 
    6578# 
    6679# Build emacs 
    6780# 
    68 all:    which-sh $(BLD) $(ALL) maybe-bootstrap all-other-dirs-$(MAKETYPE) 
    69  
    70 all-other-dirs-nmake: 
     81all:    which-sh stamp_BLD $(ALL) maybe-bootstrap all-other-dirs-$(MAKETYPE) 
     82 
     83all-other-dirs-nmake: addsection 
    7184        cd ..\lib-src 
    7285        $(MAKE) $(MFLAGS) all 
     
    7992        cd ..\nt 
    8093 
    81 all-other-dirs-gmake: 
    82         $(MAKE) $(MFLAGS) -C ../lib-src all 
    83         $(MAKE) $(MFLAGS) -C ../src all 
    84         $(MAKE) $(MFLAGS) -C ../lisp all 
    85         $(MAKE) $(MFLAGS) -C ../leim all 
     94all-other-dirs-gmake: addsection 
     95        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src all 
     96        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src all 
     97        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp all 
     98        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim all 
    8699 
    87100recompile:      recompile-$(MAKETYPE) 
     
    93106 
    94107recompile-gmake: 
    95         $(MAKE) $(MFLAGS) -C ../lisp recompile 
     108        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp recompile 
    96109 
    97110#### Bootstrapping. 
     
    123136        fi 
    124137 
    125 bootstrap:      addsection bootstrap-$(MAKETYPE) all 
    126  
    127 bootstrap-nmake: 
     138bootstrap:      addsection bootstrap-$(MAKETYPE) 
     139        $(MAKE) $(MFLAGS) $(XMFLAGS) all 
     140 
     141bootstrap-nmake: addsection 
    128142        cd ..\lisp 
    129143        $(MAKE) $(MFLAGS) bootstrap-clean 
     
    143157        cd ..\nt 
    144158 
    145 bootstrap-gmake: 
    146         $(MAKE) $(MFLAGS) -C ../lisp bootstrap-clean 
    147         $(MAKE) $(MFLAGS) info 
    148         $(MAKE) $(MFLAGS) -C ../src clean 
    149         $(MAKE) $(MFLAGS) -C ../lib-src clean 
    150         $(MAKE) $(MFLAGS) -C ../src bootstrap 
    151         $(MAKE) $(MFLAGS) -C ../src bootstrap-clean 
    152         $(MAKE) $(MFLAGS) -C ../lisp bootstrap 
    153         $(MAKE) $(MFLAGS) -C ../lib-src DOC 
     159bootstrap-gmake: addsection 
     160        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean 
     161        $(MAKE) $(MFLAGS) $(XMFLAGS) info 
     162        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean 
     163        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src clean 
     164        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap 
     165        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap-clean 
     166        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap 
     167        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src DOC 
    154168 
    155169bootstrap-clean: bootstrap-clean-$(MAKETYPE) 
     
    162176 
    163177bootstrap-clean-gmake: 
    164         $(MAKE) $(MFLAGS) -C ../src bootstrap-clean 
    165         $(MAKE) $(MFLAGS) -C ../lisp bootstrap-clean 
     178        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap-clean 
     179        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean 
    166180 
    167181$(INSTALL_DIR): 
     
    218232 
    219233install-other-dirs-gmake: 
    220         $(MAKE) $(MFLAGS) -C ../lib-src install 
    221         $(MAKE) $(MFLAGS) -C ../src install 
    222         $(MAKE) $(MFLAGS) -C ../lisp install 
    223         $(MAKE) $(MFLAGS) -C ../leim install 
     234        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src install 
     235        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src install 
     236        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp install 
     237        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim install 
    224238 
    225239force-info: 
     
    231245info-nmake: 
    232246        cd ..\man 
    233         - $(MAKE) $(MFLAGS) info 
     247        $(MAKE) $(MFLAGS) info 
    234248        cd ..\lispref 
    235         - $(MAKE) $(MFLAGS) info 
     249        $(MAKE) $(MFLAGS) info 
    236250        cd ..\lispintro 
    237         - $(MAKE) $(MFLAGS) info 
     251        $(MAKE) $(MFLAGS) info 
    238252 
    239253info-gmake: 
    240         - $(MAKE) $(MFLAGS) -C ../man info 
    241         - $(MAKE) $(MFLAGS) -C ../lispref info 
    242         - $(MAKE) $(MFLAGS) -C ../lispintro info 
     254        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../man info 
     255        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lispref info 
     256        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lispintro info 
    243257# 
    244258# Maintenance 
     
    247261        - $(DEL) *~ $(COMPILER_TEMP_FILES) 
    248262        - $(DEL_TREE) $(OBJDIR) 
     263        - $(DEL) stamp_BLD 
    249264        - $(DEL) ../etc/DOC ../etc/DOC-X 
    250265 
     
    267282 
    268283clean-other-dirs-gmake: 
    269         $(MAKE) $(MFLAGS) -C ../lib-src clean 
    270         $(MAKE) $(MFLAGS) -C ../src clean 
    271         $(MAKE) $(MFLAGS) -C ../lisp clean 
    272         $(MAKE) $(MFLAGS) -C ../lispintro clean 
    273         $(MAKE) $(MFLAGS) -C ../lispref clean 
    274         $(MAKE) $(MFLAGS) -C ../leim clean 
    275         $(MAKE) $(MFLAGS) -C ../man clean 
     284        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src clean 
     285        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean 
     286        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp clean 
     287        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lispintro clean 
     288        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lispref clean 
     289        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim clean 
     290        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../man clean 
    276291 
    277292cleanall-other-dirs-nmake: 
     
    283298 
    284299cleanall-other-dirs-gmake: 
    285         $(MAKE) $(MFLAGS) -C ../lib-src cleanall 
    286         $(MAKE) $(MFLAGS) -C ../src cleanall 
     300        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src cleanall 
     301        $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src cleanall 
    287302 
    288303cleanall: clean cleanall-other-dirs-$(MAKETYPE) 
  • trunk/nt/nmake.mw32.defs

    r4126 r4187  
    11#  -*- Makefile -*- definition file for building GNU Emacs on Windows NT. 
    22#  Copyright (C) 2000, 2001, 2002, 2003, 2004, 
    3 #    2005 Free Software Foundation, Inc. 
     3#    2005, 2006 Free Software Foundation, Inc. 
    44# 
    55#  GNU Emacs is free software; you can redistribute it and/or modify 
     
    162162$(OBJDIR):;     -mkdir $(OBJDIR) 
    163163BLD             = $(OBJDIR)/$(ARCH) 
    164 $(BLD):         $(OBJDIR) 
     164stamp_BLD:      $(OBJDIR) 
    165165                -mkdir "$(BLD)" 
     166                echo $(BLD) > $@ 
    166167 
    167168COMPILER_TEMP_FILES = *.pdb 
  • trunk/src

    • Property svn:ignore changed from
      *.idb
      config.h
      epaths.h
      makefile
      obj-spd
      oo-spd
      obj
      oo
      TAGS
      to
      *.idb
      config.h
      epaths.h
      makefile
      obj-spd
      oo-spd
      obj
      oo
      stamp_BLD
      TAGS
  • trunk/src/ChangeLog.Meadow

    r4186 r4187  
     12007-01-21  Masayuki FUJII  <boochang@m4.kcn.ne.jp> 
     2 
     3        * makefile.mw32-in: Sync up with makefile.w32-in. 
     4 
    152007-01-08  MIYOSHI Masanori  <miyoshi@meadowy.org> 
    26 
  • trunk/src/makefile.mw32-in

    r4125 r4187  
    11#  -*- Makefile -*- for GNU Emacs on the Microsoft W32 API. 
    22#  Copyright (C) 2000, 2001, 2002, 2003, 2004, 
    3 #                2005 Free Software Foundation, Inc. 
     3#                2005, 2006 Free Software Foundation, Inc. 
    44# 
    55#  This file is part of GNU Emacs. 
     
    3434LOCAL_FLAGS     = -Demacs=1 -DWINDOWSNT -DDOS_NT -DHAVE_CONFIG_H -I../nt/inc -D_UCHAR_T -DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS) 
    3535 
     36EMACS           = $(BLD)/Meadow.exe 
    3637TEMACS          = $(BLD)/temacs.exe 
    37 TEMACS_TMP      = $(BLD)/temacs.bin 
    38 EMACS           = $(BLD)/Meadow.exe 
     38TEMACS_TMP      = $(BLD)/temacs.bin 
    3939TLIB0           = $(BLD)/temacs0.$(A) 
    4040TLIB1           = $(BLD)/temacs1.$(A) 
     
    192192# The dumped executable 
    193193# 
    194 emacs:          $(BLD) $(EMACS) 
     194emacs:          stamp_BLD $(EMACS) 
    195195$(EMACS):       $(DOC) $(TEMACS) 
    196196        "$(THISDIR)/$(BLD)/temacs.exe" -batch -l loadup dump 
     
    205205# (it is the preload heap size in MB). 
    206206# 
    207 temacs:         $(BLD) $(TEMACS) 
     207temacs:         stamp_BLD $(TEMACS) 
    208208$(TEMACS):      $(TLIB0) $(TLIB1) $(TLIBW32) $(TLASTLIB) $(TOBJ) $(TRES) \ 
    209209                  ../nt/$(BLD)/addsection.exe 
     
    220220# Lisp files from loadup.el in source form. 
    221221# 
     222# WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as 
     223#          this can break with GNU Make 3.81 and later if sh.exe is used. 
    222224bootstrap-temacs: 
    223         $(MAKE) $(MFLAGS) temacs CFLAGS=$(ARGQUOTE)$(CFLAGS) -DPURESIZE=5000000$(ARGQUOTE) 
     225        $(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(CFLAGS) -DPURESIZE=5000000$(ARGQUOTE) 
     226 
    224227# 
    225228# Dump an Emacs executable named bootstrap-emacs containing the 
     
    287290        - $(DEL) $(COMPILER_TEMP_FILES) 
    288291        - $(DEL_TREE) $(OBJDIR) 
     292        - $(DEL) stamp_BLD 
    289293 
    290294distclean:      clean 
     
    300304EMACS_ROOT      = .. 
    301305SRC             = . 
     306 
     307# Each object file depends on stamp_BLD, because in parallel builds we must 
     308# make sure $(BLD) exists before starting compilations. 
     309# 
     310$(OBJ0) $(OBJ1) $(WIN32OBJ) $(BLD)/lastfile.$(O) $(BLD)/firstfile.$(O): stamp_BLD 
    302311 
    303312### DEPENDENCIES ###