fix prism compilation and PRISM overflow handling.
This commit is contained in:
parent
b3045ae38b
commit
e33712403f
@ -16,6 +16,7 @@ BINDIR = $(EROOTDIR)/bin
|
|||||||
#
|
#
|
||||||
# where YAP should look for libraries
|
# where YAP should look for libraries
|
||||||
#
|
#
|
||||||
|
TARGETS= prism.@SO@
|
||||||
LIBDIR=@libdir@
|
LIBDIR=@libdir@
|
||||||
YAPLIBDIR=@libdir@/Yap
|
YAPLIBDIR=@libdir@/Yap
|
||||||
YAP_EXTRAS=@YAP_EXTRAS@ -D_YAP_NOT_INSTALLED_=1 -D__YAP_PROLOG__=1
|
YAP_EXTRAS=@YAP_EXTRAS@ -D_YAP_NOT_INSTALLED_=1 -D__YAP_PROLOG__=1
|
||||||
@ -38,6 +39,7 @@ SO=@SO@
|
|||||||
#4.1VPATH=@srcdir@:@srcdir@/OPTYap
|
#4.1VPATH=@srcdir@:@srcdir@/OPTYap
|
||||||
CWD=$(PWD)
|
CWD=$(PWD)
|
||||||
#
|
#
|
||||||
|
RM=rm -f
|
||||||
|
|
||||||
##----------------------------------------------------------------------
|
##----------------------------------------------------------------------
|
||||||
|
|
||||||
@ -71,9 +73,9 @@ mp/%.o: $(srcdir)/mp/%.c
|
|||||||
@DO_SECOND_LD@prism.@SO@: $(OBJS)
|
@DO_SECOND_LD@prism.@SO@: $(OBJS)
|
||||||
@DO_SECOND_LD@ @SHLIB_LD@ $(LDFLAGS) -o $@ $(OBJS) @EXTRA_LIBS_FOR_DLLS@
|
@DO_SECOND_LD@ @SHLIB_LD@ $(LDFLAGS) -o $@ $(OBJS) @EXTRA_LIBS_FOR_DLLS@
|
||||||
|
|
||||||
all: $(TARGET)
|
all: $(TARGETS)
|
||||||
|
|
||||||
install: $(TARGET)
|
install: $(TARGETS)
|
||||||
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
|
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR)
|
||||||
|
|
||||||
clean: clean_subdirs
|
clean: clean_subdirs
|
||||||
@ -81,7 +83,7 @@ clean: clean_subdirs
|
|||||||
|
|
||||||
clean_subdirs:
|
clean_subdirs:
|
||||||
for i in $(SUBDIRS); do \
|
for i in $(SUBDIRS); do \
|
||||||
($(MAKE) -f $(MAKEFILE) -C $$i clean ) \
|
$(RM) $$i/*.o; \
|
||||||
done
|
done
|
||||||
|
|
||||||
##----------------------------------------------------------------------
|
##----------------------------------------------------------------------
|
||||||
|
@ -797,7 +797,7 @@ int pc_import_occ_switches_3(void)
|
|||||||
/* running out of stack */
|
/* running out of stack */
|
||||||
extern int Yap_gcl(UInt gc_lim, Int predarity, CELL *current_env, yamop *nextop);
|
extern int Yap_gcl(UInt gc_lim, Int predarity, CELL *current_env, yamop *nextop);
|
||||||
|
|
||||||
Yap_gcl(4*64*1024, 3, ENV, P);
|
Yap_gcl(4*64*1024, 3, ENV, CP);
|
||||||
goto restart;
|
goto restart;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user