diff -urN ../mosml.orig/include/config.h ./include/config.h
old
|
new
|
|
2 | 2 | #define _config_ |
3 | 3 | |
4 | 4 | |
5 | | #if defined(__MWERKS__) || defined(THINK_C) |
| 5 | #if defined(__MWERKS__) || defined(THINK_C) || defined(LSB) |
6 | 6 | #include "m.h" |
7 | 7 | #include "s.h" |
8 | 8 | #else |
diff -urN ../mosml.orig/src/Makefile ./src/Makefile
old
|
new
|
|
25 | 25 | cd lex; make all |
26 | 26 | cd launch; make all |
27 | 27 | |
| 28 | world-dyn: |
| 29 | cd dynlibs/msocket; make |
| 30 | cd dynlibs/crypt; make |
| 31 | cd dynlibs/munix; make |
| 32 | cd dynlibs/mregex; make |
| 33 | cd dynlibs/mgdbm; make |
| 34 | cd dynlibs/mgd; make |
| 35 | cd dynlibs/intinf; make |
| 36 | |
| 37 | install-world-dyn: dirs |
| 38 | cd dynlibs/msocket; make install |
| 39 | cd dynlibs/crypt; make install |
| 40 | cd dynlibs/munix; make install |
| 41 | cd dynlibs/mregex; make install |
| 42 | cd dynlibs/mgdbm; make install |
| 43 | cd dynlibs/mgd; make install |
| 44 | cd dynlibs/intinf; make install |
| 45 | |
28 | 46 | uptodate: |
29 | 47 | cd runtime; make all |
30 | 48 | cp runtime/camlrunm$(EXE) . |
… |
… |
|
42 | 60 | cd toolssrc; make clean all |
43 | 61 | cd lex; make clean all |
44 | 62 | |
45 | | # Install the Mosml system |
46 | | install: |
| 63 | dirs: |
47 | 64 | test -d $(BINDIR) || mkdir -p $(BINDIR) |
48 | 65 | test -d $(LIBDIR) || mkdir -p $(LIBDIR) |
49 | 66 | test -d $(INCDIR) || mkdir -p $(INCDIR) |
50 | 67 | test -d $(DOCDIR) || mkdir -p $(DOCDIR) |
51 | 68 | test -d $(TOOLDIR) || mkdir -p $(TOOLDIR) |
| 69 | |
| 70 | # Install the Mosml system |
| 71 | install: dirs |
52 | 72 | cd runtime; make install |
53 | 73 | cd config; make install |
54 | 74 | cd launch; make all install |
diff -urN ../mosml.orig/src/Makefile.inc ./src/Makefile.inc
old
|
new
|
|
30 | 30 | # For Linux (x86 or Alpha), use: |
31 | 31 | # ------------------------------ |
32 | 32 | CPP=/usr/bin/cpp -P -traditional -Dunix -Umsdos |
33 | | STRIP=strip |
34 | | LD=gcc -rdynamic |
35 | | DYNLD=ld -shared |
| 33 | STRIP=echo |
| 34 | LD=gcc -Wl,-rpath -Wl,${DESTROOT}/lib/mosml |
| 35 | DYNLD=gcc -bundle -bundle_loader ${DESTROOT}/bin/camlrunm |
| 36 | ADDRUNLIBS= |
| 37 | ADDRUNCFLAGS= |
| 38 | ADDDYNLIBCFLAGS=-DLSB |
36 | 39 | |
37 | 40 | # For Cygwin 20.1, use: |
38 | 41 | # --------------------- |
diff -urN ../mosml.orig/src/dynlibs/crypt/Makefile ./src/dynlibs/crypt/Makefile
old
|
new
|
|
13 | 13 | $(CC) $(CFLAGS) -c -o crypt.o crypt.c |
14 | 14 | |
15 | 15 | libcrypt.so: crypt.o |
16 | | $(DYNLD) -lcrypt -o libcrypt.so crypt.o |
17 | | # $(DYNLD) -o libcrypt.so crypt.o |
| 16 | $(DYNLD) -o libcrypt.so crypt.o |
| 17 | |
| 18 | install: |
| 19 | cp libcrypt.so $(LIBDIR) |
18 | 20 | |
19 | 21 | clean: |
20 | 22 | rm -f *.o |
diff -urN ../mosml.orig/src/dynlibs/intinf/Makefile ./src/dynlibs/intinf/Makefile
old
|
new
|
|
5 | 5 | |
6 | 6 | # Where to find GMP header file and compiled library |
7 | 7 | |
8 | | GMPDIR=${HOME}/c/gmp-2.0.2 |
| 8 | GMPDIR=/opt/local |
| 9 | GMPINCDIR=${GMPDIR}/include |
| 10 | GMPLIBDIR=${GMPDIR}/lib |
9 | 11 | |
10 | 12 | include ../../Makefile.inc |
11 | 13 | |
12 | 14 | OPTS=-fno-defer-pop |
13 | | CFLAGS=-Dunix -O2 $(OPTS) $(ADDDYNLIBCFLAGS) -I$(INCDIR) -I ${GMPDIR} |
| 15 | CFLAGS=-Dunix -O2 $(OPTS) $(ADDDYNLIBCFLAGS) -I$(INCDIR) -I ${GMPINCDIR} |
14 | 16 | |
15 | 17 | MOSMLTOOLS=camlrunm $(MOSMLHOME)/tools |
16 | 18 | MOSMLC=mosmlc -c |
… |
… |
|
18 | 20 | MOSMLLEX=mosmllex |
19 | 21 | MOSMLYACC=mosmlyac |
20 | 22 | |
21 | | all: libmgmp.so IntInf.uo |
| 23 | all: libmgmp.so IntInf.uo IntInf.ui |
22 | 24 | |
23 | | install: |
| 25 | install: all |
24 | 26 | cp libmgmp.so $(LIBDIR) |
| 27 | cp IntInf.uo $(LIBDIR) |
| 28 | cp IntInf.ui $(LIBDIR) |
| 29 | cp IntInf.sig $(LIBDIR) |
25 | 30 | |
26 | 31 | intinf.o: intinf.c |
27 | 32 | $(CC) $(CFLAGS) -c -o intinf.o intinf.c |
28 | 33 | |
29 | 34 | libmgmp.so: intinf.o |
30 | | $(DYNLD) -o libmgmp.so intinf.o ${GMPDIR}/libgmp.a |
| 35 | $(DYNLD) -o libmgmp.so intinf.o ${GMPLIBDIR}/libgmp.a |
31 | 36 | |
32 | 37 | test: |
33 | 38 | mosml testintinf.sml |
diff -urN ../mosml.orig/src/dynlibs/mgd/Makefile ./src/dynlibs/mgd/Makefile
old
|
new
|
|
5 | 5 | |
6 | 6 | # Where to find gd header file and compiled library |
7 | 7 | |
8 | | GDDIR=${HOME}/c/gd-1.7.3 |
| 8 | GDINCDIR=/opt/local/include |
| 9 | GDLIBDIR=/opt/local/lib |
9 | 10 | |
10 | 11 | include ../../Makefile.inc |
11 | 12 | |
12 | 13 | OPTS=-fno-defer-pop |
13 | | CFLAGS=-Dunix -O2 $(OPTS) $(ADDDYNLIBCFLAGS) -I$(INCDIR) -I ${GDDIR} |
| 14 | CFLAGS=-Dunix -O2 $(OPTS) $(ADDDYNLIBCFLAGS) -I$(INCDIR) -I ${GDINCDIR} |
14 | 15 | |
15 | 16 | MOSMLTOOLS=camlrunm $(MOSMLHOME)/tools |
16 | 17 | MOSMLC=mosmlc -c |
… |
… |
|
24 | 25 | $(CC) $(CFLAGS) -c -o mgd.o mgd.c |
25 | 26 | |
26 | 27 | libmgd.so: mgd.o |
27 | | $(DYNLD) -o libmgd.so mgd.o ${GDDIR}/libgd.a -L/usr/X11R6/lib -lpng -lz |
| 28 | $(DYNLD) -o libmgd.so mgd.o ${GDLIBDIR}/libgd.a -L/usr/X11R6/lib -lpng -lz |
28 | 29 | # $(DYNLD) -o libmgd.so mgd.o ${GDDIR}/libgd.a -R/pack/libs/lib -L/pack/libs/lib -lpng -lz |
29 | 30 | |
30 | 31 | test: Graphs.uo |
diff -urN ../mosml.orig/src/dynlibs/mgdbm/Makefile ./src/dynlibs/mgdbm/Makefile
old
|
new
|
|
5 | 5 | |
6 | 6 | # Where to find GDBM header file and compiled library |
7 | 7 | |
8 | | GDBMLIBDIR=${HOME}/c/gdbm-1.7.3 |
9 | | GDBMINCDIR=${HOME}/c/gdbm-1.7.3 |
10 | | #GDBMLIBDIR=/usr/lib |
11 | | #GDBMINCDIR=/usr/include |
| 8 | GDBMLIBDIR=/opt/local/lib |
| 9 | GDBMINCDIR=/opt/local/include |
12 | 10 | |
13 | 11 | include ../../Makefile.inc |
14 | 12 | |
diff -urN ../mosml.orig/src/dynlibs/munix/munix.c ./src/dynlibs/munix/munix.c
old
|
new
|
|
59 | 59 | failwith("EINVAL"); break; |
60 | 60 | case EISDIR: |
61 | 61 | failwith("EISDIR"); break; |
62 | | case ELIBBAD: |
63 | | failwith("ELIBBAD"); break; |
| 62 | /* case ELIBBAD: |
| 63 | failwith("ELIBBAD"); break; */ |
64 | 64 | case ECHILD: |
65 | 65 | failwith("ECHILD"); break; |
66 | 66 | case EINTR: |
diff -urN ../mosml.orig/src/runtime/config.h ./src/runtime/config.h
old
|
new
|
|
2 | 2 | #define _config_ |
3 | 3 | |
4 | 4 | |
5 | | #if defined(__MWERKS__) || defined(THINK_C) |
| 5 | #if defined(__MWERKS__) || defined(THINK_C) || defined(LSB) |
6 | 6 | #include "m.h" |
7 | 7 | #include "s.h" |
8 | 8 | #else |