aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/makefile.w32-in
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src/makefile.w32-in')
-rw-r--r--lib-src/makefile.w32-in153
1 files changed, 91 insertions, 62 deletions
diff --git a/lib-src/makefile.w32-in b/lib-src/makefile.w32-in
index fea1d29592e..4b2b523ea34 100644
--- a/lib-src/makefile.w32-in
+++ b/lib-src/makefile.w32-in
@@ -19,12 +19,12 @@
19 19
20ALL = $(BLD)/test-distrib.exe $(BLD)/make-docfile.exe $(BLD)/hexl.exe\ 20ALL = $(BLD)/test-distrib.exe $(BLD)/make-docfile.exe $(BLD)/hexl.exe\
21 $(BLD)/ctags.exe $(BLD)/etags.exe $(BLD)/movemail.exe $(BLD)/ebrowse.exe\ 21 $(BLD)/ctags.exe $(BLD)/etags.exe $(BLD)/movemail.exe $(BLD)/ebrowse.exe\
22 $(BLD)/emacsclient.exe $(BLD)/emacsclientw.exe 22 $(BLD)/emacsclient.exe $(BLD)/emacsclientw.exe $(BLD)/profile.exe
23 23
24.PHONY: make-docfile 24.PHONY: make-docfile
25 25
26LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DNO_LDAV=1 \ 26LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DNO_LDAV=1 \
27 -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../lib \ 27 -DNO_ARCHIVES=1 -I../lib \
28 -I../nt/inc -I../src $(EMACS_EXTRA_C_FLAGS) 28 -I../nt/inc -I../src $(EMACS_EXTRA_C_FLAGS)
29 29
30LIBS = $(BASE_LIBS) $(ADVAPI32) 30LIBS = $(BASE_LIBS) $(ADVAPI32)
@@ -38,7 +38,7 @@ $(BLD)/hexl.exe: $(BLD)/hexl.$(O)
38 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/hexl.$(O) $(LIBS) 38 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/hexl.$(O) $(LIBS)
39$(BLD)/test-distrib.exe: $(BLD)/test-distrib.$(O) 39$(BLD)/test-distrib.exe: $(BLD)/test-distrib.$(O)
40 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/test-distrib.$(O) $(LIBS) 40 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/test-distrib.$(O) $(LIBS)
41 "$(BLD)/test-distrib.exe" "$(SRC)/testfile" 41 "$(BLD)/test-distrib.exe" "$(LIB_SRC)/testfile"
42 42
43MOVEMAILOBJS = $(BLD)/movemail.$(O) \ 43MOVEMAILOBJS = $(BLD)/movemail.$(O) \
44 $(BLD)/pop.$(O) \ 44 $(BLD)/pop.$(O) \
@@ -106,10 +106,16 @@ ctags.c: etags.c
106 - $(DEL) ctags.c 106 - $(DEL) ctags.c
107 $(CP) etags.c ctags.c 107 $(CP) etags.c ctags.c
108 108
109CTAGS_CFLAGS = -DCTAGS $(ETAGS_CFLAGS) -DEMACS_NAME="\"GNU Emacs\"" 109CTAGS_CFLAGS = -DCTAGS $(ETAGS_CFLAGS)
110$(BLD)/ctags.$(O): ctags.c 110$(BLD)/ctags.$(O): ctags.c
111 $(CC) $(CFLAGS) $(CTAGS_CFLAGS) $(CC_OUT)$@ ctags.c 111 $(CC) $(CFLAGS) $(CTAGS_CFLAGS) $(CC_OUT)$@ ctags.c
112 112
113PROFILEOBJS = $(BLD)/profile.$(O) \
114 ../lib/$(BLD)/libgnu.$(A) \
115 $(BLD)/ntlib.$(O)
116$(BLD)/profile.exe: $(PROFILEOBJS)
117 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(PROFILEOBJS) $(LIBS)
118
113# 119#
114# From ..\src\Makefile.in 120# From ..\src\Makefile.in
115# It doesn't matter if the real name is *.obj for the files in this list, 121# It doesn't matter if the real name is *.obj for the files in this list,
@@ -236,7 +242,6 @@ lisp2 = \
236 $(lispsource)language/georgian.el \ 242 $(lispsource)language/georgian.el \
237 $(lispsource)language/khmer.el \ 243 $(lispsource)language/khmer.el \
238 $(lispsource)language/burmese.el \ 244 $(lispsource)language/burmese.el \
239 $(lispsource)paths.el \
240 $(lispsource)register.elc \ 245 $(lispsource)register.elc \
241 $(lispsource)replace.elc \ 246 $(lispsource)replace.elc \
242 $(lispsource)simple.elc \ 247 $(lispsource)simple.elc \
@@ -307,6 +312,7 @@ install: $(INSTALL_FILES)
307 $(CP) $(BLD)/movemail.exe $(INSTALL_DIR)/bin 312 $(CP) $(BLD)/movemail.exe $(INSTALL_DIR)/bin
308 $(CP) $(BLD)/emacsclient.exe $(INSTALL_DIR)/bin 313 $(CP) $(BLD)/emacsclient.exe $(INSTALL_DIR)/bin
309 $(CP) $(BLD)/emacsclientw.exe $(INSTALL_DIR)/bin 314 $(CP) $(BLD)/emacsclientw.exe $(INSTALL_DIR)/bin
315 $(CP) $(BLD)/profile.exe $(INSTALL_DIR)/bin
310 - mkdir "$(INSTALL_DIR)/etc" 316 - mkdir "$(INSTALL_DIR)/etc"
311 $(CP) $(DOC) $(INSTALL_DIR)/etc 317 $(CP) $(DOC) $(INSTALL_DIR)/etc
312 318
@@ -349,85 +355,108 @@ TAGS: $(BLD)/etags.exe *.c *.h
349### DEPENDENCIES ### 355### DEPENDENCIES ###
350 356
351EMACS_ROOT = .. 357EMACS_ROOT = ..
352SRC = . 358LIB_SRC = .
353 359SRC = $(EMACS_ROOT)/src
354$(BLD)/alloca.$(O) : \ 360NT_INC = $(EMACS_ROOT)/nt/inc
355 $(SRC)/alloca.c \ 361GNU_LIB = $(EMACS_ROOT)/lib
356 $(EMACS_ROOT)/src/s/ms-w32.h \ 362
357 $(EMACS_ROOT)/src/config.h \ 363MS_W32_H = $(SRC)/s/ms-w32.h \
358 $(EMACS_ROOT)/src/blockinput.h 364 $(NT_INC)/sys/stat.h
365CONFIG_H = $(SRC)/config.h \
366 $(MS_W32_H)
367INTTYPES_H = $(NT_INC)/inttypes.h \
368 $(NT_INC)/stdint.h
369NTLIB_H = $(LIB_SRC)/ntlib.h \
370 $(NT_INC)/pwd.h
371SYSTIME_H = $(SRC)/systime.h \
372 $(NT_INC)/sys/time.h \
373 $(GNU_LIB)/timespec.h
359 374
360$(BLD)/ctags.$(O) : \ 375$(BLD)/ctags.$(O) : \
361 $(SRC)/ctags.c \ 376 $(LIB_SRC)/ctags.c \
362 $(EMACS_ROOT)/nt/inc/sys/param.h \ 377 $(SRC)/regex.h \
363 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 378 $(NT_INC)/sys/stat.h \
364 $(EMACS_ROOT)/src/s/ms-w32.h \ 379 $(NT_INC)/unistd.h \
365 $(EMACS_ROOT)/lib-src/../src/config.h \ 380 $(GNU_LIB)/c-strcase.h \
366 $(SRC)/ntlib.h \ 381 $(GNU_LIB)/getopt.h \
367 $(EMACS_ROOT)/lib/getopt.h 382 $(CONFIG_H)
368 383
369$(BLD)/ebrowse.$(O) : \ 384$(BLD)/ebrowse.$(O) : \
370 $(SRC)/ebrowse.c \ 385 $(LIB_SRC)/ebrowse.c \
371 $(EMACS_ROOT)/lib/min-max.h \ 386 $(GNU_LIB)/getopt.h \
372 $(EMACS_ROOT)/src/s/ms-w32.h \ 387 $(GNU_LIB)/min-max.h \
373 $(EMACS_ROOT)/lib-src/../src/config.h 388 $(CONFIG_H)
374 389
375$(BLD)/emacsclient.$(O) : \ 390$(BLD)/emacsclient.$(O) : \
376 $(SRC)/emacsclient.c \ 391 $(LIB_SRC)/emacsclient.c \
377 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 392 $(NT_INC)/pwd.h \
378 $(EMACS_ROOT)/src/s/ms-w32.h \ 393 $(NT_INC)/sys/stat.h \
379 $(EMACS_ROOT)/lib-src/../src/config.h 394 $(NT_INC)/unistd.h \
395 $(GNU_LIB)/getopt.h \
396 $(CONFIG_H)
380 397
381$(BLD)/etags.$(O) : \ 398$(BLD)/etags.$(O) : \
382 $(SRC)/etags.c \ 399 $(LIB_SRC)/etags.c \
383 $(EMACS_ROOT)/nt/inc/sys/param.h \ 400 $(SRC)/regex.h \
384 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 401 $(NT_INC)/sys/stat.h \
385 $(EMACS_ROOT)/src/s/ms-w32.h \ 402 $(NT_INC)/unistd.h \
386 $(EMACS_ROOT)/lib-src/../src/config.h \ 403 $(GNU_LIB)/c-strcase.h \
387 $(SRC)/ntlib.h \ 404 $(GNU_LIB)/getopt.h \
388 $(EMACS_ROOT)/lib/getopt.h 405 $(CONFIG_H)
389 406
390$(BLD)/hexl.$(O) : \ 407$(BLD)/hexl.$(O) : \
391 $(SRC)/hexl.c 408 $(LIB_SRC)/hexl.c \
409 $(CONFIG_H)
392 410
393$(BLD)/make-docfile.$(O) : \ 411$(BLD)/make-docfile.$(O) : \
394 $(SRC)/make-docfile.c \ 412 $(LIB_SRC)/make-docfile.c \
395 $(EMACS_ROOT)/src/config.h 413 $(NT_INC)/unistd.h \
414 $(CONFIG_H)
396 415
397$(BLD)/movemail.$(O) : \ 416$(BLD)/movemail.$(O) : \
398 $(SRC)/movemail.c \ 417 $(LIB_SRC)/movemail.c \
399 $(EMACS_ROOT)/src/s/ms-w32.h \ 418 $(LIB_SRC)/pop.h \
400 $(EMACS_ROOT)/lib-src/../src/config.h \ 419 $(SRC)/syswait.h \
401 $(EMACS_ROOT)/nt/inc/sys/file.h \ 420 $(NT_INC)/pwd.h \
402 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 421 $(NT_INC)/sys/file.h \
403 $(EMACS_ROOT)/lib-src/../src/syswait.h \ 422 $(NT_INC)/sys/stat.h \
404 $(EMACS_ROOT)/nt/inc/pwd.h \ 423 $(NT_INC)/unistd.h \
405 $(SRC)/ntlib.h 424 $(GNU_LIB)/getopt.h \
406 $(CC) $(CFLAGS) -DUSG $(CC_OUT)$@ movemail.c 425 $(CONFIG_H) \
426 $(NTLIB_H)
407 427
408$(BLD)/ntlib.$(O) : \ 428$(BLD)/ntlib.$(O) : \
409 $(SRC)/ntlib.c \ 429 $(LIB_SRC)/ntlib.c \
410 $(SRC)/ntlib.h \ 430 $(NT_INC)/sys/stat.h \
411 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 431 $(NTLIB_H)
412 $(EMACS_ROOT)/nt/inc/pwd.h
413 432
414$(BLD)/pop.$(O) : \ 433$(BLD)/pop.$(O) : \
415 $(SRC)/pop.c \ 434 $(LIB_SRC)/pop.c \
416 $(SRC)/pop.h \ 435 $(LIB_SRC)/pop.h \
417 $(EMACS_ROOT)/lib/min-max.h \ 436 $(NT_INC)/netdb.h \
418 $(SRC)/ntlib.h 437 $(NT_INC)/pwd.h \
438 $(NT_INC)/unistd.h \
439 $(GNU_LIB)/min-max.h \
440 $(CONFIG_H) \
441 $(NTLIB_H)
419 442
420$(BLD)/profile.$(O) : \ 443$(BLD)/profile.$(O) : \
421 $(SRC)/profile.c \ 444 $(LIB_SRC)/profile.c \
422 $(EMACS_ROOT)/src/s/ms-w32.h \ 445 $(GNU_LIB)/intprops.h \
423 $(EMACS_ROOT)/lib-src/../src/config.h \ 446 $(CONFIG_H) \
424 $(EMACS_ROOT)/lib-src/../src/systime.h 447 $(INTTYPES_H) \
425 448 $(SYSTIME_H)
426$(BLD)/tcp.$(O) : \ 449
427 $(SRC)/tcp.c 450$(BLD)/regex.$(O) : \
451 $(SRC)/regex.c \
452 $(SRC)/regex.h \
453 $(NT_INC)/unistd.h \
454 $(CONFIG_H)
428 455
429$(BLD)/test-distrib.$(O) : \ 456$(BLD)/test-distrib.$(O) : \
430 $(SRC)/test-distrib.c 457 $(LIB_SRC)/test-distrib.c \
458 $(NT_INC)/unistd.h \
459 $(CONFIG_H)
431 460
432# The following dependencies are for supporting parallel builds, where 461# The following dependencies are for supporting parallel builds, where
433# we must make sure $(BLD) exists before any compilation starts. 462# we must make sure $(BLD) exists before any compilation starts.