2
# Makefile.sub.in - Common rules and definitions
4
# $Id: Makefile.comm.in,v 1.5.10.2 2002/01/18 23:17:39 icastle Exp $
6
# Copyright (C) 1998 Cees de Groot <cg@sgmltools.org>
12
exec_prefix=@exec_prefix@
24
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
25
INSTALL_DATA = @INSTALL_DATA@
26
INSTALL_SCRIPT = @INSTALL_SCRIPT@
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)
38
.SUFFIXES: .cxx .c .o .m4 .msg .lo
41
$(CXX) $(CXXFLAGS) -c $<
44
@$(LIBTOOL) --mode=compile $(CXX) $(CXXFLAGS) -c $<
50
@$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $<
54
$(PERL) $(srcdir)/../lib/instmac.pl $< >$@
58
$(PERL) -w $(srcdir)/../msggen.pl $(MSGGENFLAGS) $<
61
$(PERL) -w $(srcdir)/../msggen.pl $(MSGGENFLAGS) $<
63
depend_src: depend.temp
64
mv depend.temp Makefile.dep
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
79
test -w $@ || co -u $@