1 # Used with MS Development Environment NMAKE 2 !IF "$(CFG)" == "" 3 CFG=disktest - Release 4 !MESSAGE No configuration specified. Defaulting to disktest - Release. 5 !ENDIF 6 7 !IF "$(CFG)" != "disktest - Release" && "$(CFG)" != "disktest - Debug" 8 !MESSAGE Invalid configuration "$(CFG)" specified. 9 !MESSAGE You can specify a configuration when running NMAKE 10 !MESSAGE by defining the macro CFG on the command line. For example: 11 !MESSAGE 12 !MESSAGE nmake /f "Makefile.windows" CFG="disktest - Debug" 13 !MESSAGE 14 !MESSAGE Possible choices for configuration are: 15 !MESSAGE 16 !MESSAGE "disktest - Release" (based on "(x86) Console Application") 17 !MESSAGE "disktest - Debug" (based on "(x86) Console Application") 18 !MESSAGE 19 !ERROR An invalid configuration is specified. 20 !ENDIF 21 22 !IF "$(OS)" == "Windows_NT" 23 NULL= 24 !ELSE 25 NULL=nul 26 !ENDIF 27 28 CPP=cl.exe 29 RSC=rc.exe 30 31 !IF "$(CFG)" == "disktest - Release" 32 33 OUTDIR=.\Release 34 INTDIR=.\Release 35 # Begin Custom Macros 36 OutDir=.\Release 37 # End Custom Macros 38 39 ALL : "$(OUTDIR)\disktest.exe" 40 41 42 CLEAN : 43 -@erase "$(INTDIR)\childmain.obj" 44 -@erase "$(INTDIR)\childmain.sbr" 45 -@erase "$(INTDIR)\dump.obj" 46 -@erase "$(INTDIR)\dump.sbr" 47 -@erase "$(INTDIR)\timer.obj" 48 -@erase "$(INTDIR)\timer.sbr" 49 -@erase "$(INTDIR)\stats.obj" 50 -@erase "$(INTDIR)\stats.sbr" 51 -@erase "$(INTDIR)\Getopt.obj" 52 -@erase "$(INTDIR)\Getopt.sbr" 53 -@erase "$(INTDIR)\globals.obj" 54 -@erase "$(INTDIR)\globals.sbr" 55 -@erase "$(INTDIR)\io.obj" 56 -@erase "$(INTDIR)\io.sbr" 57 -@erase "$(INTDIR)\main.obj" 58 -@erase "$(INTDIR)\main.sbr" 59 -@erase "$(INTDIR)\parse.obj" 60 -@erase "$(INTDIR)\parse.sbr" 61 -@erase "$(INTDIR)\sfunc.obj" 62 -@erase "$(INTDIR)\sfunc.sbr" 63 -@erase "$(INTDIR)\threading.obj" 64 -@erase "$(INTDIR)\threading.sbr" 65 -@erase "$(INTDIR)\usage.obj" 66 -@erase "$(INTDIR)\usage.sbr" 67 -@erase "$(INTDIR)\signals.obj" 68 -@erase "$(INTDIR)\signals.sbr" 69 -@erase "$(INTDIR)\vc*.*" 70 -@erase "$(OUTDIR)\disktest.exe" 71 72 "$(OUTDIR)" : 73 if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" 74 75 CPP_PROJ=/nologo /W3 /Gs /MD /D"WIN32" /D"_WIN32_WINNT=0x0500" /D"WINDOWS" /D"NDEBUG" /D"_CONSOLE" /D"_MBCS" /FR"$(INTDIR)\\" /Fp"$(INTDIR)\disktest.pch" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c 76 77 LINK=link.exe bufferoverflowu.lib Winmm.lib Ws2_32.lib 78 LINK_FLAGS=/nologo /subsystem:console /incremental:no /pdb:"$(OUTDIR)\disktest.pdb" /out:"$(OUTDIR)\disktest.exe" 79 LINK_OBJS= \ 80 "$(INTDIR)\childmain.obj" \ 81 "$(INTDIR)\timer.obj" \ 82 "$(INTDIR)\stats.obj" \ 83 "$(INTDIR)\Getopt.obj" \ 84 "$(INTDIR)\globals.obj" \ 85 "$(INTDIR)\io.obj" \ 86 "$(INTDIR)\main.obj" \ 87 "$(INTDIR)\parse.obj" \ 88 "$(INTDIR)\sfunc.obj" \ 89 "$(INTDIR)\threading.obj" \ 90 "$(INTDIR)\usage.obj" \ 91 "$(INTDIR)\dump.obj" \ 92 "$(INTDIR)\signals.obj" 93 94 "$(OUTDIR)\disktest.exe" : "$(OUTDIR)" $(LINK_OBJS) 95 $(LINK) @<< 96 $(LINK_FLAGS) $(LINK_OBJS) 97 << 98 99 !ELSEIF "$(CFG)" == "disktest - Debug" 100 101 OUTDIR=.\Debug 102 INTDIR=.\Debug 103 # Begin Custom Macros 104 OutDir=.\Debug 105 # End Custom Macros 106 107 ALL : "$(OUTDIR)\disktest.exe" 108 109 CLEAN : 110 -@erase "$(INTDIR)\childmain.obj" 111 -@erase "$(INTDIR)\childmain.sbr" 112 -@erase "$(INTDIR)\dump.obj" 113 -@erase "$(INTDIR)\dump.sbr" 114 -@erase "$(INTDIR)\timer.obj" 115 -@erase "$(INTDIR)\timer.obj" 116 -@erase "$(INTDIR)\stats.sbr" 117 -@erase "$(INTDIR)\stats.sbr" 118 -@erase "$(INTDIR)\Getopt.obj" 119 -@erase "$(INTDIR)\Getopt.sbr" 120 -@erase "$(INTDIR)\globals.obj" 121 -@erase "$(INTDIR)\globals.sbr" 122 -@erase "$(INTDIR)\io.obj" 123 -@erase "$(INTDIR)\io.sbr" 124 -@erase "$(INTDIR)\main.obj" 125 -@erase "$(INTDIR)\main.sbr" 126 -@erase "$(INTDIR)\parse.obj" 127 -@erase "$(INTDIR)\parse.sbr" 128 -@erase "$(INTDIR)\sfunc.obj" 129 -@erase "$(INTDIR)\sfunc.sbr" 130 -@erase "$(INTDIR)\threading.obj" 131 -@erase "$(INTDIR)\threading.sbr" 132 -@erase "$(INTDIR)\usage.obj" 133 -@erase "$(INTDIR)\usage.sbr" 134 -@erase "$(INTDIR)\signals.obj" 135 -@erase "$(INTDIR)\signals.sbr" 136 -@erase "$(INTDIR)\vc*.*" 137 -@erase "$(OUTDIR)\disktest.exe" 138 -@erase "$(OUTDIR)\disktest.ilk" 139 -@erase "$(OUTDIR)\disktest.pdb" 140 141 "$(OUTDIR)" : 142 if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" 143 144 CPP_PROJ=bufferoverflow.lib /nologo /MLd /W3 /Gm /GX /ZI /Od /MD /D"WIN32" /D"_WIN32_WINNT=0x0500" /D"WINDOWS" /D"_DEBUG" /D"_CONSOLE" /D "_MBCS" /FR"$(INTDIR)\\" /Fp"$(INTDIR)\disktest.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c 145 146 LINK=link.exe bufferoverflow.lib Winmm.lib Ws2_32.lib 147 LINK_FLAGS=/nologo /subsystem:console /pdb:"$(OUTDIR)\disktest.pdb" /out:"$(OUTDIR)\disktest.exe" 148 LINK_OBJS= \ 149 "$(INTDIR)\childmain.obj" \ 150 "$(INTDIR)\Getopt.obj" \ 151 "$(INTDIR)\globals.obj" \ 152 "$(INTDIR)\io.obj" \ 153 "$(INTDIR)\main.obj" \ 154 "$(INTDIR)\parse.obj" \ 155 "$(INTDIR)\sfunc.obj" \ 156 "$(INTDIR)\threading.obj" \ 157 "$(INTDIR)\usage.obj" \ 158 "$(INTDIR)\dump.obj" \ 159 "$(INTDIR)\timer.obj" \ 160 "$(INTDIR)\stats.obj" \ 161 "$(INTDIR)\signals.obj" 162 163 "$(OUTDIR)\disktest.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK_OBJS) 164 $(LINK) @<< 165 $(LINK_FLAGS) $(LINK_OBJS) 166 << 167 168 !ENDIF 169 170 .c{$(INTDIR)}.obj:: 171 $(CPP) @<< 172 $(CPP_PROJ) $< 173 << 174 175 .c{$(INTDIR)}.sbr:: 176 $(CPP) @<< 177 $(CPP_PROJ) $< 178 << 179 180 !IF "$(CFG)" == "disktest - Release" || "$(CFG)" == "disktest - Debug" 181 182 SOURCE=.\childmain.c 183 184 "$(INTDIR)\childmain.obj" "$(INTDIR)\childmain.sbr" : $(SOURCE) "$(INTDIR)" 185 186 SOURCE=.\dump.c 187 188 "$(INTDIR)\dump.obj" "$(INTDIR)\dump.sbr" : $(SOURCE) "$(INTDIR)" 189 190 SOURCE=.\timer.c 191 192 "$(INTDIR)\timer.obj" "$(INTDIR)\timer.sbr" : $(SOURCE) "$(INTDIR)" 193 194 SOURCE=.\stats.c 195 196 "$(INTDIR)\stats.obj" "$(INTDIR)\stats.sbr" : $(SOURCE) "$(INTDIR)" 197 198 SOURCE=.\Getopt.c 199 200 "$(INTDIR)\Getopt.obj" "$(INTDIR)\Getopt.sbr" : $(SOURCE) "$(INTDIR)" 201 202 SOURCE=.\globals.c 203 204 "$(INTDIR)\globals.obj" "$(INTDIR)\globals.sbr" : $(SOURCE) "$(INTDIR)" 205 206 SOURCE=.\io.c 207 208 "$(INTDIR)\io.obj" "$(INTDIR)\io.sbr" : $(SOURCE) "$(INTDIR)" 209 210 SOURCE=.\main.c 211 212 "$(INTDIR)\main.obj" "$(INTDIR)\main.sbr" : $(SOURCE) "$(INTDIR)" 213 214 SOURCE=.\parse.c 215 216 "$(INTDIR)\parse.obj" "$(INTDIR)\parse.sbr" : $(SOURCE) "$(INTDIR)" 217 218 SOURCE=.\sfunc.c 219 220 "$(INTDIR)\sfunc.obj" "$(INTDIR)\sfunc.sbr" : $(SOURCE) "$(INTDIR)" 221 222 SOURCE=.\threading.c 223 224 "$(INTDIR)\threading.obj" "$(INTDIR)\threading.sbr" : $(SOURCE) "$(INTDIR)" 225 226 SOURCE=.\usage.c 227 228 "$(INTDIR)\usage.obj" "$(INTDIR)\usage.sbr" : $(SOURCE) "$(INTDIR)" 229 230 SOURCE=.\signals.c 231 232 "$(INTDIR)\signals.obj" "$(INTDIR)\signals.sbr" : $(SOURCE) "$(INTDIR)" 233 234 !ENDIF 235 236