diff options
| author | Juanma Barranquero | 2006-10-31 00:19:38 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2006-10-31 00:19:38 +0000 |
| commit | d20f2a6a3dfefb17110f5ac5ab95bf4809f5262b (patch) | |
| tree | bc0734fd4def91a75ee92c7f378ee4fa1ecdbadc /lib-src | |
| parent | 337e3c70f820aae9e34fccef009cfaaec7bd3cb2 (diff) | |
| download | emacs-d20f2a6a3dfefb17110f5ac5ab95bf4809f5262b.tar.gz emacs-d20f2a6a3dfefb17110f5ac5ab95bf4809f5262b.zip | |
(ALL): Add emacsclient.
(ECLIENT_CFLAGS, ECLIENTOBJS): New macros.
(emacsclient, $(BLD)/emacsclient.exe): New targets.
(install): Install emacsclient.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/makefile.w32-in | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/lib-src/makefile.w32-in b/lib-src/makefile.w32-in index 0deb0012f88..d1d764bcdec 100644 --- a/lib-src/makefile.w32-in +++ b/lib-src/makefile.w32-in | |||
| @@ -20,7 +20,7 @@ | |||
| 20 | # Boston, MA 02110-1301, USA. | 20 | # Boston, MA 02110-1301, USA. |
| 21 | # | 21 | # |
| 22 | 22 | ||
| 23 | ALL = make-docfile hexl ctags etags movemail ebrowse sorted-doc digest-doc | 23 | ALL = make-docfile hexl ctags etags movemail ebrowse sorted-doc digest-doc emacsclient |
| 24 | 24 | ||
| 25 | .PHONY: $(ALL) | 25 | .PHONY: $(ALL) |
| 26 | 26 | ||
| @@ -32,7 +32,6 @@ LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=1 -DNO_LDAV=1 \ | |||
| 32 | # | 32 | # |
| 33 | # $(BLD)/server.exe \ | 33 | # $(BLD)/server.exe \ |
| 34 | # $(BLD)/emacstool.exe \ | 34 | # $(BLD)/emacstool.exe \ |
| 35 | # $(BLD)/emacsclient.exe \ | ||
| 36 | # $(BLD)/cvtmail.exe \ | 35 | # $(BLD)/cvtmail.exe \ |
| 37 | 36 | ||
| 38 | LIBS = $(BASE_LIBS) $(ADVAPI32) | 37 | LIBS = $(BASE_LIBS) $(ADVAPI32) |
| @@ -59,6 +58,7 @@ movemail: $(BLD) $(BLD)/movemail.exe | |||
| 59 | fakemail: $(BLD) $(BLD)/fakemail.exe | 58 | fakemail: $(BLD) $(BLD)/fakemail.exe |
| 60 | sorted-doc: $(BLD) $(BLD)/sorted-doc.exe | 59 | sorted-doc: $(BLD) $(BLD)/sorted-doc.exe |
| 61 | digest-doc: $(BLD) $(BLD)/digest-doc.exe | 60 | digest-doc: $(BLD) $(BLD)/digest-doc.exe |
| 61 | emacsclient: $(BLD) $(BLD)/emacsclient.exe | ||
| 62 | 62 | ||
| 63 | test-distrib: $(BLD) $(BLD)/test-distrib.exe | 63 | test-distrib: $(BLD) $(BLD)/test-distrib.exe |
| 64 | "$(BLD)/test-distrib.exe" "$(SRC)/testfile" | 64 | "$(BLD)/test-distrib.exe" "$(SRC)/testfile" |
| @@ -74,6 +74,19 @@ $(BLD)/movemail.exe: $(MOVEMAILOBJS) getopt.h | |||
| 74 | # put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib | 74 | # put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib |
| 75 | $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(MOVEMAILOBJS) $(WSOCK32) $(LIBS) | 75 | $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(MOVEMAILOBJS) $(WSOCK32) $(LIBS) |
| 76 | 76 | ||
| 77 | ECLIENT_CFLAGS = -DWINDOWSNT -DHAVE_GETCWD -DHAVE_STRERROR -c | ||
| 78 | ECLIENTOBJS = $(BLD)/emacsclient.$(O) \ | ||
| 79 | $(BLD)/getopt.$(O) \ | ||
| 80 | $(BLD)/getopt1.$(O) \ | ||
| 81 | $(BLD)/ntlib.$(O) | ||
| 82 | |||
| 83 | $(BLD)/emacsclient.exe: $(ECLIENTOBJS) | ||
| 84 | # 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)/emacsclient.$(O): emacsclient.c | ||
| 88 | $(CC) $(ECLIENT_CFLAGS) $(CC_OUT)$@ emacsclient.c | ||
| 89 | |||
| 77 | ETAGSOBJ = $(BLD)/etags.$(O) \ | 90 | ETAGSOBJ = $(BLD)/etags.$(O) \ |
| 78 | $(BLD)/getopt.$(O) \ | 91 | $(BLD)/getopt.$(O) \ |
| 79 | $(BLD)/getopt1.$(O) \ | 92 | $(BLD)/getopt1.$(O) \ |
| @@ -296,6 +309,7 @@ install: $(INSTALL_FILES) | |||
| 296 | $(CP) $(BLD)/movemail.exe $(INSTALL_DIR)/bin | 309 | $(CP) $(BLD)/movemail.exe $(INSTALL_DIR)/bin |
| 297 | $(CP) $(BLD)/sorted-doc.exe $(INSTALL_DIR)/bin | 310 | $(CP) $(BLD)/sorted-doc.exe $(INSTALL_DIR)/bin |
| 298 | $(CP) $(BLD)/digest-doc.exe $(INSTALL_DIR)/bin | 311 | $(CP) $(BLD)/digest-doc.exe $(INSTALL_DIR)/bin |
| 312 | $(CP) $(BLD)/emacsclient.exe $(INSTALL_DIR)/bin | ||
| 299 | - mkdir "$(INSTALL_DIR)/etc" | 313 | - mkdir "$(INSTALL_DIR)/etc" |
| 300 | $(CP) $(DOC) $(INSTALL_DIR)/etc | 314 | $(CP) $(DOC) $(INSTALL_DIR)/etc |
| 301 | 315 | ||