| 
									
										
										
										
											2002-02-26 17:25:33 +00:00
										 |  |  | # -*-Makefile-*- for Yap/library/mpi
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ##
 | 
					
						
							|  |  |  | ## Directories
 | 
					
						
							|  |  |  | ##
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | # default base directory for YAP installation
 | 
					
						
							|  |  |  | # (EROOT for architecture-dependent files)
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | prefix = @prefix@ | 
					
						
							| 
									
										
										
										
											2010-03-05 10:22:48 +00:00
										 |  |  | exec_prefix = @exec_prefix@ | 
					
						
							| 
									
										
										
										
											2002-02-26 17:25:33 +00:00
										 |  |  | ROOTDIR = $(prefix) | 
					
						
							|  |  |  | EROOTDIR = @exec_prefix@ | 
					
						
							| 
									
										
										
										
											2009-05-02 14:11:54 -05:00
										 |  |  | abs_top_builddir = @abs_top_builddir@ | 
					
						
							| 
									
										
										
										
											2002-02-26 17:25:33 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # where the binary should be
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | BINDIR = $(EROOTDIR)/bin | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | # where YAP should look for binary libraries
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											2010-03-05 08:15:02 +00:00
										 |  |  | LIBDIR=@libdir@ | 
					
						
							|  |  |  | YAPLIBDIR=@libdir@/Yap | 
					
						
							| 
									
										
										
										
											2002-02-26 17:25:33 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # where YAP should look for architecture-independent Prolog libraries
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | SHAREDIR=$(ROOTDIR)/share | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | # where the includes should be stored
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | INCLUDEDIR=$(ROOTDIR)/include/Yap | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | # where to store info files
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | INFODIR=$(SHAREDIR)/info | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ##
 | 
					
						
							|  |  |  | ## Tools
 | 
					
						
							|  |  |  | ##
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | CC=@CC@ | 
					
						
							|  |  |  | CPP=@CPP@ | 
					
						
							|  |  |  | DEFS=@DEFS@ | 
					
						
							|  |  |  | CPPFLAGS=@CPPFLAGS@  -I../.. -I$(srcdir)/../../H | 
					
						
							| 
									
										
										
										
											2010-06-21 11:54:21 +01:00
										 |  |  | CFLAGS= @SHLIB_CFLAGS@ $(DEFS) $(CPPFLAGS) | 
					
						
							| 
									
										
										
										
											2002-02-26 17:25:33 +00:00
										 |  |  | LIBS=@LIBS@ | 
					
						
							|  |  |  | LDFLAGS=@LDFLAGS@ | 
					
						
							|  |  |  | LN_S=@LN_S@ | 
					
						
							|  |  |  | M4=@M4@ | 
					
						
							|  |  |  | GCC=@GCC@ | 
					
						
							|  |  |  | INSTALL=@INSTALL@ | 
					
						
							|  |  |  | INSTALL_DATA=@INSTALL_DATA@ | 
					
						
							|  |  |  | INSTALL_INFO=@INSTALL_INFO@ | 
					
						
							|  |  |  | INSTALL_PROGRAM=@INSTALL_PROGRAM@ | 
					
						
							|  |  |  | M4GENHDRS=$(srcdir)/@M4GENHDRS@ | 
					
						
							|  |  |  | M4GENABSMI=$(srcdir)/@M4GENABSMI@ | 
					
						
							|  |  |  | INDENT=@INDENT@ | 
					
						
							|  |  |  | SHELL=/bin/sh | 
					
						
							|  |  |  | RANLIB=@RANLIB@ | 
					
						
							|  |  |  | AR=@AR@ | 
					
						
							|  |  |  | srcdir=@srcdir@ | 
					
						
							| 
									
										
										
										
											2010-06-14 10:36:13 +01:00
										 |  |  | SO=@SO@ | 
					
						
							| 
									
										
										
										
											2002-02-26 17:25:33 +00:00
										 |  |  | SHLIB_INTERFACE=@SHLIB_INTERFACE@ | 
					
						
							|  |  |  | RM=rm -f | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ##
 | 
					
						
							|  |  |  | ## Files
 | 
					
						
							|  |  |  | ##
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | C_SOURCES = $(srcdir)/mpi.c $(srcdir)/mpe.c | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #PL_SOURCES = 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | HEADERS =  | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | LIB_OBJECTS = mpi.o mpe.o | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | RUBBISH = $(OBJECTS) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DISTFILES = $(SRCS) Makefile | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ##
 | 
					
						
							|  |  |  | ## Rules
 | 
					
						
							|  |  |  | ##
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | all: YapMPI.a | 
					
						
							|  |  |  | 	@echo All done. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | YapMPI.a: $(LIB_OBJECTS) | 
					
						
							|  |  |  | 	$(RM) YapMPI.a | 
					
						
							|  |  |  | 	$(AR) rc YapMPI.a $(LIB_OBJECTS) | 
					
						
							|  |  |  | 	$(RANLIB) YapMPI.a | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | mpi.o: $(srcdir)/mpi.c | 
					
						
							|  |  |  | 	$(CC) -c $(CFLAGS) $(srcdir)/mpi.c -o $@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | mpe.o: $(srcdir)/mpe.c | 
					
						
							|  |  |  | 	$(CC) -c $(CFLAGS) $(srcdir)/mpe.c -o $@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | depend: $(HEADERS) $(C_SOURCES)  | 
					
						
							|  |  |  | 	-@if test "$(GCC)" = yes; then\
 | 
					
						
							|  |  |  | 	  $(CC) -MM $(CFLAGS) -I$(srcdir)/include $(C_SOURCES) > .depend;\
 | 
					
						
							|  |  |  | 	else\
 | 
					
						
							|  |  |  |           makedepend -f - -- $(CFLAGS) -I$(srcdir)/include -- $(C_SOURCES) |\
 | 
					
						
							|  |  |  |           sed 's|.*/\([^:]*\):|\1:|' > .depend ;\
 | 
					
						
							|  |  |  | 	fi | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | clean: | 
					
						
							|  |  |  | 	$(RM) $(RUBBISH) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | dist: | 
					
						
							|  |  |  | 	tar cf aa.tar $DISTFILES | 
					
						
							|  |  |  | 	$(COMPRESS) aa.tar | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # DO NOT DELETE THIS LINE -- make depend depends on it.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | include .depend |