Subversion Repositories Tewi

Rev

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

Rev 240 Rev 249
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: bcc.sh 240 2024-10-03 05:54:55Z nishi $
2
# $Id: bcc.sh 249 2024-10-03 20:59: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 26... Line 26...
26
	elif [ "$i" = "-std=c99" ]; then
26
	elif [ "$i" = "-std=c99" ]; then
27
		:
27
		:
28
	elif [ "$i" = "-shared" ]; then
28
	elif [ "$i" = "-shared" ]; then
29
		options="$options -tWD"
29
		options="$options -tWD"
30
		shared=1
30
		shared=1
-
 
31
	elif [ "$i" = "-mwindows" ]; then
-
 
32
		options="$options -tW"
31
	elif [ "`echo "$i" | grep -Eo "^-D"`" = "-D" ]; then
33
	elif [ "`echo "$i" | grep -Eo "^-D"`" = "-D" ]; then
32
		options="$options -`echo "$i" | sed "s/^-//g"`"
34
		options="$options -`echo "$i" | sed "s/^-//g"`"
33
	elif [ "`echo "$i" | grep -Eo "^-l"`" = "-l" ]; then
35
	elif [ "`echo "$i" | grep -Eo "^-l"`" = "-l" ]; then
34
		if [ ! "$i" = "-lwsock32" ]; then
36
		if [ ! "$i" = "-lwsock32" -a ! "$i" = "-luser32" -a ! "$i" = "-lcomctl32" ]; then
35
			libraries="$libraries `echo "$i" | sed "s/^-l//g"`.lib"
37
			libraries="$libraries `echo "$i" | sed "s/^-l//g"`.lib"
36
		fi
38
		fi
37
	elif [ "$dowhat" = "output" ]; then
39
	elif [ "$dowhat" = "output" ]; then
38
		dowhat=""
40
		dowhat=""
39
		outfile="$i"
41
		outfile="$i"