1 | # Makedefs.in -- input for the common Makefile definitions |
---|
2 | # $Id: Makedefs.in,v 1.5 2003-01-05 00:47:59 ghudson Exp $ |
---|
3 | # |
---|
4 | # Copyright (C) 1999 John Harper <john@dcs.warwick.ac.uk> |
---|
5 | # |
---|
6 | # This file is part of sawmill. |
---|
7 | # |
---|
8 | # sawmill is free software; you can redistribute it and/or modify it |
---|
9 | # under the terms of the GNU General Public License as published by |
---|
10 | # the Free Software Foundation; either version 2, or (at your option) |
---|
11 | # any later version. |
---|
12 | # |
---|
13 | # sawmill is distributed in the hope that it will be useful, but |
---|
14 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | # GNU General Public License for more details. |
---|
17 | # |
---|
18 | # You should have received a copy of the GNU General Public License |
---|
19 | # along with sawmill; see the file COPYING. If not, write to |
---|
20 | # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
21 | |
---|
22 | version=@version@ |
---|
23 | subversion=@subversion@ |
---|
24 | rep_version=@REP_VERSION@ |
---|
25 | SHELL=/bin/sh |
---|
26 | |
---|
27 | prefix=@prefix@ |
---|
28 | exec_prefix=@exec_prefix@ |
---|
29 | datadir=@datadir@ |
---|
30 | bindir=@bindir@ |
---|
31 | includedir=@includedir@ |
---|
32 | infodir=@infodir@ |
---|
33 | libdir=@libdir@ |
---|
34 | libexecdir=@libexecdir@ |
---|
35 | localstatedir=@localstatedir@ |
---|
36 | mandir=@mandir@ |
---|
37 | sharedstatedir=@sharedstatedir@ |
---|
38 | |
---|
39 | sawfishdir=@sawfishdir@ |
---|
40 | lispdir=@lispdir@ |
---|
41 | nokogiridir=@nokogiridir@ |
---|
42 | localedir=@localedir@ |
---|
43 | sawfishexecdir=@sawfishexecdir@ |
---|
44 | host_type=@host@ |
---|
45 | GNOMEDIR=/usr/athena |
---|
46 | |
---|
47 | CC=@CC@ |
---|
48 | MAKEDEP=@MAKEDEP@ |
---|
49 | CPPFLAGS=-DHAVE_CONFIG_H -DSAWFISH -I. -I.. @CPPFLAGS@ |
---|
50 | CFLAGS=@CFLAGS@ |
---|
51 | LDFLAGS=@LDFLAGS@ |
---|
52 | LIBS=@LIBS@ |
---|
53 | #LIBOBJS=@LIBOBJS@ |
---|
54 | LIBOBJS= |
---|
55 | X11_CFLAGS=@X_CFLAGS@ @XFT_CFLAGS@ |
---|
56 | X11_LIBS=@X_PRE_LIBS@ -lX11 @X_LIBS@ @X_EXTRA_LIBS@ |
---|
57 | EXTRA_X11_LIBS=@XINERAMA_LIBS@ @XFT_LIBS@ -lXext |
---|
58 | IMLIB_CFLAGS=@IMLIB_CFLAGS@ |
---|
59 | IMLIB_LIBS=@IMLIB_LIBS@ |
---|
60 | GDK_PIXBUF_CFLAGS=@GDK_PIXBUF_CFLAGS@ |
---|
61 | GDK_PIXBUF_LIBS=@GDK_PIXBUF_LIBS@ |
---|
62 | IMAGE_LIBS=@IMAGE_LIBS@ |
---|
63 | IMAGE_CFLAGS=@IMAGE_CFLAGS@ |
---|
64 | GTK_CFLAGS=@GTK_CFLAGS@ |
---|
65 | GTK_LIBS=@GTK_LIBS@ |
---|
66 | REP_CFLAGS=@REP_CFLAGS@ |
---|
67 | REP_LIBS=@REP_LIBS@ |
---|
68 | AUDIOFILE_CFLAGS=@AUDIOFILE_CFLAGS@ |
---|
69 | AUDIOFILE_LIBS=@AUDIOFILE_LIBS@ |
---|
70 | ESD_CFLAGS=@ESD_CFLAGS@ |
---|
71 | ESD_LIBS=@ESD_LIBS@ |
---|
72 | LINGUAS=@LINGUAS@ |
---|
73 | INTL_LIBS=@INTL_LIBS@ |
---|
74 | |
---|
75 | DESTDIR= |
---|
76 | INSTALL=@INSTALL@ |
---|
77 | INSTALL_DATA=@INSTALL_DATA@ |
---|
78 | INSTALL_PROGRAM=@INSTALL_PROGRAM@ |
---|
79 | INSTALL_SCRIPT=@INSTALL_SCRIPT@ |
---|
80 | |
---|
81 | .PHONY: clean realclean install |
---|
82 | |
---|
83 | repexecdir=@REP_EXECDIR@ |
---|
84 | include $(repexecdir)/rules.mk |
---|
85 | |
---|
86 | %.o : %.c |
---|
87 | $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $< |
---|
88 | |
---|
89 | % : %.c |
---|
90 | $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) |
---|
91 | |
---|
92 | # This rule builds dependancy files from C source files. |
---|
93 | .%.d : %.c |
---|
94 | $(SHELL) -ec '$(MAKEDEP) $(CPPFLAGS) $(CFLAGS) $< \ |
---|
95 | | sed '\''s/$*\.o/& $*.lo .$*\.d/g'\'' > $@' |
---|
96 | |
---|
97 | # Always use GNU gettext implementation |
---|
98 | REP_MSGFMT=@REP_MSGFMT@ |
---|
99 | |
---|
100 | # used when compiling/running lisp code |
---|
101 | REP_ENVIRON=REP_DL_LOAD_PATH=$(top_builddir)/src/.libexec \ |
---|
102 | REP_GTK_DONT_INITIALIZE=1 |
---|
103 | |
---|
104 | %.mo : %.po |
---|
105 | $(REP_MSGFMT) $(MSGFMTFLAGS) -o $@ $< |
---|