view libinterp/interpfcn/module.mk @ 15195:2fc554ffbc28

split libinterp from src * libinterp: New directory. Move all files from src directory here except Makefile.am, main.cc, main-cli.cc, mkoctfile.in.cc, mkoctfilr.in.sh, octave-config.in.cc, octave-config.in.sh. * libinterp/Makefile.am: New file, extracted from src/Makefile.am. * src/Makefile.am: Delete everything except targets and definitions needed to build and link main and utility programs. * Makefile.am (SUBDIRS): Include libinterp in the list. * autogen.sh: Run config-module.sh in libinterp/dldfcn directory, not src/dldfcn directory. * configure.ac (AC_CONFIG_SRCDIR): Use libinterp/octave.cc, not src/octave.cc. (DL_LDFLAGS, LIBOCTINTERP): Use libinterp, not src. (AC_CONFIG_FILES): Include libinterp/Makefile in the list. * find-docstring-files.sh: Look in libinterp, not src. * gui/src/Makefile.am (liboctgui_la_CPPFLAGS): Find header files in libinterp, not src.
author John W. Eaton <jwe@octave.org>
date Sat, 18 Aug 2012 16:23:39 -0400
parents src/interpfcn/module.mk@03381a36f70d
children cd8248cc6020
line wrap: on
line source

EXTRA_DIST += \
  interpfcn/module.mk \
  interpfcn/defaults.in.h \
  interpfcn/graphics.in.h

INTERPFCN_INCLUDES = \
  interpfcn/data.h \
  interpfcn/debug.h \
  interpfcn/defun.h \
  interpfcn/dirfns.h \
  interpfcn/error.h \
  interpfcn/file-io.h \
  interpfcn/help.h \
  interpfcn/input.h \
  interpfcn/load-path.h \
  interpfcn/load-save.h \
  interpfcn/ls-oct-ascii.h \
  interpfcn/oct-hist.h \
  interpfcn/pager.h \
  interpfcn/pr-output.h \
  interpfcn/profiler.h \
  interpfcn/sighandlers.h \
  interpfcn/symtab.h \
  interpfcn/sysdep.h \
  interpfcn/toplev.h \
  interpfcn/utils.h \
  interpfcn/variables.h

INTERPFCN_SRC = \
  interpfcn/data.cc \
  interpfcn/debug.cc \
  interpfcn/defaults.cc \
  interpfcn/defun.cc \
  interpfcn/dirfns.cc \
  interpfcn/error.cc \
  interpfcn/file-io.cc \
  interpfcn/graphics.cc \
  interpfcn/help.cc \
  interpfcn/input.cc \
  interpfcn/load-path.cc \
  interpfcn/load-save.cc \
  interpfcn/ls-oct-ascii.cc \
  interpfcn/oct-hist.cc \
  interpfcn/pager.cc \
  interpfcn/pr-output.cc \
  interpfcn/profiler.cc \
  interpfcn/sighandlers.cc \
  interpfcn/symtab.cc \
  interpfcn/sysdep.cc \
  interpfcn/toplev.cc \
  interpfcn/utils.cc \
  interpfcn/variables.cc

## defaults.h and graphics.h must depend on Makefile.  Calling configure
## may change default/config values.  However, calling configure will also
## regenerate the Makefiles from Makefile.am and trigger the rules below.
interpfcn/defaults.h: interpfcn/defaults.in.h Makefile
	@$(do_subst_default_vals)

interpfcn/graphics.h: interpfcn/graphics.in.h genprops.awk Makefile
	$(AWK) -f $(srcdir)/genprops.awk $< > $@-t
	mv $@-t $@

interpfcn/graphics-props.cc: interpfcn/graphics.in.h genprops.awk Makefile
	$(AWK) -v emit_graphics_props=1 -f $(srcdir)/genprops.awk $< > $@-t
	mv $@-t $@

## FIXME: Do these rules work correctly after transplant to interpfcn/ dir?
__fltk_uigetfile__.lo __fltk_uigetfile__.o: \
  AM_CXXFLAGS := $(filter-out $(DLL_CXXDEFS), $(AM_CXXFLAGS) $(GRAPHICS_CFLAGS))

__init_fltk__.lo __init_fltk__.o: \
  AM_CXXFLAGS := $(filter-out $(DLL_CXXDEFS), $(AM_CXXFLAGS) $(GRAPHICS_CFLAGS))

noinst_LTLIBRARIES += interpfcn/libinterpfcn.la

interpfcn_libinterpfcn_la_SOURCES = $(INTERPFCN_SRC)