1 # Microsoft Developer Studio Generated NMAKE File, Format Version 4.10 2 # ** DO NOT EDIT ** 3 4 # TARGTYPE "Win32 (x86) Console Application" 0x0103 5 6 7 !IF "$(OS)" == "Windows_NT" 8 NULL= 9 !ELSE 10 NULL=nul 11 !ENDIF 12 ################################################################################ 13 # Begin Project 14 RSC=rc.exe 15 CPP=icl.exe 16 LINK32=xilink.exe 17 18 OUTDIR=. 19 INTDIR=. 20 21 # set this directories 22 STL_PATH=..\.. 23 24 Dep_stl = TestClass.obj main.obj nc_alloc.obj \ 25 random_number.obj test_algo.obj test_algobase.obj test_bit_vector.obj test_deque.obj \ 26 test_hash_map.obj test_hash_set.obj test_list.obj test_map.obj test_rope.obj test_set.obj \ 27 test_slist.obj test_vector.obj test_string.obj test_bitset.obj test_valarray.obj 28 29 # linker finds proper STLport lib automatically, only path to the library is needed 30 CPP_PRJ_LINK = /link /incremental:no /LIBPATH:$(STL_PATH)\lib 31 32 #disable warnings complaining about debug ...info exceeded.... 33 CPP_PRJ_EXTRA = /Qwd985 34 CPP_PRJ_CMN = /nologo /W3 /GR /GX /DWIN32 /D_WINDOWS /D_CONSOLE /I$(STL_PATH)\stlport /I. 35 36 # 37 LIBTYPE = STATIC 38 # LIBTYPE = DYNAMIC 39 # 40 #DEBUG = STL 41 DEBUG = ON 42 #DEBUG = 43 # 44 IOS = SGI 45 #IOS = NOSGI 46 #IOS = NONE 47 48 !IF "$(IOS)" == "NOSGI" 49 CPP_PRJ_IOS = /D_STLP_NO_SGI_IOSTREAMS 50 !ELSEIF "$(IOS)" == "NONE" 51 CPP_PRJ_IOS = /D_STLP_NO_IOSTREAM 52 !ELSE 53 CPP_PRJ_IOS = 54 !ENDIF 55 56 #MT/MD etc should be LAST in CPP_PRJ_LIBTYP string!!! 57 #Library selection should be BEFORE debug processing!!! 58 !IF "$(LIBTYPE)" == "STATIC" 59 CPP_PRJ_LIBTYP = /D_STLP_USE_STATIC_LIB /MT 60 !ELSE 61 CPP_PRJ_LIBTYP = /D_STLP_USE_DYNAMIC_LIB /MD 62 !ENDIF 63 64 !IF "$(DEBUG)" == "" 65 CPP_PRJ_DBG = /DNDEBUG /O2 /Qsox- 66 !ELSE 67 CPP_PRJ_LIBTYP = $(CPP_PRJ_LIBTYP)d 68 CPP_PRJ_DBG = /D_DEBUG /Od 69 !IF "$(DEBUG)" == "STL" 70 CPP_PRJ_DBG = $(CPP_PRJ_DBG) /D_STLP_DEBUG 71 !ENDIF 72 CPP_PRJ_CMN = $(CPP_PRJ_CMN) /Zi /Gm 73 !ENDIF 74 75 CPP_IGNORE_LIB = LIBCMT 76 #CPP_PRJ_LINK = $(CPP_PRJ_LINK) /NODEFAULTLIB:$(CPP_IGNORE_LIB) 77 CPP_PRJ_LINK = $(CPP_PRJ_LINK) /VERBOSE:LIB 78 79 CPP_PROJ = $(CPP_PRJ_CMN) $(CPP_PRJ_EXTRA) $(CPP_PRJ_IOS) $(CPP_PRJ_LIBTYP) $(CPP_PRJ_DBG) 80 81 check: eh_test.out 82 83 eh_test.out : $(Dep_stl) 84 $(CPP) $(CPP_PROJ) $(Dep_stl) /Feeh_test.exe $(CPP_PRJ_LINK) 85 # fbp : this is to locate DLL 86 cd ..\..\lib 87 ..\test\eh\eh_test.exe -s 100 88 echo done 89 90 clean : 91 -@erase "$(INTDIR)\*.obj" 92 -@erase "$(OUTDIR)\*.exe" 93 -@erase "$(OUTDIR)\*.obj" 94 95 96 .exe.out: 97 $< > $@ 98 99 .cpp.exe: 100 $(CPP) $(CPP_PROJ) -DMAIN $< $(CPP_PRJ_LINK) 101 102 .c.obj: 103 $(CPP) $(CPP_PROJ) /c $< 104 105 .cpp.obj: 106 $(CPP) $(CPP_PROJ) /c $< 107 108 .cxx.obj: 109 $(CPP) $(CPP_PROJ) /c $< 110 111 .cpp.E: 112 $(CPP) $(CPP_PROJ) -E $< >$*.E 113 114 .cpp.sbr: 115 $(CPP) $(CPP_PROJ) $< 116