PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/guile/Makefile.in

#
Autoconf | 40 lines | 25 code | 11 blank | 4 comment | 2 complexity | ed0a0583230fa1ed4e0d4e887b635382 MD5 | raw file
 1# Makefile for Guile.  Used by all of the example programs.
 2
 3subdirs		= simple matrix port constants multimap multivalue
 4
 5top_srcdir	= @top_srcdir@
 6SWIG		= ../$(top_srcdir)/preinst-swig
 7CC		= @CC@
 8CXX		= @CXX@
 9CFLAGS		= @PLATFLAGS@
10GUILEINCLUDE	= @GUILEINCLUDE@
11GUILELINK	= @GUILELINK@
12SWIGOPT		=
13
14WRAP		= $(IFILE:.i=_wrap.c)
15CXXWRAP		= $(IFILE:.i=_wrap.cxx)
16
17SO		= @SO@
18
19all:
20	for d in $(subdirs) ; do (cd $$d ; $(MAKE)) ; done
21
22clean::
23	for d in $(subdirs) ; do (cd $$d ; $(MAKE) clean) ; done
24	rm -f *~ .~*
25
26guile_clean:
27	rm -f *.@OBJEXT@ *$(SO) *_wrap* *~ .~* core my-guile $(TARGET)
28
29# This is meant to be used w/ "make -f ../Makefile" from subdirs.
30# Doesn't make sense to use it from here.
31
32sub-all::
33	$(SWIG) -guile $(SWIGOPT) $(IFILE)
34	$(CC) $(CFLAGS) -o $(TARGET) $(SRCS) $(WRAP) $(GUILEINCLUDE) $(GUILELINK)
35
36sub-all-cxx::
37	$(SWIG) -c++ -guile $(SWIGOPT) $(IFILE)
38	$(CXX) $(CFLAGS) -o $(TARGET) $(SRCS) $(CXXWRAP) $(GUILEINCLUDE) $(GUILELINK)
39
40# Makefile ends here