Subversion Repositories Tewi

Rev

Rev 226 | Rev 249 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 226 Rev 240
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: bcc.sh 226 2024-10-03 03:25:24Z nishi $
2
# $Id: bcc.sh 240 2024-10-03 05:54:55Z nishi $
3
# Wrapper for CL. VC6 sucks.
3
# Wrapper for CL. VC6 sucks.
4
 
4
 
5
outfile="a.out"
5
outfile="a.out"
6
dowhat=""
6
dowhat=""
7
options="-I../VC6Compat -tWM -I$BORLAND/Include -L$BORLAND/Lib"
7
options="-I../VC6Compat -tWM -I$BORLAND/Include -L$BORLAND/Lib"
Line 29... Line 29...
29
		options="$options -tWD"
29
		options="$options -tWD"
30
		shared=1
30
		shared=1
31
	elif [ "`echo "$i" | grep -Eo "^-D"`" = "-D" ]; then
31
	elif [ "`echo "$i" | grep -Eo "^-D"`" = "-D" ]; then
32
		options="$options -`echo "$i" | sed "s/^-//g"`"
32
		options="$options -`echo "$i" | sed "s/^-//g"`"
33
	elif [ "`echo "$i" | grep -Eo "^-l"`" = "-l" ]; then
33
	elif [ "`echo "$i" | grep -Eo "^-l"`" = "-l" ]; then
-
 
34
		if [ ! "$i" = "-lwsock32" ]; then
34
		libraries="$libraries `echo "$i" | sed "s/^-l//g"`.lib"
35
			libraries="$libraries `echo "$i" | sed "s/^-l//g"`.lib"
-
 
36
		fi
35
	elif [ "$dowhat" = "output" ]; then
37
	elif [ "$dowhat" = "output" ]; then
36
		dowhat=""
38
		dowhat=""
37
		outfile="$i"
39
		outfile="$i"
38
	elif [ "$dowhat" = "include" ]; then
40
	elif [ "$dowhat" = "include" ]; then
39
		dowhat=""
41
		dowhat=""