Mercurial > emacs
comparison src/makefile.nt @ 13428:d5df560686b2
(SUBSYSTEM, TLIBW32, TLASTLIB, WIN32OBJ): Defined.
(w32term.obj, w32xfns.obj, w32fns.obj w32faces.obj, w32select.obj,
w32menu.obj, w32reg.obj): Defined.
(LINK_FLAGS): Use SUBSYSTEM.
(OBJ1): Remove lastfile.obj.
(LIBS, TEMACS): Use TLASTLIB.
(LIBS) [NTGUI]: Use TLIBW32 and GUI libs.
(EMACS): Remove Win95 conditional.
(clean): Remove paths.h.
| author | Geoff Voelker <voelker@cs.washington.edu> |
|---|---|
| date | Tue, 07 Nov 1995 07:36:36 +0000 |
| parents | 8e4f8107dcd0 |
| children | abb8f19ece25 |
comparison
equal
deleted
inserted
replaced
| 13427:71d734525d2c | 13428:d5df560686b2 |
|---|---|
| 23 # | 23 # |
| 24 # Sets up the system dependent macros. | 24 # Sets up the system dependent macros. |
| 25 # | 25 # |
| 26 !include ..\nt\makefile.def | 26 !include ..\nt\makefile.def |
| 27 | 27 |
| 28 !IFDEF NTGUI | |
| 29 SUBSYSTEM=windows | |
| 30 !ELSE | |
| 31 SUBSYSTEM=console | |
| 32 !ENDIF | |
| 33 | |
| 28 # | 34 # |
| 29 # HAVE_CONFIG_H is required by some generic gnu sources stuck into | 35 # HAVE_CONFIG_H is required by some generic gnu sources stuck into |
| 30 # the emacs source tree. | 36 # the emacs source tree. |
| 31 # | 37 # |
| 32 LOCAL_FLAGS = -Demacs=1 -DWINDOWSNT -DDOS_NT -DHAVE_CONFIG_H -I..\nt\inc | 38 LOCAL_FLAGS = -Demacs=1 -DWINDOWSNT -DDOS_NT -DHAVE_CONFIG_H -I..\nt\inc |
| 33 | 39 |
| 34 EMACS = $(BLD)\emacs.exe | 40 EMACS = $(BLD)\emacs.exe |
| 35 TEMACS = $(BLD)\temacs.exe | 41 TEMACS = $(BLD)\temacs.exe |
| 36 TLIB1 = $(BLD)\temacs1.lib | 42 TLIB1 = $(BLD)\temacs1.lib |
| 37 TLIB2 = $(BLD)\temacs2.lib | 43 TLIB2 = $(BLD)\temacs2.lib |
| 44 !IFDEF NTGUI | |
| 45 TLIBW32 = $(BLD)\temacw32.lib | |
| 46 !ELSE | |
| 47 TLIBW32 = | |
| 48 !ENDIF | |
| 38 TOBJ = $(BLD)\emacs.obj | 49 TOBJ = $(BLD)\emacs.obj |
| 39 !if $(MSVCNT11) | 50 !if $(MSVCNT11) |
| 40 TRES = $(BLD)\emacs.res | 51 TRES = $(BLD)\emacs.res |
| 41 !else | 52 !else |
| 42 TRES = $(BLD)\emacs.rbj | 53 TRES = $(BLD)\emacs.rbj |
| 43 !endif | 54 !endif |
| 44 TLASTLIB = $(BLD)\lastfile.lib | 55 TLASTLIB = $(BLD)\lastfile.lib |
| 45 | 56 |
| 46 LINK_FLAGS = $(ARCH_LDFLAGS) -stack:0x1000000 -base:0xD00000 -debug:full -debugtype:cv -machine:$(ARCH) -subsystem:console -entry:_start | 57 LINK_FLAGS = $(ARCH_LDFLAGS) -stack:0x1000000 -base:0xD00000 -debug:full -debugtype:cv -machine:$(ARCH) -subsystem:$(SUBSYSTEM) -entry:_start -map:$(BLD)\temacs.map |
| 47 | 58 |
| 48 # | 59 # |
| 49 # Split up the objects into two sets so that we don't run out of | 60 # Split up the objects into two sets so that we don't run out of |
| 50 # command line space when we link them into a library. | 61 # command line space when we link them into a library. |
| 51 # | 62 # |
| 108 $(BLD)\textprop.obj \ | 119 $(BLD)\textprop.obj \ |
| 109 $(BLD)\vm-limit.obj \ | 120 $(BLD)\vm-limit.obj \ |
| 110 $(BLD)\region-cache.obj \ | 121 $(BLD)\region-cache.obj \ |
| 111 $(BLD)\strftime.obj | 122 $(BLD)\strftime.obj |
| 112 | 123 |
| 124 WIN32OBJ = $(BLD)\w32term.obj \ | |
| 125 $(BLD)\w32xfns.obj \ | |
| 126 $(BLD)\w32fns.obj \ | |
| 127 $(BLD)\w32faces.obj \ | |
| 128 $(BLD)\w32select.obj \ | |
| 129 $(BLD)\w32menu.obj \ | |
| 130 $(BLD)\w32reg.obj | |
| 131 | |
| 113 LIBS = $(TLIB1) \ | 132 LIBS = $(TLIB1) \ |
| 114 $(TLIB2) \ | 133 $(TLIB2) \ |
| 134 !IFDEF NTGUI | |
| 135 $(TLIBW32) \ | |
| 136 !ENDIF | |
| 115 $(TLASTLIB) \ | 137 $(TLASTLIB) \ |
| 138 !IFDEF NTGUI | |
| 139 gdi32.lib \ | |
| 140 comdlg32.lib \ | |
| 141 !ENDIF | |
| 116 $(BASE_LIBS) \ | 142 $(BASE_LIBS) \ |
| 117 $(ADVAPI32) \ | 143 $(ADVAPI32) \ |
| 118 user32.lib | 144 user32.lib |
| 119 | 145 |
| 120 # | 146 # |
| 151 | 177 |
| 152 # | 178 # |
| 153 # The undumped executable | 179 # The undumped executable |
| 154 # | 180 # |
| 155 temacs: $(BLD) $(TEMACS) | 181 temacs: $(BLD) $(TEMACS) |
| 156 $(TEMACS): $(TLIB1) $(TLIB2) $(TLASTLIB) $(TOBJ) $(TRES) | 182 $(TEMACS): $(TLIB1) $(TLIB2) $(TLIBW32) $(TLASTLIB) $(TOBJ) $(TRES) |
| 157 $(LINK) -out:$(TEMACS) $(LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS) | 183 $(LINK) -out:$(TEMACS) $(LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS) |
| 158 | 184 |
| 159 # | 185 # |
| 160 # The resource file. NT 3.10 requires the use of cvtres; even though | 186 # The resource file. NT 3.10 requires the use of cvtres; even though |
| 161 # it is not necessary on later versions, it is still ok to use it. | 187 # it is not necessary on later versions, it is still ok to use it. |
| 172 # | 198 # |
| 173 $(TLIB1): $(OBJ1) | 199 $(TLIB1): $(OBJ1) |
| 174 @- $(AR) -out:$@ $** | 200 @- $(AR) -out:$@ $** |
| 175 $(TLIB2): $(OBJ2) | 201 $(TLIB2): $(OBJ2) |
| 176 @- $(AR) -out:$@ $** | 202 @- $(AR) -out:$@ $** |
| 177 # | 203 !IFDEF NTGUI |
| 178 # Place lastfile.obj in it's own library so that it can be loaded after | 204 $(TLIBW32): $(WIN32OBJ) |
| 205 @- $(AR) -out:$@ $** | |
| 206 !ENDIF | |
| 207 | |
| 208 # | |
| 209 # Place lastfile.obj in its own library so that it can be loaded after | |
| 179 # the source libraries but before any system libraries. Doing so defines | 210 # the source libraries but before any system libraries. Doing so defines |
| 180 # the end of Emacs' data section portably across compilers. | 211 # the end of Emacs' data section portably across compilers and systems. |
| 181 # | 212 # |
| 182 $(TLASTLIB): $(BLD)\lastfile.obj | 213 $(TLASTLIB): $(BLD)\lastfile.obj |
| 183 @- $(AR) -out:$@ $** | 214 @- $(AR) -out:$@ $** |
| 184 | 215 |
| 185 # | 216 # |
| 186 # Object files. | 217 # Object files. |
| 187 # | 218 # |
| 188 .c{$(BLD)}.obj: | 219 .c{$(BLD)}.obj: |
| 196 $(CP) $(EMACS) $(INSTALL_DIR)\bin | 227 $(CP) $(EMACS) $(INSTALL_DIR)\bin |
| 197 | 228 |
| 198 # | 229 # |
| 199 # Maintenance | 230 # Maintenance |
| 200 # | 231 # |
| 201 clean:; - del /q *~ *.pdb config.h | 232 clean:; - del /q *~ *.pdb config.h paths.h |
| 202 - $(DEL_TREE) deleted | 233 - $(DEL_TREE) deleted |
| 203 - $(DEL_TREE) obj | 234 - $(DEL_TREE) obj |
| 204 | 235 |
| 205 # | 236 # |
| 206 # These files are the ones that compile conditionally on CANNOT_DUMP... | 237 # These files are the ones that compile conditionally on CANNOT_DUMP... |
| 997 $(SRC)\macros.h \ | 1028 $(SRC)\macros.h \ |
| 998 $(SRC)\disptab.h \ | 1029 $(SRC)\disptab.h \ |
| 999 $(SRC)\termhooks.h \ | 1030 $(SRC)\termhooks.h \ |
| 1000 $(SRC)\dispextern.h \ | 1031 $(SRC)\dispextern.h \ |
| 1001 $(SRC)\intervals.h | 1032 $(SRC)\intervals.h |
| 1033 | |
| 1034 $(BLD)\w32faces.obj: \ | |
| 1035 $(EMACS_ROOT)\src\s\windowsnt.h \ | |
| 1036 $(EMACS_ROOT)\src\m\intel386.h \ | |
| 1037 $(EMACS_ROOT)\src\config.h \ | |
| 1038 $(SRC)\w32faces.c \ | |
| 1039 $(SRC)\dispextern.h \ | |
| 1040 $(SRC)\frame.h \ | |
| 1041 $(SRC)\w32term.h \ | |
| 1042 $(SRC)\win32.h \ | |
| 1043 $(SRC)\buffer.h \ | |
| 1044 $(SRC)\blockinput.h \ | |
| 1045 $(SRC)\window.h | |
| 1046 | |
| 1047 $(BLD)\w32fns.obj: \ | |
| 1048 $(EMACS_ROOT)\src\s\windowsnt.h \ | |
| 1049 $(EMACS_ROOT)\src\m\intel386.h \ | |
| 1050 $(EMACS_ROOT)\src\config.h \ | |
| 1051 $(SRC)\w32fns.c \ | |
| 1052 $(SRC)\dispextern.h \ | |
| 1053 $(SRC)\frame.h \ | |
| 1054 $(SRC)\w32term.h \ | |
| 1055 $(SRC)\win32.h \ | |
| 1056 $(SRC)\buffer.h \ | |
| 1057 $(SRC)\blockinput.h \ | |
| 1058 $(SRC)\window.h | |
| 1059 | |
| 1060 $(BLD)\w32menu.obj: \ | |
| 1061 $(EMACS_ROOT)\src\s\windowsnt.h \ | |
| 1062 $(EMACS_ROOT)\src\m\intel386.h \ | |
| 1063 $(EMACS_ROOT)\src\config.h \ | |
| 1064 $(SRC)\w32menu.c \ | |
| 1065 $(SRC)\dispextern.h \ | |
| 1066 $(SRC)\frame.h \ | |
| 1067 $(SRC)\w32term.h \ | |
| 1068 $(SRC)\win32.h \ | |
| 1069 $(SRC)\buffer.h \ | |
| 1070 $(SRC)\blockinput.h \ | |
| 1071 $(SRC)\window.h | |
| 1072 | |
| 1073 $(BLD)\w32term.obj: \ | |
| 1074 $(EMACS_ROOT)\src\s\windowsnt.h \ | |
| 1075 $(EMACS_ROOT)\src\m\intel386.h \ | |
| 1076 $(EMACS_ROOT)\src\config.h \ | |
| 1077 $(SRC)\w32term.c \ | |
| 1078 $(SRC)\dispextern.h \ | |
| 1079 $(SRC)\frame.h \ | |
| 1080 $(SRC)\w32term.h \ | |
| 1081 $(SRC)\win32.h \ | |
| 1082 $(SRC)\buffer.h \ | |
| 1083 $(SRC)\blockinput.h \ | |
| 1084 $(SRC)\window.h | |
| 1085 | |
| 1086 $(BLD)\w32select.obj: \ | |
| 1087 $(EMACS_ROOT)\src\s\windowsnt.h \ | |
| 1088 $(EMACS_ROOT)\src\m\intel386.h \ | |
| 1089 $(EMACS_ROOT)\src\config.h \ | |
| 1090 $(SRC)\w32select.c \ | |
| 1091 $(SRC)\dispextern.h \ | |
| 1092 $(SRC)\frame.h \ | |
| 1093 $(SRC)\w32term.h \ | |
| 1094 $(SRC)\win32.h \ | |
| 1095 $(SRC)\blockinput.h | |
| 1096 | |
| 1097 $(BLD)\w32reg.obj: \ | |
| 1098 $(EMACS_ROOT)\src\s\windowsnt.h \ | |
| 1099 $(EMACS_ROOT)\src\m\intel386.h \ | |
| 1100 $(EMACS_ROOT)\src\config.h \ | |
| 1101 $(SRC)\w32reg.c \ | |
| 1102 $(SRC)\dispextern.h \ | |
| 1103 $(SRC)\frame.h \ | |
| 1104 $(SRC)\w32term.h \ | |
| 1105 $(SRC)\win32.h \ | |
| 1106 $(SRC)\blockinput.h |
