| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # default base directory for YAP installation
 | 
					
						
							| 
									
										
										
										
											2001-11-26 16:05:19 +00:00
										 |  |  | # (EROOT for architecture-dependent files)
 | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2001-11-26 18:57:07 +00:00
										 |  |  | prefix = @prefix@ | 
					
						
							| 
									
										
										
										
											2010-03-05 10:22:48 +00:00
										 |  |  | exec_prefix = @exec_prefix@ | 
					
						
							| 
									
										
										
										
											2001-11-26 18:57:07 +00:00
										 |  |  | ROOTDIR = $(prefix) | 
					
						
							| 
									
										
										
										
											2001-11-26 16:05:19 +00:00
										 |  |  | EROOTDIR = @exec_prefix@ | 
					
						
							| 
									
										
										
										
											2009-05-02 14:11:54 -05:00
										 |  |  | abs_top_builddir = @abs_top_builddir@ | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # where the binary should be
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											2001-11-26 16:05:19 +00:00
										 |  |  | BINDIR = $(EROOTDIR)/bin | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # where YAP should look for libraries
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											2010-06-01 00:38:42 +01:00
										 |  |  | LIBDIR=@libdir@ | 
					
						
							|  |  |  | YAPLIBDIR=@libdir@/Yap | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | CC=@CC@ | 
					
						
							| 
									
										
										
										
											2010-06-21 11:54:21 +01:00
										 |  |  | CFLAGS= @SHLIB_CFLAGS@ $(YAP_EXTRAS) $(DEFS) -I$(srcdir) -I../.. -I$(srcdir)/../../include | 
					
						
							| 
									
										
										
										
											2010-12-30 22:14:45 -06:00
										 |  |  | LDFLAGS=@LDFLAGS@ | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | # You shouldn't need to change what follows.
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | INSTALL=@INSTALL@ | 
					
						
							|  |  |  | INSTALL_DATA=@INSTALL_DATA@ | 
					
						
							|  |  |  | INSTALL_PROGRAM=@INSTALL_PROGRAM@ | 
					
						
							|  |  |  | SHELL=/bin/sh | 
					
						
							|  |  |  | RANLIB=@RANLIB@ | 
					
						
							|  |  |  | srcdir=@srcdir@ | 
					
						
							| 
									
										
										
										
											2010-06-14 10:36:13 +01:00
										 |  |  | SO=@SO@ | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | #4.1VPATH=@srcdir@:@srcdir@/OPTYap
 | 
					
						
							|  |  |  | CWD=$(PWD) | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-01 12:45:21 -05:00
										 |  |  | OBJS=regexp.o @NO_BUILTIN_REGEXP@ regcomp.o regexec.o regerror.o regfree.o | 
					
						
							| 
									
										
										
										
											2010-06-14 16:49:46 +01:00
										 |  |  | SOBJS=regexp.@SO@  @NO_BUILTIN_REGEXP@ regcomp.@SO@ regexec.@SO@ regerror.@SO@ regfree.@SO@  | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #in some systems we just create a single object, in others we need to
 | 
					
						
							|  |  |  | # create a libray
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-11-12 19:53:52 +00:00
										 |  |  | all: $(SOBJS) | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-03-12 16:30:23 +00:00
										 |  |  | regexp.o: $(srcdir)/regexp.c  @NO_BUILTIN_REGEXP@ $(srcdir)/regex2.h  $(srcdir)/engine.c | 
					
						
							| 
									
										
										
										
											2010-06-21 11:54:21 +01:00
										 |  |  | 	$(CC) -c $(CFLAGS) $(srcdir)/regexp.c -o regexp.o | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-03-12 15:54:01 +00:00
										 |  |  | regcomp.o: $(srcdir)/regcomp.c $(srcdir)/regex2.h | 
					
						
							| 
									
										
										
										
											2010-06-21 11:54:21 +01:00
										 |  |  | 	$(CC) -c $(CFLAGS) $(srcdir)/regcomp.c -o regcomp.o | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | regerror.o: $(srcdir)/regerror.c | 
					
						
							| 
									
										
										
										
											2010-06-21 11:54:21 +01:00
										 |  |  | 	$(CC) -c $(CFLAGS) $(srcdir)/regerror.c -o regerror.o | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-03-12 15:54:01 +00:00
										 |  |  | regfree.o: $(srcdir)/regfree.c $(srcdir)/regex2.h | 
					
						
							| 
									
										
										
										
											2010-06-21 11:54:21 +01:00
										 |  |  | 	$(CC) -c $(CFLAGS) $(srcdir)/regfree.c -o regfree.o | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | regexec.o: $(srcdir)/regexec.c | 
					
						
							| 
									
										
										
										
											2010-06-21 11:54:21 +01:00
										 |  |  | 	$(CC) -c $(CFLAGS) $(srcdir)/regexec.c -o regexec.o | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-14 10:36:13 +01:00
										 |  |  | @DO_SECOND_LD@%.@SO@: %.o | 
					
						
							| 
									
										
										
										
											2010-12-30 22:14:45 -06:00
										 |  |  | @DO_SECOND_LD@	@SHLIB_LD@ $(LDFLAGS) -o $@ $<  @EXTRA_LIBS_FOR_DLLS@ | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-14 10:36:13 +01:00
										 |  |  | @DO_SECOND_LD@regexp.@SO@: regexp.o @MERGE_DLL_OBJS@ regcomp.o regerror.o regfree.o regexec.o | 
					
						
							| 
									
										
										
										
											2010-12-30 22:14:45 -06:00
										 |  |  | @DO_SECOND_LD@	@SHLIB_LD@ $(LDFLAGS) -o regexp.@SO@ regexp.o  @EXTRA_LIBS_FOR_DLLS@ @MERGE_DLL_OBJS@ regcomp.o regerror.o regfree.o regexec.o  | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-14 10:36:13 +01:00
										 |  |  | @DO_SECOND_LD@regcomp.@SO@: regcomp.o @MERGE_DLL_OBJS@ regfree.o | 
					
						
							| 
									
										
										
										
											2010-12-30 22:14:45 -06:00
										 |  |  | @DO_SECOND_LD@	@SHLIB_LD@ $(LDFLAGS) -o regcomp.@SO@ regcomp.o @MERGE_DLL_OBJS@ regfree.o @EXTRA_LIBS_FOR_DLLS@ | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-14 10:36:13 +01:00
										 |  |  | @DO_SECOND_LD@regerror.@SO@: regerror.o | 
					
						
							| 
									
										
										
										
											2010-12-30 22:14:45 -06:00
										 |  |  | @DO_SECOND_LD@	@SHLIB_LD@ $(LDFLAGS) -o regerror.@SO@ regerror.o @EXTRA_LIBS_FOR_DLLS@ | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-14 10:36:13 +01:00
										 |  |  | @DO_SECOND_LD@regfree.@SO@: regfree.o | 
					
						
							| 
									
										
										
										
											2010-12-30 22:14:45 -06:00
										 |  |  | @DO_SECOND_LD@	@SHLIB_LD@ $(LDFLAGS) -o regfree.@SO@ regfree.o @EXTRA_LIBS_FOR_DLLS@ | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-14 10:36:13 +01:00
										 |  |  | @DO_SECOND_LD@regexec.@SO@: regexec.o | 
					
						
							| 
									
										
										
										
											2010-12-30 22:14:45 -06:00
										 |  |  | @DO_SECOND_LD@	@SHLIB_LD@ $(LDFLAGS) -o regexec.@SO@ regexec.o @EXTRA_LIBS_FOR_DLLS@ | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | install: all | 
					
						
							| 
									
										
										
										
											2010-06-01 00:38:42 +01:00
										 |  |  | 	$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(YAPLIBDIR) | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | clean: | 
					
						
							| 
									
										
										
										
											2001-09-06 16:58:49 +00:00
										 |  |  | 	rm -f *.o *~ $(OBJS) $(SOBJS) *.BAK | 
					
						
							| 
									
										
										
										
											2001-04-09 19:54:03 +00:00
										 |  |  | 
 |