1 | # Makedefs.in -- input for the common Makefile definitions |
---|
2 | # Copyright (C) 1998 John Harper <john@dcs.warwick.ac.uk> |
---|
3 | # $Id: Makedefs.in,v 1.1.1.2 2001-03-13 16:43:20 ghudson Exp $ |
---|
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@ |
---|
40 | |
---|
41 | host_type=@host@ |
---|
42 | repdir=@repdir@ |
---|
43 | replispdir=@replispdir@ |
---|
44 | repexecdir=@repexecdir@ |
---|
45 | repcommonexecdir=@repcommonexecdir@ |
---|
46 | repdocfile=@repdocfile@ |
---|
47 | |
---|
48 | CC=@CC@ |
---|
49 | LIBTOOL=@LIBTOOL@ |
---|
50 | MAKEDEP=@MAKEDEP@ |
---|
51 | CPPFLAGS=-DHAVE_CONFIG_H -I. -I$(top_srcdir)/src -I.. @CPPFLAGS@ |
---|
52 | CFLAGS=@CFLAGS@ |
---|
53 | LDFLAGS=@LDFLAGS@ |
---|
54 | LIBS=@LIBS@ |
---|
55 | LIBOBJS=@LIBOBJS@ |
---|
56 | EXTRA_LIBOBJS=@EXTRA_LIBOBJS@ |
---|
57 | READLINE_LIBS=@READLINE_LIBS@ |
---|
58 | GMP_LIBS=@GMP_LIBS@ |
---|
59 | GDBM_LIBS=@GDBM_LIBS@ |
---|
60 | ALLOCA=@ALLOCA@ |
---|
61 | |
---|
62 | DESTDIR= |
---|
63 | INSTALL=@INSTALL@ |
---|
64 | INSTALL_DATA=@INSTALL_DATA@ |
---|
65 | INSTALL_PROGRAM=@INSTALL_PROGRAM@ |
---|
66 | INSTALL_SCRIPT=@INSTALL_SCRIPT@ |
---|
67 | |
---|
68 | MAKEINFO = makeinfo |
---|
69 | MAKEINFOFLAGS = |
---|
70 | TEXI2DVI = texi2dvi |
---|
71 | TEXI2PDF = texi2pdf |
---|
72 | DVIPS = dvips |
---|
73 | |
---|
74 | HAVE_X11=@HAVE_X11@ |
---|
75 | HAVE_UNIX=@HAVE_UNIX@ |
---|
76 | |
---|
77 | .PHONY: clean realclean install |
---|
78 | |
---|
79 | rep_prog = $(top_builddir)/libtool --mode=execute $(top_builddir)/src/rep |
---|
80 | COMPILE_ENV = REPLISPDIR=$(top_builddir)/lisp \ |
---|
81 | REP_DL_LOAD_PATH=$(top_builddir)/src/.libexec \ |
---|
82 | REPDOCFILE=$(top_builddir)/DOC |
---|
83 | |
---|
84 | include $(top_srcdir)/rules.mk |
---|
85 | rep_LIBTOOL=@LIBTOOL@ |
---|
86 | |
---|
87 | # Rule for ``normal'' C objects |
---|
88 | %.o : %.c |
---|
89 | $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $< |
---|
90 | |
---|
91 | # Rule for ``normal'' executables |
---|
92 | % : %.c |
---|
93 | $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) |
---|
94 | |
---|
95 | # Rule for libtool controlled C objects |
---|
96 | %.lo : %.c |
---|
97 | $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $< |
---|
98 | |
---|
99 | # Rule for dlopen'able C objects |
---|
100 | %.la : %.c |
---|
101 | $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $< |
---|
102 | $(rep_DL_LD) $(CPPFLAGS) $(CFLAGS) -o $@ $*.lo |
---|
103 | |
---|
104 | # Build dependancy files from C source files. |
---|
105 | .%.d : %.c |
---|
106 | $(SHELL) -ec '$(MAKEDEP) $(CPPFLAGS) $< \ |
---|
107 | | sed '\''s/$*\.o/& $*.lo .$*\.d/g'\'' > $@' |
---|