comparison nt/xemacs.mak @ 3054:f4a678ca6f3d

[xemacs-hg @ 2005-11-10 15:45:13 by crestani] Fix build output directory structure.
author crestani
date Thu, 10 Nov 2005 15:45:13 +0000
parents fe94f59a2773
children 141c2920ea48
comparison
equal deleted inserted replaced
3053:6f985406c4db 3054:f4a678ca6f3d
95 # This appears in the dependency file 95 # This appears in the dependency file
96 LWLIB_SRCDIR=$(SRCROOT)\lwlib 96 LWLIB_SRCDIR=$(SRCROOT)\lwlib
97 97
98 ########################### Figure out current version of VC++. 98 ########################### Figure out current version of VC++.
99 99
100 !if [if not exist $(OUTDIR) mkdir "$(OUTDIR)"]
101 !endif
100 !if [echo MSC_VER=_MSC_VER > $(OUTDIR)\vcversion.c] 102 !if [echo MSC_VER=_MSC_VER > $(OUTDIR)\vcversion.c]
101 !endif 103 !endif
102 !if [cl /nologo /EP $(OUTDIR)\vcversion.c > $(OUTDIR)\vcversion.tmp] 104 !if [cl /nologo /EP $(OUTDIR)\vcversion.c > $(OUTDIR)\vcversion.tmp]
103 !endif 105 !endif
104 !include "$(OUTDIR)\vcversion.tmp" 106 !include "$(OUTDIR)\vcversion.tmp"
934 936
935 # 937 #
936 # Whether to use dependency information generated by make-src-depend 938 # Whether to use dependency information generated by make-src-depend
937 # 939 #
938 !if $(DEPEND) && exist("$(SRC)\depend") 940 !if $(DEPEND) && exist("$(SRC)\depend")
939 ! if [if not exist $(OUTDIR)\nul mkdir "$(OUTDIR)"] 941 ! if [if not exist $(OUTDIR) mkdir "$(OUTDIR)"]
940 ! endif 942 ! endif
941 # This perl script used to be inline but that caused too many quoting problems 943 # This perl script used to be inline but that caused too many quoting problems
942 ! if [perl $(NT)\make-nt-depend -s=$(SRC) -c=$(NT) -o=$(OUTDIR) < $(SRC)\depend > $(OUTDIR)\depend.tmp] 944 ! if [perl $(NT)\make-nt-depend -s=$(SRC) -c=$(NT) -o=$(OUTDIR) < $(SRC)\depend > $(OUTDIR)\depend.tmp]
943 ! endif 945 ! endif
944 ! include "$(OUTDIR)\depend.tmp" 946 ! include "$(OUTDIR)\depend.tmp"
951 ###################### source. 953 ###################### source.
952 954
953 !if $(SEPARATE_BUILD) 955 !if $(SEPARATE_BUILD)
954 # #### `if not exist' does not like the quotes around file names. 956 # #### `if not exist' does not like the quotes around file names.
955 # But what if one of them has spaces? Fucking Microsoft! 957 # But what if one of them has spaces? Fucking Microsoft!
956 ! if [if not exist $(BLDROOT)\nul mkdir "$(BLDROOT)"] 958 ! if [if not exist $(BLDROOT) mkdir "$(BLDROOT)"]
957 ! endif 959 ! endif
958 ! if [if not exist $(BLDLIB_SRC)\nul mkdir "$(BLDLIB_SRC)"] 960 ! if [if not exist $(BLDLIB_SRC) mkdir "$(BLDLIB_SRC)"]
959 ! endif 961 ! endif
960 ! if [if not exist $(BLDNT)\nul mkdir "$(BLDNT)"] 962 ! if [if not exist $(BLDNT) mkdir "$(BLDNT)"]
961 ! endif 963 ! endif
962 ! if [if not exist $(OUTDIR)\nul mkdir "$(OUTDIR)"] 964 ! if [if not exist $(OUTDIR) mkdir "$(OUTDIR)"]
963 ! endif 965 ! endif
964 ! if [if not exist $(BLDSRC)\nul mkdir "$(BLDSRC)"] 966 ! if [if not exist $(BLDSRC) mkdir "$(BLDSRC)"]
965 ! endif 967 ! endif
966 # No point. 968 # No point.
967 # ! if [if not exist "$(BLDROOT)\nul" mkdir "$(BLDROOT)"] 969 # ! if [if not exist "$(BLDROOT)" mkdir "$(BLDROOT)"]
968 # ! endif 970 # ! endif
969 !endif 971 !endif
970 972
971 ###################### Random .obj dependencies 973 ###################### Random .obj dependencies
972 974
985 $(OUTDIR)\eldap.obj: $(SRCROOT)\modules\ldap\eldap.c 987 $(OUTDIR)\eldap.obj: $(SRCROOT)\modules\ldap\eldap.c
986 $(CCV) -I$(SRC) $(TEMACS_CPP_FLAGS) $(SRCROOT)\modules\ldap\eldap.c -Fo$@ $(BROWSERFLAGS) 988 $(CCV) -I$(SRC) $(TEMACS_CPP_FLAGS) $(SRCROOT)\modules\ldap\eldap.c -Fo$@ $(BROWSERFLAGS)
987 989
988 ###################### Generated source files 990 ###################### Generated source files
989 991
990 $(OUTDIR)\nul: 992 $(OUTDIR):
991 -@mkdir $(OUTDIR) 993 -@mkdir $(OUTDIR)
992 994
993 XEMACS_INCLUDES=\ 995 XEMACS_INCLUDES=\
994 $(SRC)\config.h \ 996 $(SRC)\config.h \
995 $(SRC)\Emacs.ad.h \ 997 $(SRC)\Emacs.ad.h \
1308 1310
1309 ## Use this rule to build the complete system. We need both update-elc 1311 ## Use this rule to build the complete system. We need both update-elc
1310 ## and update-elc-2 due to the sideways dependency of NEEDTODUMP. See 1312 ## and update-elc-2 due to the sideways dependency of NEEDTODUMP. See
1311 ## src/Makefile.in.in for a more detailed discussion of this. 1313 ## src/Makefile.in.in for a more detailed discussion of this.
1312 1314
1313 all: installation $(OUTDIR)\nul $(LIB_SRC_TOOLS) \ 1315 all: installation $(OUTDIR) $(LIB_SRC_TOOLS) \
1314 update-elc update-elc-2 \ 1316 update-elc update-elc-2 \
1315 $(LISP)/finder-inf.el load-shadows info 1317 $(LISP)/finder-inf.el load-shadows info
1316 1318
1317 $(TEMACS_BROWSE): $(TEMACS_OBJS) 1319 $(TEMACS_BROWSE): $(TEMACS_OBJS)
1318 @dir /b/s $(OUTDIR)\*.sbr > $(OUTDIR)\bscmake.tmp 1320 @dir /b/s $(OUTDIR)\*.sbr > $(OUTDIR)\bscmake.tmp