File: vc6.mak

package info (click to toggle)
stlport4.6 4.6.2-7
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 7,056 kB
  • ctags: 16,390
  • sloc: ansic: 46,190; cpp: 18,805; sh: 266; asm: 93; perl: 58; makefile: 10
file content (226 lines) | stat: -rw-r--r-- 5,617 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
# Microsoft Developer Studio Generated NMAKE File, Format Version 4.10
# ** DO NOT EDIT **

# TARGTYPE "Win32 (x86) Console Application" 0x0103


!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE 
NULL=nul
!ENDIF 
################################################################################
# Begin Project
RSC=rc.exe
CPP=cl.exe
LINK32=link.exe
F90=fl32.exe

OUTDIR=.
INTDIR=.

# set this directories 
STL_PATH=..\..


Dep_stl = stl_test.obj accum1.obj accum2.obj \
	adjdiff0.obj adjdiff1.obj adjdiff2.obj \
	adjfind0.obj adjfind1.obj adjfind2.obj \
	advance.obj \
	alg1.obj alg2.obj alg3.obj alg4.obj alg5.obj \
	bcompos1.obj bcompos2.obj \
	bind1st1.obj bind1st2.obj \
	bind2nd1.obj bind2nd2.obj \
	binsert1.obj binsert2.obj \
	binsrch1.obj binsrch2.obj \
	bnegate1.obj bnegate2.obj bvec1.obj \
	copy1.obj copy2.obj copy3.obj copy4.obj \
	copyb.obj copyb0.obj \
	count0.obj count1.obj \
	countif1.obj \
	deque1.obj \
	divides.obj \
	eqlrnge0.obj eqlrnge1.obj eqlrnge2.obj \
	equal0.obj equal1.obj equal2.obj \
	equalto.obj \
	fill1.obj filln1.obj \
	find0.obj find1.obj \
	findif0.obj findif1.obj \
	finsert1.obj finsert2.obj \
	foreach0.obj foreach1.obj \
	func1.obj func2.obj func3.obj \
	gener1.obj gener2.obj \
	genern1.obj genern2.obj \
	greateq.obj greater.obj \
	incl0.obj incl1.obj incl2.obj \
	inplmrg1.obj inplmrg2.obj \
	inrprod0.obj inrprod1.obj inrprod2.obj \
	insert1.obj insert2.obj \
	iota1.obj \
	istmit1.obj \
	iter1.obj iter2.obj iter3.obj iter4.obj \
	iterswp0.obj iterswp1.obj \
	less.obj \
	lesseq.obj \
	lexcmp1.obj lexcmp2.obj \
	list1.obj list2.obj list3.obj list4.obj \
	logicand.obj logicnot.obj \
	logicor.obj \
	lwrbnd1.obj lwrbnd2.obj \
	map1.obj \
	max1.obj max2.obj \
	maxelem1.obj maxelem2.obj \
	memfunptr.obj \
	merge0.obj merge1.obj merge2.obj \
	min1.obj min2.obj \
	minelem1.obj minelem2.obj \
	minus.obj \
	mismtch0.obj mismtch1.obj mismtch2.obj \
	mkheap0.obj mkheap1.obj \
	mmap1.obj mmap2.obj \
	modulus.obj \
	mset1.obj mset3.obj mset4.obj mset5.obj \
	negate.obj nequal.obj \
	nextprm0.obj nextprm1.obj nextprm2.obj \
	nthelem0.obj nthelem1.obj nthelem2.obj \
	ostmit.obj \
	pair0.obj pair1.obj pair2.obj \
	parsrt0.obj parsrt1.obj parsrt2.obj \
	parsrtc0.obj parsrtc1.obj parsrtc2.obj \
	partsrt0.obj \
	partsum0.obj partsum1.obj partsum2.obj \
	pheap1.obj pheap2.obj \
	plus.obj \
	pqueue1.obj \
	prevprm0.obj prevprm1.obj prevprm2.obj \
	ptition0.obj ptition1.obj \
	ptrbinf1.obj ptrbinf2.obj \
	ptrunf1.obj ptrunf2.obj \
	queue1.obj \
	rawiter.obj \
	remcopy1.obj \
	remcpif1.obj \
	remif1.obj \
	remove1.obj \
	repcpif1.obj \
	replace0.obj replace1.obj replcpy1.obj replif1.obj \
	revbit1.obj revbit2.obj \
	revcopy1.obj reverse1.obj reviter1.obj reviter2.obj \
	rndshuf0.obj rndshuf1.obj rndshuf2.obj \
	rotate0.obj rotate1.obj rotcopy0.obj rotcopy1.obj \
	search0.obj search1.obj search2.obj \
	set1.obj set2.obj \
	setdiff0.obj setdiff1.obj setdiff2.obj \
	setintr0.obj setintr1.obj setintr2.obj \
	setsymd0.obj setsymd1.obj setsymd2.obj \
	setunon0.obj setunon1.obj setunon2.obj \
	sort1.obj sort2.obj \
	stack1.obj stack2.obj \
	stblptn0.obj stblptn1.obj \
	stblsrt1.obj stblsrt2.obj \
	swap1.obj \
	swprnge1.obj \
	times.obj \
	trnsfrm1.obj trnsfrm2.obj \
	ucompos1.obj ucompos2.obj \
	unegate1.obj unegate2.obj \
	uniqcpy1.obj uniqcpy2.obj \
	unique1.obj unique2.obj \
	uprbnd1.obj uprbnd2.obj \
	vec1.obj vec2.obj vec3.obj vec4.obj vec5.obj vec6.obj vec7.obj vec8.obj \
        hmap1.obj hmmap1.obj hset2.obj hmset1.obj slist1.obj string1.obj bitset1.obj

