/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. subdirs = simple matrix port constants multimap multivalue
  3. top_srcdir = @top_srcdir@
  4. SWIG = ../$(top_srcdir)/preinst-swig
  5. CC = @CC@
  6. CXX = @CXX@
  7. CFLAGS = @PLATFLAGS@
  8. GUILEINCLUDE = @GUILEINCLUDE@
  9. GUILELINK = @GUILELINK@
  10. SWIGOPT =
  11. WRAP = $(IFILE:.i=_wrap.c)
  12. CXXWRAP = $(IFILE:.i=_wrap.cxx)
  13. SO = @SO@
  14. all:
  15. for d in $(subdirs) ; do (cd $$d ; $(MAKE)) ; done
  16. clean::
  17. for d in $(subdirs) ; do (cd $$d ; $(MAKE) clean) ; done
  18. rm -f *~ .~*
  19. guile_clean:
  20. rm -f *.@OBJEXT@ *$(SO) *_wrap* *~ .~* core my-guile $(TARGET)
  21. # This is meant to be used w/ "make -f ../Makefile" from subdirs.
  22. # Doesn't make sense to use it from here.
  23. sub-all::
  24. $(SWIG) -guile $(SWIGOPT) $(IFILE)
  25. $(CC) $(CFLAGS) -o $(TARGET) $(SRCS) $(WRAP) $(GUILEINCLUDE) $(GUILELINK)
  26. sub-all-cxx::
  27. $(SWIG) -c++ -guile $(SWIGOPT) $(IFILE)
  28. $(CXX) $(CFLAGS) -o $(TARGET) $(SRCS) $(CXXWRAP) $(GUILEINCLUDE) $(GUILELINK)
  29. # Makefile ends here