[15282] | 1 | # Makedefs.in -- input for the common Makefile definitions |
---|
| 2 | # Copyright (C) 1998 John Harper <john@dcs.warwick.ac.uk> |
---|
[18390] | 3 | # $Id: Makedefs.in,v 1.1.1.4 2003-01-05 00:23:54 ghudson Exp $ |
---|
[15282] | 4 | # |
---|
| 5 | # This file is part of Jade. |
---|
| 6 | # |
---|
| 7 | # Jade is free software; you can redistribute it and/or modify it |
---|
| 8 | # under the terms of the GNU General Public License as published by |
---|
| 9 | # the Free Software Foundation; either version 2, or (at your option) |
---|
| 10 | # any later version. |
---|
| 11 | # |
---|
| 12 | # Jade is distributed in the hope that it will be useful, but |
---|
| 13 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 15 | # GNU General Public License for more details. |
---|
| 16 | # |
---|
| 17 | # You should have received a copy of the GNU General Public License |
---|
| 18 | # along with Jade; see the file COPYING. If not, write to |
---|
| 19 | # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
| 20 | |
---|
| 21 | version=@version@ |
---|
| 22 | libversion=@libversion@ |
---|
| 23 | SHELL=/bin/sh |
---|
| 24 | |
---|
| 25 | top_srcdir=@top_srcdir@ |
---|
| 26 | srcdir=@srcdir@ |
---|
| 27 | |
---|
| 28 | prefix=@prefix@ |
---|
| 29 | exec_prefix=@exec_prefix@ |
---|
| 30 | datadir=@datadir@ |
---|
| 31 | bindir=@bindir@ |
---|
| 32 | includedir=@includedir@ |
---|
| 33 | infodir=@infodir@ |
---|
| 34 | libdir=@libdir@ |
---|
| 35 | libexecdir=@libexecdir@ |
---|
| 36 | localstatedir=@localstatedir@ |
---|
| 37 | mandir=@mandir@ |
---|
| 38 | sharedstatedir=@sharedstatedir@ |
---|
| 39 | aclocaldir=@aclocaldir@ |
---|
[17361] | 40 | emacssitelispdir=@emacssitelispdir@ |
---|
[15282] | 41 | |
---|
| 42 | host_type=@host@ |
---|
| 43 | repdir=@repdir@ |
---|
| 44 | replispdir=@replispdir@ |
---|
| 45 | repexecdir=@repexecdir@ |
---|
| 46 | repcommonexecdir=@repcommonexecdir@ |
---|
| 47 | repdocfile=@repdocfile@ |
---|
| 48 | |
---|
| 49 | CC=@CC@ |
---|
| 50 | LIBTOOL=@LIBTOOL@ |
---|
| 51 | MAKEDEP=@MAKEDEP@ |
---|
| 52 | CPPFLAGS=-DHAVE_CONFIG_H -I. -I$(top_srcdir)/src -I.. @CPPFLAGS@ |
---|
| 53 | CFLAGS=@CFLAGS@ |
---|
| 54 | LDFLAGS=@LDFLAGS@ |
---|
| 55 | LIBS=@LIBS@ |
---|
| 56 | LIBOBJS=@LIBOBJS@ |
---|
| 57 | EXTRA_LIBOBJS=@EXTRA_LIBOBJS@ |
---|
| 58 | READLINE_LIBS=@READLINE_LIBS@ |
---|
| 59 | GMP_LIBS=@GMP_LIBS@ |
---|
| 60 | GDBM_LIBS=@GDBM_LIBS@ |
---|
| 61 | ALLOCA=@ALLOCA@ |
---|
| 62 | |
---|
| 63 | DESTDIR= |
---|
| 64 | INSTALL=@INSTALL@ |
---|
| 65 | INSTALL_DATA=@INSTALL_DATA@ |
---|
| 66 | INSTALL_PROGRAM=@INSTALL_PROGRAM@ |
---|
| 67 | INSTALL_SCRIPT=@INSTALL_SCRIPT@ |
---|
| 68 | |
---|
| 69 | MAKEINFO = makeinfo |
---|
| 70 | MAKEINFOFLAGS = |
---|
| 71 | TEXI2DVI = texi2dvi |
---|
| 72 | TEXI2PDF = texi2pdf |
---|
| 73 | DVIPS = dvips |
---|
| 74 | |
---|
| 75 | HAVE_X11=@HAVE_X11@ |
---|
| 76 | HAVE_UNIX=@HAVE_UNIX@ |
---|
| 77 | |
---|
| 78 | .PHONY: clean realclean install |
---|
| 79 | |
---|
[18390] | 80 | rep_prog = $(top_builddir)/src/rep |
---|
[15282] | 81 | COMPILE_ENV = REPLISPDIR=$(top_builddir)/lisp \ |
---|
| 82 | REP_DL_LOAD_PATH=$(top_builddir)/src/.libexec \ |
---|
| 83 | REPDOCFILE=$(top_builddir)/DOC |
---|
| 84 | |
---|
[15761] | 85 | include $(top_srcdir)/rules.mk |
---|
| 86 | rep_LIBTOOL=@LIBTOOL@ |
---|
| 87 | |
---|
[15282] | 88 | # Rule for ``normal'' C objects |
---|
| 89 | %.o : %.c |
---|
| 90 | $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $< |
---|
| 91 | |
---|
| 92 | # Rule for ``normal'' executables |
---|
| 93 | % : %.c |
---|
| 94 | $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) |
---|
| 95 | |
---|
| 96 | # Rule for libtool controlled C objects |
---|
| 97 | %.lo : %.c |
---|
| 98 | $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $< |
---|
| 99 | |
---|
| 100 | # Rule for dlopen'able C objects |
---|
| 101 | %.la : %.c |
---|
| 102 | $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $< |
---|
[15761] | 103 | $(rep_DL_LD) $(CPPFLAGS) $(CFLAGS) -o $@ $*.lo |
---|
[15282] | 104 | |
---|
| 105 | # Build dependancy files from C source files. |
---|
| 106 | .%.d : %.c |
---|
| 107 | $(SHELL) -ec '$(MAKEDEP) $(CPPFLAGS) $< \ |
---|
| 108 | | sed '\''s/$*\.o/& $*.lo .$*\.d/g'\'' > $@' |
---|