blob: 1854ab25dee47985d685fcd9b07d021356775a40 (
plain)
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
|
--- Make.orig 2002-02-26 12:29:20 UTC
+++ Make
@@ -18,7 +18,7 @@ CC=gcc # compiler an
LD=ld # linker for shared objects
COMPILEFLAG="" # general compilation flags for cc
LINKFLAG="" # general linker flags *for cc*
-#STUFF="-DSTUFF_STACK" # uncomment if you like queuing stack to keyboard
+STUFF="-DSTUFF_STACK" # uncomment if you like queuing stack to keyboard
# (not guaranteed to work on all systems)
SMALL=false # true if you like small executables (not guaranteed
# and not for ELF executables either)
@@ -98,6 +98,9 @@ if [ "x$PREFIX" = "x" ]; then
SunOS:5.*)
PREFIX="/opt/REXXimc"
;;
+ FreeBSD:*)
+ PREFIX="${PREFIX}"
+ ;;
*|unknown)
PREFIX="/usr/local"
;;
@@ -386,14 +389,14 @@ case $UNAME_S:$UNAME_R in
esac
egrep -q tm_gmtoff /usr/include/time.h && CCFLAG="$CCFLAG -DHAS_GMTOFF"
;;
- FreeBSD:*)
+ FreeBSD:3.*)
REXXLIB="librexx.so"
RANLIB=ranlib
MATH=rxmathfn.rxfn
LIBRARIES=""
SOFLAG="-Bshareable"
DLLFLAG="-Bshareable"
-# LREXX='$(LIBDIR)/$(SONAME)'
+ LREXX='$(LIBDIR)/$(SONAME)'
# Uncomment above line if you have problems with LD_LIBRARY_PATH
case $CC in
gcc)
@@ -407,6 +410,48 @@ case $UNAME_S:$UNAME_R in
;;
esac
;;
+ FreeBSD:4.*)
+ REXXLIB="librexx.so"
+ SOLINK="librexx.so"
+ RANLIB=ranlib
+ MATH=rxmathfn.rxfn
+ LIBRARIES=""
+ SOFLAG="-shared --export-dynamic"
+ : ${RUNLIBS='-L$(LIBDIR) -Wl,-rpath,$(PREFIX)/lib'}
+ DLLFLAG="-shared --export-dynamic"
+ case $CC in
+ gcc)
+ CCFLAG="${CFLAGS} -DHAS_TTYCOM -DRENAME_UNDELETE -DHAS_GMTOFF"
+ PIC="-fPIC"
+ ;;
+ *) echo "Warning: I don't know the options for $CC"\
+ "- trying the gcc ones" >&2
+ CCFLAG="${CFLAGS} -DHAS_TTYCOM -DRENAME_UNDELETE -DHAS_GMTOFF"
+ PIC="-fPIC"
+ ;;
+ esac
+ ;;
+ FreeBSD:[5-9].*|FreeBSD:[1-9][0-9].*)
+ REXXLIB="librexx.so"
+ SOLINK="librexx.so"
+ RANLIB=ranlib
+ MATH=rxmathfn.rxfn
+ LIBRARIES=""
+ SOFLAG="-shared --export-dynamic"
+ : ${RUNLIBS='-L$(LIBDIR) -Wl,-rpath,$(PREFIX)/lib'}
+ DLLFLAG="-shared --export-dynamic"
+ case $CC in
+ gcc)
+ CCFLAG="${CFLAGS} -DHAS_TTYCOM -DRENAME_UNDELETE -DHAS_GMTOFF"
+ PIC="-fPIC"
+ ;;
+ *) echo "Warning: I don't know the options for $CC"\
+ "- trying the gcc ones" >&2
+ CCFLAG="${CFLAGS} -DHAS_TTYCOM -DRENAME_UNDELETE -DHAS_GMTOFF"
+ PIC="-fPIC"
+ ;;
+ esac
+ ;;
unknown:*|*:*)
echo "I am not configured for this platform - guessing some options" >&2
echo "(You will not be able to use shared libraries)" >&2
|