/trunk/Examples/guile/Makefile.in
Autoconf | 40 lines | 25 code | 11 blank | 4 comment | 2 complexity | ed0a0583230fa1ed4e0d4e887b635382 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- # Makefile for Guile. Used by all of the example programs.
- subdirs = simple matrix port constants multimap multivalue
- top_srcdir = @top_srcdir@
- SWIG = ../$(top_srcdir)/preinst-swig
- CC = @CC@
- CXX = @CXX@
- CFLAGS = @PLATFLAGS@
- GUILEINCLUDE = @GUILEINCLUDE@
- GUILELINK = @GUILELINK@
- SWIGOPT =
- WRAP = $(IFILE:.i=_wrap.c)
- CXXWRAP = $(IFILE:.i=_wrap.cxx)
- SO = @SO@
- all:
- for d in $(subdirs) ; do (cd $$d ; $(MAKE)) ; done
- clean::
- for d in $(subdirs) ; do (cd $$d ; $(MAKE) clean) ; done
- rm -f *~ .~*
- guile_clean:
- rm -f *.@OBJEXT@ *$(SO) *_wrap* *~ .~* core my-guile $(TARGET)
- # This is meant to be used w/ "make -f ../Makefile" from subdirs.
- # Doesn't make sense to use it from here.
- sub-all::
- $(SWIG) -guile $(SWIGOPT) $(IFILE)
- $(CC) $(CFLAGS) -o $(TARGET) $(SRCS) $(WRAP) $(GUILEINCLUDE) $(GUILELINK)
- sub-all-cxx::
- $(SWIG) -c++ -guile $(SWIGOPT) $(IFILE)
- $(CXX) $(CFLAGS) -o $(TARGET) $(SRCS) $(CXXWRAP) $(GUILEINCLUDE) $(GUILELINK)
- # Makefile ends here