@@ -31,6 +31,7 @@ export COMPILER=watcom
31
31
if [ -z " $WATCOM " ]; then
32
32
export WATCOM=$HOME /watcom
33
33
export PATH=$PATH :$WATCOM /binl
34
+ export INCLUDE=$INCLUDE :$WATCOM /lh
34
35
fi
35
36
export PATH=$PATH :.
36
37
@@ -42,39 +43,39 @@ export XMS_SWAP=1
42
43
while (( "$# " )) ; do
43
44
case " $1 " in
44
45
-h)
45
- echo Build FreeCOM
46
- echo Usage: %0 [-r] [clean] [no-xms-swap] [debug] [language]
47
- echo -r: Rebuild -- Clean before proceed
48
- echo clean: Remove * .OBJ, * .COM, * .LIB, etc. files, then exit
49
- echo no-xms-swap: Build FreeCOM without XMS-Only Swap support
50
- echo debug: Build FreeCOM with debug settings.
51
- echo You can select for which language to built FreeCOM by setting
52
- echo the environment variable LNG before running this script, e.g.:
53
- echo EXPORT LNG=german
54
- echo selects the German language. For available language see STRINGS\* .LNG
55
- exit 0
56
- ;;
46
+ echo Build FreeCOM
47
+ echo Usage: %0 [-r] [clean] [no-xms-swap] [debug] [language]
48
+ echo -r: Rebuild -- Clean before proceed
49
+ echo clean: Remove * .OBJ, * .COM, * .LIB, etc. files, then exit
50
+ echo no-xms-swap: Build FreeCOM without XMS-Only Swap support
51
+ echo debug: Build FreeCOM with debug settings.
52
+ echo You can select for which language to built FreeCOM by setting
53
+ echo the environment variable LNG before running this script, e.g.:
54
+ echo EXPORT LNG=german
55
+ echo selects the German language. For available language see STRINGS\* .LNG
56
+ exit 0
57
+ ;;
57
58
no-xms-swap)
58
- unset XMS_SWAP
59
- ;;
59
+ unset XMS_SWAP
60
+ ;;
60
61
debug)
61
- export DEBUG=1
62
- ;;
62
+ export DEBUG=1
63
+ ;;
63
64
watcom)
64
- export COMPILER=watcom
65
- ;;
65
+ export COMPILER=watcom
66
+ ;;
66
67
wc)
67
- export COMPILER=watcom
68
- ;;
68
+ export COMPILER=watcom
69
+ ;;
69
70
gcc)
70
- export COMPILER=gcc
71
- ;;
71
+ export COMPILER=gcc
72
+ ;;
72
73
upx)
73
- WITH_UPX=" yes"
74
- ;;
74
+ WITH_UPX=" yes"
75
+ ;;
75
76
* )
76
- break
77
- ;;
77
+ break
78
+ ;;
78
79
esac
79
80
shift
80
81
done
@@ -86,14 +87,14 @@ echo Building FreeCOM for language $LNG
86
87
87
88
if [ -z " $MAKE " ]; then
88
89
case " $COMPILER " in
89
- watcom)
90
- export MAKE=" wmake -ms -h -f"
91
- ;;
92
- gcc)
93
- export MAKE=" make -f gnumake.mak"
94
- ;;
95
- * )
96
- ;;
90
+ watcom)
91
+ export MAKE=" wmake -ms -h -f"
92
+ ;;
93
+ gcc)
94
+ export MAKE=" make -f gnumake.mak"
95
+ ;;
96
+ * )
97
+ ;;
97
98
esac
98
99
echo Make is $MAKE .
99
100
fi
102
103
103
104
gnumake_subst () {
104
105
$SED -e ' s@^!@@' \
105
- -e ' s@^include "\(.*\)"@include \1@' \
106
- -e ' s@^include $(TOP)/config.mak@include $(TOP)/gnuconf.mak@' \
107
- -e ' s@if \(.*\) == \(.*\)[\r$]@ifeq (\1,\2)@' \
108
- -e ' s@^CC =@CC :=@' \
109
- -e ' s@^INCLUDEPATH =@INCLUDEPATH :=@' \
110
- -e ' s/\(-f obj.*$<\)/\1 -o $@/' \
111
- < $1 /$2 > $1 /$3
106
+ -e ' s@^include "\(.*\)"@include \1@' \
107
+ -e ' s@^include $(TOP)/config.mak@include $(TOP)/gnuconf.mak@' \
108
+ -e ' s@if \(.*\) == \(.*\)[\r$]@ifeq (\1,\2)@' \
109
+ -e ' s@^CC =@CC :=@' \
110
+ -e ' s@^INCLUDEPATH =@INCLUDEPATH :=@' \
111
+ -e ' s/\(-f obj.*$<\)/\1 -o $@/' \
112
+ < $1 /$2 > $1 /$3
112
113
}
113
114
114
115
if $MAKE -? 2>&1 | grep -q gnu; then
115
116
gnumake_subst . config.mak gnuconf.mak
116
117
for i in suppl utils strings criter lib cmd; do
117
- gnumake_subst $i $i .mak gnumake.mak
118
+ gnumake_subst $i $i .mak gnumake.mak
118
119
done
119
120
gnumake_subst suppl/src suppl.mak gnumake.mak
120
121
gnumake_subst strings/strings strings.mak gnumake.mak
0 commit comments