summaryrefslogtreecommitdiff
path: root/lib-src/makefile.nt
diff options
context:
space:
mode:
authorGeoff Voelker <voelker@cs.washington.edu>1995-05-26 05:19:55 +0000
committerGeoff Voelker <voelker@cs.washington.edu>1995-05-26 05:19:55 +0000
commit82bea3a862b815a127578ead34c5807a7315a2e5 (patch)
treeb6e97c2d483acae469651d8443f3fc1fc9cecd1b /lib-src/makefile.nt
parentbac356e5b7016a897a854595b312d278d882c0bc (diff)
downloademacs-82bea3a862b815a127578ead34c5807a7315a2e5.tar.gz
Use BASE_LIBS.
(make-docfile.exe,hexl.exe,wakeup.exe,etags.exe): Don't depend upon LIBS. (DOC): Use del instead of rm. (DOC) [WINDOWS95]: Use DOC. (clean): Handle MSVC aux files. (config.h,paths.h): Use $(CP) instead of cp. (config.h): Use $(CONFIG_H) (make-docfile.obj): Depend upon config.h. Clean up comments.
Diffstat (limited to 'lib-src/makefile.nt')
-rw-r--r--lib-src/makefile.nt34
1 files changed, 18 insertions, 16 deletions
diff --git a/lib-src/makefile.nt b/lib-src/makefile.nt
index b8e9a9c6d4f..dbae992ba78 100644
--- a/lib-src/makefile.nt
+++ b/lib-src/makefile.nt
@@ -52,16 +52,13 @@ ALL = $(BLD)\make-docfile.exe \
# $(BLD)\test-distrib.exe \
-LIBS = $(SYS_LIB_DIR)\setargv.obj \
- $(SYS_LIB_DIR)\kernel32.lib \
- $(SYS_LIB_DIR)\libc.lib \
- $(COMPAT_LIB)
+LIBS = $(BASE_LIBS)
-$(BLD)\make-docfile.exe: $(LIBS) $(BLD)\make-docfile.obj
-$(BLD)\hexl.exe: $(LIBS) $(BLD)\hexl.obj
+$(BLD)\make-docfile.exe: $(BLD)\make-docfile.obj
+$(BLD)\hexl.exe: $(BLD)\hexl.obj
$(BLD)\ctags.exe: $(BLD)\etags.exe
copy $(BLD)\etags.exe $(BLD)\ctags.exe
-$(BLD)\wakeup.exe: $(LIBS) $(BLD)\wakeup.obj $(BLD)\ntlib.obj
+$(BLD)\wakeup.exe: $(BLD)\wakeup.obj $(BLD)\ntlib.obj
$(LINK) -out:$@ $(LINK_FLAGS) $(BLD)\wakeup.obj $(BLD)\ntlib.obj $(LIBS)
make-docfile: $(BLD)\make-docfile.exe
@@ -74,7 +71,7 @@ ETAGSOBJ = $(BLD)\etags.obj \
$(BLD)\getopt1.obj \
$(BLD)\ntlib.obj
-$(BLD)\etags.exe: $(LIBS) $(ETAGSOBJ)
+$(BLD)\etags.exe: $(ETAGSOBJ)
$(LINK) -out:$@ $(LINK_FLAGS) $(ETAGSOBJ) $(LIBS)
#
@@ -96,7 +93,7 @@ $(BLD)\etags.exe: $(LIBS) $(ETAGSOBJ)
# $(BLD)\test-distrib.exe: $(LIBS) $(BLD)\test-distrib.obj
#
-# From ..\makefile.nt, with .obj changed to .o
+# From ..\src\makefile.nt.
#
obj = abbrev.c alloc.c alloca.c buffer.c bytecode.c callint.c callproc.c casefiddle.c cm.c cmds.c data.c dired.c dispnew.c doc.c doprnt.c editfns.c eval.c fileio.c filelock.c filemode.c fns.c indent.c insdel.c keyboard.c keymap.c lastfile.c lread.c macros.c marker.c minibuf.c xfaces.c mocklisp.c nt.c ntheap.c ntinevt.c ntproc.c ntterm.c print.c process.c regex.c scroll.c search.c syntax.c sysdep.c term.c termcap.c tparam.c undo.c unexnt.c window.c xdisp.c casetab.c floatfns.c frame.c gmalloc.c intervals.c ralloc.c textprop.c vm-limit.c region-cache.c strftime.c
@@ -143,10 +140,14 @@ lisp= \
DOC = DOC
$(DOC): $(BLD)\make-docfile.exe
- - rm -f $(DOC)
+ - del /q $(DOC)
$(BLD)\make-docfile -d ..\src $(obj) > $(DOC)
$(BLD)\make-docfile -d ..\src $(lisp) >> $(DOC)
+!if "$(OS_TYPE)" == "win95"
+ $(CP) $(DOC) ..\etc\DOC
+!else
$(CP) $(DOC) ..\etc\DOC-X
+!endif
- mkdir ..\src\$(OBJDIR)
- mkdir ..\src\$(OBJDIR)\etc
$(CP) $(DOC) ..\src\$(OBJDIR)\etc\DOC-X
@@ -178,18 +179,18 @@ install: $(INSTALL_FILES)
#
# Maintenance
#
-clean:; - del /q *~
+clean:; - del /q *~ *.pdb
- $(DEL_TREE) deleted
- $(DEL_TREE) obj
- - del /q DOC
+ - del /q DOC*
#
# Headers we would preprocess if we could.
#
-..\src\config.h: ..\nt\config.h
- cp ..\nt\config.h ..\src\config.h
+..\src\config.h: ..\nt\$(CONFIG_H)
+ $(CP) $** $@
..\src\paths.h: ..\nt\paths.h
- cp ..\nt\paths.h ..\src\paths.h
+ $(CP) $** $@
### DEPENDENCIES ###
@@ -275,7 +276,8 @@ $(BLD)\leditcfns.obj : \
$(SRC)\leditcfns.c
$(BLD)\make-docfile.obj : \
- $(SRC)\make-docfile.c
+ $(SRC)\make-docfile.c \
+ $(EMACS_ROOT)\src\config.h
$(BLD)\make-path.obj : \
$(SRC)\make-path.c