CPP_PRJ_LINK = /link /incremental:no /LIBPATH:$(STL_PATH)\lib

CPP_PRJ_CMN = /nologo /W3 /GR /GX /DWIN32 /D_WINDOWS /D_CONSOLE /I$(STL_PATH)\stlport /I.

# #  CPP_PROJ=/nologo /W3 /MDd /GX /Zd /D "WIN32" /D "_CONSOLE" $(STL_INCL) /I$(VC_INCL) /I.

#
#LIBTYPE = STATIC
LIBTYPE = DYNAMIC
#
#DEBUG = STL
#DEBUG = ON
DEBUG =
# 
IOS = SGI
#IOS = NOSGI
#IOS = NONE

!IF "$(IOS)" == "NOSGI"
CPP_PRJ_IOS = /D_STLP_NO_OWN_IOSTREAMS
!ELSEIF "$(IOS)" == "NONE"
CPP_PRJ_IOS = /D_STLP_NO_IOSTREAM
!ELSE
CPP_PRJ_IOS = 
!ENDIF

#MT/MD etc should be LAST in CPP_PRJ_LIBTYP string!!!
#Library selection should be BEFORE debug processing!!!
!IF "$(LIBTYPE)" == "STATIC"
CPP_PRJ_LIBTYP = /D_STLP_USE_STATIC_LIB /MT
!ELSE
CPP_PRJ_LIBTYP = /D_STLP_USE_DYNAMIC_LIB /MD
!ENDIF

!IF "$(DEBUG)" == ""
CPP_PRJ_DBG = /DNDEBUG /O2
!ELSE
CPP_PRJ_LIBTYP = $(CPP_PRJ_LIBTYP)d
CPP_PRJ_DBG = /D_DEBUG /Od
!IF "$(DEBUG)" == "STL"
CPP_PRJ_DBG = $(CPP_PRJ_DBG) /D_STLP_DEBUG
!ENDIF
CPP_PRJ_CMN = $(CPP_PRJ_CMN) /Zi
!ENDIF

# # Use this flags to test non-SGI iostreams
# CPP_PROJ=/nologo /W3 /MD /GX /Zd /Zi /D "WIN32" /D "_CONSOLE" $(STL_INCL) /I$(VC_INCL) /I. /D_STLP_NO_NEW_IOSTREAMS
# CPP_PROJ=/nologo /W3 /MD /GX /Zd /Zi /D "WIN32" /D "_CONSOLE" $(STL_INCL) /I$(VC_INCL) /I.
# # linker finds proper STLport lib automatically, only path to the
# # library is needed
# CPP_LIBS = /link /libpath:"..\..\lib"

CPP_PROJ = $(CPP_PRJ_CMN) $(CPP_PRJ_IOS) $(CPP_PRJ_LIBTYP) $(CPP_PRJ_DBG)

check: stl_test.out

stl_test.out : $(Dep_stl)
#	$(CPP) $(CPP_PROJ) $(Dep_stl) $(CPP_LIBS)
#	stl_test < stdin
	$(CPP) $(CPP_PROJ) $(Dep_stl) $(CPP_PRJ_LINK)
	stl_test > stl_test.out < stdin
	echo done

clean :
	-@erase "$(INTDIR)\*.obj"
	-@erase "$(OUTDIR)\*.exe"
	-@erase "$(OUTDIR)\*.obj"
	-@erase "$(OUTDIR)\*.ilk"
	-@erase "$(OUTDIR)\*.pdb"


.exe.out:
	$< > $@

.cpp.exe:
  $(CPP) $(CPP_PROJ) -DMAIN  $< $(CPP_PRJ_LINK)

.c.obj:
   $(CPP) $(CPP_PROJ) /c $<

.cpp.obj:
   $(CPP) $(CPP_PROJ) /c $<

.cxx.obj:
   $(CPP) $(CPP_PROJ) /c $<

.c.sbr:
   $(CPP) $(CPP_PROJ) $<  

.cpp.E:
   $(CPP) $(CPP_PROJ) -E $< >$*.E  

.cpp.sbr:
   $(CPP) $(CPP_PROJ) $<