~ubuntu-branches/ubuntu/trusty/openjade1.3/trusty

« back to all changes in this revision

Viewing changes to Makefile.comm.in

  • Committer: Bazaar Package Importer
  • Author(s): Yann Dirson
  • Date: 2002-04-09 00:01:50 UTC
  • Revision ID: james.westby@ubuntu.com-20020409000150-r9rkyalxlhvf9ba3
Tags: upstream-1.3.1
ImportĀ upstreamĀ versionĀ 1.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
#  Makefile.sub.in - Common rules and definitions
 
3
#
 
4
#  $Id: Makefile.comm.in,v 1.5.10.2 2002/01/18 23:17:39 icastle Exp $
 
5
#
 
6
#  Copyright (C) 1998 Cees de Groot <cg@sgmltools.org>
 
7
#
 
8
 
 
9
top_builddir=@TOP@
 
10
TOP=@TOP@
 
11
prefix=@prefix@
 
12
exec_prefix=@exec_prefix@
 
13
srcdir=@srcdir@
 
14
bindir=@bindir@
 
15
libdir=@libdir@
 
16
datadir=@datadir@
 
17
mandir=@mandir@
 
18
 
 
19
CXX=@CXX@
 
20
CC=@CC@
 
21
PERL=@PERL@
 
22
LIBTOOL=@LIBTOOL@
 
23
INSTALL=@INSTALL@
 
24
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
 
25
INSTALL_DATA = @INSTALL_DATA@
 
26
INSTALL_SCRIPT = @INSTALL_SCRIPT@
 
27
 
 
28
LIBOBJS=@LIBOBJS@
 
29
LIBS=@LIBS@
 
30
DEFS=@DEFS@ -DDEFAULT_SCHEME_BUILTINS=\"${datadir}/builtins.dsl\"
 
31
INCS=-I$(srcdir) -I$(srcdir)/../include $(INCLUDE)
 
32
CXXFLAGS=@CXXFLAGS@ $(INCS) $(DEBUG) $(DEFS)
 
33
CFLAGS=@CFLAGS@ $(DEBUG) $(DEFS)
 
34
LDFLAGS=@LDFLAGS@
 
35
MSGGENFLAGS=
 
36
CXXDEPGENFLAGS=-MM
 
37
 
 
38
.SUFFIXES: .cxx .c .o .m4 .msg .lo
 
39
 
 
40
.cxx.o:
 
41
        $(CXX) $(CXXFLAGS) -c $<
 
42
 
 
43
.cxx.lo:
 
44
        @$(LIBTOOL) --mode=compile $(CXX) $(CXXFLAGS) -c $<
 
45
 
 
46
.c.o:
 
47
        $(CC) $(CFLAGS) -c $<
 
48
 
 
49
.c.lo:
 
50
        @$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $<
 
51
 
 
52
.m4.cxx:
 
53
        rm -f $@
 
54
        $(PERL) $(srcdir)/../lib/instmac.pl $< >$@
 
55
        chmod -w $@
 
56
 
 
57
%.h %.cxx %.rc: %.msg
 
58
        $(PERL) -w $(srcdir)/../msggen.pl $(MSGGENFLAGS) $<
 
59
 
 
60
.msg.h:
 
61
        $(PERL) -w $(srcdir)/../msggen.pl $(MSGGENFLAGS) $<
 
62
 
 
63
depend_src: depend.temp
 
64
        mv depend.temp Makefile.dep
 
65
 
 
66
depend.temp: FORCE
 
67
        $(CXX) -MM $(CXXFLAGS) $(CXXDEPGENFLAGS) $(OBJS:.o=.cxx) \
 
68
          | sed -e 's; \([^/ ][^/ ]*\)/; $$(srcdir)/\1/;g' >depend.temp1
 
69
        cat depend.temp1 > depend.temp
 
70
        cat depend.temp1 | sed -e 's/\.o:/.lo:/g' >> depend.temp
 
71
        rm depend.temp1
 
72
 
 
73
clean: FORCE
 
74
        -rm -f $(CLEANFILES)
 
75
 
 
76
FORCE:
 
77
 
 
78
%: RCS/%,v
 
79
        test -w $@ || co -u $@