summaryrefslogtreecommitdiff
path: root/lib-src/makefile.nt
diff options
context:
space:
mode:
authorGeoff Voelker <voelker@cs.washington.edu>1996-01-04 03:05:24 +0000
committerGeoff Voelker <voelker@cs.washington.edu>1996-01-04 03:05:24 +0000
commitb71908ca5266aea858d68c7281eacfd55c57870e (patch)
tree98b91ea9f1b60d80eabf3864c749780b0bda2f8a /lib-src/makefile.nt
parent80cc22dd0e87d5cc6a2980b1533150c8564fcb60 (diff)
downloademacs-b71908ca5266aea858d68c7281eacfd55c57870e.tar.gz
(etags, ctags): Compile with regexp support.
(make-docfile, wakeup, etags, ctags, hexl): Ensure build subdirectory exists before compiling.
Diffstat (limited to 'lib-src/makefile.nt')
-rw-r--r--lib-src/makefile.nt44
1 files changed, 34 insertions, 10 deletions
diff --git a/lib-src/makefile.nt b/lib-src/makefile.nt
index 2f6cb4817f6..5e926d6401d 100644
--- a/lib-src/makefile.nt
+++ b/lib-src/makefile.nt
@@ -28,7 +28,7 @@ LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=1 -DNO_LDAV=1 -DNO_ARCHIVES=1
OBJDIR = obj
BLD = $(OBJDIR)\$(ARCH)
-LINK_FLAGS = $(ARCH_LDFLAGS) -debug:PARTIAL -machine:$(ARCH) -subsystem:console -entry:mainCRTStartup
+LINK_FLAGS = $(ARCH_LDFLAGS) -debug:PARTIAL -machine:$(ARCH) -subsystem:console -entry:mainCRTStartup setargv.obj
ALL = $(BLD)\make-docfile.exe \
$(BLD)\hexl.exe \
@@ -56,24 +56,48 @@ LIBS = $(BASE_LIBS)
$(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: $(BLD)\wakeup.obj $(BLD)\ntlib.obj
- $(LINK) -out:$@ $(LINK_FLAGS) $(BLD)\wakeup.obj $(BLD)\ntlib.obj $(LIBS)
+ $(LINK) -out:$@ $(LINK_FLAGS) $(BLD)\wakeup.obj \
+ $(BLD)\ntlib.obj $(LIBS)
-make-docfile: $(BLD)\make-docfile.exe
-wakeup: $(BLD)\wakeup.exe
-etags: $(BLD)\etags.exe
-hexl: $(BLD)\hexl.exe
+make-docfile: $(BLD) $(BLD)\make-docfile.exe
+wakeup: $(BLD) $(BLD)\wakeup.exe
+etags: $(BLD) $(BLD)\etags.exe
+hexl: $(BLD) $(BLD)\hexl.exe
ETAGSOBJ = $(BLD)\etags.obj \
$(BLD)\getopt.obj \
$(BLD)\getopt1.obj \
- $(BLD)\ntlib.obj
+ $(BLD)\ntlib.obj \
+ $(BLD)\regex.obj \
+ $(BLD)\alloca.obj
-$(BLD)\etags.exe: $(ETAGSOBJ)
+$(BLD)\etags.exe: $(ETAGSOBJ)
$(LINK) -out:$@ $(LINK_FLAGS) $(ETAGSOBJ) $(LIBS)
+
+$(BLD)\regex.obj: ../src/regex.c ../src/regex.h ../src/config.h
+ $(CC) $(CFLAGS) -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \
+ ../src/regex.c -Fo$@
+
+$(BLD)\etags.obj: etags.c
+ $(CC) $(CFLAGS) -DETAGS_REGEXPS -Fo$@ etags.c
+
+CTAGSOBJ = $(BLD)\ctags.obj \
+ $(BLD)\getopt.obj \
+ $(BLD)\getopt1.obj \
+ $(BLD)\ntlib.obj
+
+$(BLD)\ctags.exe: ctags.c $(CTAGSOBJ)
+ $(LINK) -out:$@ $(LINK_FLAGS) $(CTAGSOBJ) $(LIBS)
+
+ctags.c: etags.c
+ - del ctags.c
+ copy etags.c ctags.c
+
+$(BLD)\ctags.obj: ctags.c
+ $(CC) $(CFLAGS) -DCTAGS -Fo$@ ctags.c
+
#
# don't know what to do with these yet...
#