home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / m / morpho.zip / morpho / src / Makefile < prev   
Makefile  |  1992-10-01  |  14KB  |  510 lines

  1. # Makefile generated by imake - do not edit!
  2. #
  3. # The cpp used on this machine replaces all newlines and multiple tabs and
  4. # spaces in a macro expansion with a single space.  Imake tries to compensate
  5. # for this, but is not always successful.
  6. #
  7.  
  8. # ---------------------------------------------------------------------------
  9. # Khoros Makefile generated from "Khoros.tmpl" and <Imakefile>
  10. #
  11. # Platform-specific parameters may be set in the appropriate .cf
  12. # configuration files.  Site-wide parameters may be set in the file
  13. # Site.def.  Full rebuilds are recommended if any parameters are changed.
  14. #
  15. # If your C preprocessor doesn't define any unique symbols, you'll need
  16. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  17. # "make Makefile", "make Makefiles", or "make World").
  18. #
  19. # If you absolutely can't get imake to work, you'll need to set the
  20. # variables at the top of each Makefile as well as the dependencies at the
  21. # bottom (makedepend will do this automatically).
  22. #
  23.  
  24. # -------------------------------------------------------------------------
  25. # platform-specific configuration parameters - edit sun.cf to change
  26.  
  27. # Beginning of Khoros Sun Library configuration file - sunLib.def.
  28.  
  29. # -------------------------------------------------------------------------
  30. # Khoros site-specific configuration parameters - edit Site.def to change
  31.  
  32. # Beginning of Khoros site configuration file - Site.def.
  33.  
  34. # -------------------------------------------------------------------------
  35. # Khoros Template configuration parameters
  36.  
  37.             SHELL = /bin/sh
  38.  
  39.               TOP = /research/devel/khaos/src
  40.       CURRENT_DIR = .
  41.  
  42.                AR = ar cq
  43.   BOOTSTRAPCFLAGS =
  44.                CC = cc
  45.             LIBCC = cc
  46.              YACC = yacc
  47.               LEX = lex
  48.  
  49.                FC = /usr/lang/f77 -O
  50.       FDEBUGFLAGS =
  51.           FCFLAGS =  $(FDEBUGFLAGS)
  52.    LIBFDEBUGFLAGS =
  53.      LIBFCOPTIONS = -PIC
  54.         FLIBFLAGS = $(LIBFDEBUGFLAGS) $(LIBFCOPTIONS)
  55.  
  56.          COMPRESS = compress
  57.               CPP = /lib/cpp $(STD_CPP_DEFINES)
  58.     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  59.           INSTALL = install
  60.                LD = $(CC)
  61.             LIBLD = ld
  62.                LN = ln -s
  63.              MAKE = make
  64.                MV = mv
  65.                CP = cp
  66.               SED = sed
  67.            RANLIB = ranlib
  68.   RANLIBINSTFLAGS =
  69.                RM = rm -f
  70.      STD_INCLUDES =
  71.         XINCLUDES =
  72.    EXTRA_INCLUDES =
  73.   STD_CPP_DEFINES =
  74.       STD_DEFINES =
  75.      LOCALDEFINES =
  76.  EXTRA_LOAD_FLAGS =
  77.              TAGS = ctags
  78.  
  79.     SHAREDCODEDEF = -DSHAREDCODE
  80.          SHLIBDEF = -DSUNSHLIB
  81.  
  82.      KHOROS_DEFINES = -DVFORK -DTEMPNAM -DPUTENV  -DRANDOM   -DWAIT3
  83.  
  84.     TRANSPORT_DEFINES =
  85.  
  86.      INSTPGMFLAGS = -s
  87.  
  88.      INSTBINFLAGS = -m 0775
  89.      INSTLIBFLAGS = -m 0664
  90.      INSTINCFLAGS = -m 0444
  91.      INSTMANFLAGS = -m 0444
  92.      INSTSCRIPTFLAGS = -m 0755
  93.  
  94.           DESTDIR =
  95.  
  96.      TOP_INCLUDES = -I$(INCROOT)
  97.  
  98.       CDEBUGFLAGS = -O
  99.    LIBCDEBUGFLAGS = -O
  100.         CCOPTIONS = -Bdynamic
  101.      LIBCCOPTIONS = -PIC
  102.  
  103.       ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(TOOLBOXINCLUDE) $(XINCLUDES) $(EXTRA_INCLUDES)
  104.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(KHOROS_DEFINES) $(TRANSPORT_DEFINES) $(SIGNAL_DEFINES) $(TOOLBOXDEFINES) $(LOCALDEFINES) $(DEFINES)
  105.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  106.         CLIBFLAGS = $(LIBCDEBUGFLAGS) $(LIBCCOPTIONS) $(ALLDEFINES)
  107.            YFLAGS = -d
  108.            LFLAGS = -n
  109.         LDOPTIONS = $(ALLLIBDIRS) $(TOOLBOXLIBDIR) $(CDEBUGFLAGS) $(CCOPTIONS)
  110.      LIBLDOPTIONS = -assert pure-text
  111.  
  112.         MACROFILE = sun.cf
  113.            RM_CMD = $(RM) *.o core *.a tags TAGS
  114.  
  115.     IMAKE_DEFINES =
  116.  
  117.          IRULESRC = $(CONFIGDIR)
  118.         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  119.  
  120.      ICONFIGFILES = $(IRULESRC)/Khoros.tmpl $(IRULESRC)/Khoros.rules \
  121.             $(IRULESRC)/Library.def $(IRULESRC)/Site.def \
  122.             $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  123.  
  124.           PATHSEP = /
  125.  
  126.   LOADERLIBPREFIX = -L
  127.  
  128.        ALLLIBDIRS = $(LOADERLIBPREFIX)$(KLIBDIR) $(LOADERLIBPREFIX)$(FORLIBDIR)
  129.  
  130.            BINDIR = /research/devel/khaos/bin
  131.           INCROOT = /research/devel/khaos/include
  132.           KLIBDIR = /research/devel/khaos/lib
  133.         FORLIBDIR = /usr/lang/SC1.0.1
  134.           XLIBDIR = XLibDir
  135.       EXTRALIBDIR = ExtraLibDir
  136.         CONFIGDIR = /research/devel/khaos/repos/config/imake_conf
  137.  
  138.            MANDIR = /research/devel/khaos/man/man1
  139.         LIBMANDIR = /research/devel/khaos/man/man3
  140.  
  141.             SOREV = 1.5
  142.  
  143.      INSTAPPFLAGS = $(INSTDATFLAGS)
  144.  
  145.             IMAKE = makemake
  146.            DEPEND = makedepend
  147.             IMKMF = imkmf
  148.          BASENAME = /usr/bin/basename
  149.         CONFIGSRC = /research/devel/khaos/repos/config/imake_conf
  150.         DEPENDSRC = $(TOP)/public_domain/makedepend
  151.          IMAKESRC = /research/devel/khaos/config
  152.       MAKEMAKESRC = $(TOP)/scripts/tools/makemake
  153.         SCRIPTSRC = /research/devel/khaos/repos/config/scripts
  154.     FORTRANSCRIPT =
  155.  
  156.       GHOSTWRITER = ghostwriter
  157.       GHOSTREADER = ghostreader
  158.          GHOSTANS = ./ghost.ans
  159.        PROTOFLAGS =
  160.  
  161. # Beginning of the Khoros data transport definitions
  162.  
  163. # Beginning of Khoros library configuration file -  Library.def.
  164.  
  165.           LIBDIR = $(KLIBDIR)
  166.  
  167.       NUM_ANALLIB = -lnum_anal
  168.           DSPLLIB = -ldspl
  169.     FILEFORMATLIB = -lformat
  170.       GEO_SURFLIB = -lgeo_surf
  171.          GHOSTLIB = -lghost
  172.          VEXPRLIB = -lvexpr
  173.        LINPACKLIB = -llinpack
  174.        EISPACKLIB = -leispack
  175.           TIFFLIB = -ltiff
  176.          VMATHLIB = -lvmath
  177.         VERRORLIB = -lverror
  178.         VGPARMLIB = -lvgparm
  179.           VIPLLIB = -lvipl
  180.          VRASTLIB = -lvrast
  181.         VUTILSLIB = -lvutils
  182.      XVDISPLAYLIB = -ldisplay
  183.        XVFORMSLIB = -lxvforms
  184.     XVGRAPHICSLIB = -lgraphics
  185.       XVPARSERLIB = -lxvparser
  186.         XVPLOTLIB = -lxvplot
  187.        XVUTILSLIB = -lxvutils
  188.  
  189. DEPENDNUM_ANALLIB = $(KLIBDIR)/libnum_anal.a
  190.     DEPENDDSPLLIB = $(KLIBDIR)/libdspl.a
  191. DEPENDFILEFORMATLIB = $(KLIBDIR)/libformat.a
  192. DEPENDGEO_SURFLIB = $(KLIBDIR)/libgeo_surf.a
  193.    DEPENDVEXPRLIB = $(KLIBDIR)/libvexpr.a
  194.    DEPENDGHOSTLIB = $(KLIBDIR)/libghost.a
  195.  DEPENDLINPACKLIB = $(KLIBDIR)/liblinpack.a
  196.  DEPENDEISPACKLIB = $(KLIBDIR)/libeispack.a
  197.     DEPENDTIFFLIB = $(KLIBDIR)/libtiff.a
  198.    DEPENDVMATHLIB = $(KLIBDIR)/libvmath.a
  199.   DEPENDVERRORLIB = $(KLIBDIR)/libverror.a
  200.   DEPENDVGPARMLIB = $(KLIBDIR)/libvgparm.a
  201.     DEPENDVIPLLIB = $(KLIBDIR)/libvipl.a
  202.    DEPENDVRASTLIB = $(KLIBDIR)/libvrast.a
  203.   DEPENDVUTILSLIB = $(KLIBDIR)/libvutils.a
  204. DEPENDXVDISPLAYLIB = $(KLIBDIR)/libdisplay.a
  205.  DEPENDXVFORMSLIB = $(KLIBDIR)/libxvforms.a
  206. DEPENDXVGRAPHICSLIB = $(KLIBDIR)/libgraphics.a
  207. DEPENDXVPARSERLIB = $(KLIBDIR)/libxvparser.a
  208.   DEPENDXVPLOTLIB = $(KLIBDIR)/libxvplot.a
  209.  DEPENDXVUTILSLIB = $(KLIBDIR)/libxvutils.a
  210.  
  211. X_LOCAL_LIBRARIES = \
  212.  $(XVDISPLAYLIB) \
  213.  $(XVPLOTLIB) \
  214.  $(XVGRAPHICSLIB) \
  215.  $(XVFORMSLIB) \
  216.  $(XVUTILSLIB)
  217.  LOCAL_LIBRARIES  = \
  218.  $(GHOSTLIB) \
  219.  $(VEXPRLIB) \
  220.  $(NUM_ANALLIB) \
  221.  $(DSPLLIB) \
  222.  $(FILEFORMATLIB) \
  223.  $(GEO_SURFLIB) \
  224.  $(VIPLLIB) \
  225.  $(VUTILSLIB) \
  226.  $(VMATHLIB) \
  227.  $(VRASTLIB) \
  228.  $(VGPARMLIB) \
  229.  $(VERRORLIB) \
  230.  $(TIFFLIB)
  231. FOR_LOCAL_LIBRARIES = \
  232.  $(LINPACKLIB) \
  233.  $(EISPACKLIB)
  234.     SYS_LIBRARIES =          -lm -ll
  235.       X_LIBRARIES = -lXaw -lXmu -lXt -lXext -lX11
  236. FOR_SYS_LIBRARIES = -lF77
  237.   EXTRA_LIBRARIES =
  238.  
  239. X_LOCAL_DEP_LIBRARIES = \
  240.  $(DEPENDXVDISPLAYLIB) \
  241.  $(DEPENDXVPLOTLIB) \
  242.  $(DEPENDXVGRAPHICSLIB) \
  243.  $(DEPENDXVFORMSLIB) \
  244.  $(DEPENDXVUTILSLIB)
  245. LOCAL_DEP_LIBRARIES = \
  246.  $(DEPENDGHOSTLIB) \
  247.  $(DEPENDVEXPRLIB) \
  248.  $(DEPENDNUM_ANALLIB) \
  249.  $(DEPENDDSPLLIB) \
  250.  $(DEPENDFILEFORMATLIB) \
  251.  $(DEPENDGEO_SURFLIB) \
  252.  $(DEPENDVIPLLIB) \
  253.  $(DEPENDVUTILSLIB) \
  254.  $(DEPENDVMATHLIB) \
  255.  $(DEPENDVRASTLIB) \
  256.  $(DEPENDVGPARMLIB) \
  257.  $(DEPENDVERRORLIB) \
  258.  $(DEPENDTIFFLIB)
  259. FOR_LOCAL_DEP_LIBRARIES = \
  260.  $(DEPENDLINPACKLIB) \
  261.  $(DEPENDEISPACKLIB)
  262.  
  263. # Beginning of Khoros imake rules - Khoros.rules
  264.  
  265. # -------------------------------------------------------------------------
  266. # start of Imakefile
  267.  
  268. ## Beginning of the Khoros generic toolbox configuration file
  269.  
  270. TB_NAME = /research/vision/sauer/morpho/morpho
  271.  
  272. LIBDIR = $(TB_NAME)/lib
  273. BINDIR = $(TB_NAME)/bin
  274.  
  275. TOOLBOXINCLUDE = -I$(TB_NAME)/include
  276.  
  277. TOOLBOXLIBDIR = -L$(LIBDIR)
  278.  
  279. TOOLBOXDEFINES =
  280.  
  281. TOOLBOX_LIBRARIES = -lmorpho
  282. TOOLBOX_DEP_LIBRARIES = $(LIBDIR)/libmorpho.a
  283.  
  284. FOR_TOOLBOX_LIBRARIES =
  285. FOR_TOOLBOX_DEP_LIBRARIES =
  286.  
  287. X_TOOLBOX_LIBRARIES =
  288. X_TOOLBOX_DEP_LIBRARIES =
  289.  
  290. IMAKEFILE = dir
  291.  
  292. TOOLBOX =\
  293.     morpho
  294.  
  295. SUBDIRS =\
  296.     Lib \
  297.     vgballse \
  298.     vgdiskse \
  299.     vgmclose \
  300.     vgmdilate \
  301.     vgmerode \
  302.     vgmopen \
  303.     vgmtophat
  304.  
  305. depend::
  306.     @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  307.     for i in $(SUBDIRS) ;\
  308.     do \
  309.     (cd $$i ; echo "depending" "in $(CURRENT_DIR)/$$i..."; \
  310.     $(MAKE) $(MFLAGS)  depend); \
  311.     done
  312.  
  313. all::
  314.     @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  315.     for i in $(SUBDIRS) ;\
  316.     do \
  317.     (cd $$i ; echo "making" all "in $(CURRENT_DIR)/$$i..."; \
  318.     $(MAKE) $(MFLAGS) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' all); \
  319.     done
  320.  
  321. Imakefile::
  322.     $(IMKMF)
  323.     $(MAKE) Makefile
  324.  
  325. GenImakefile::
  326.     $(RM) Imakefile
  327.     $(IMKMF) -type dir -toolbox $(TOOLBOX); \
  328.     $(MAKE) Makefile
  329.  
  330. AllImakefiles: Imakefile Imakefiles
  331.  
  332. Imakefiles::
  333.     -@for i in $(SUBDIRS); do\
  334.     (cd $$i; echo Making "Imakefile in $(CURRENT_DIR)/$$i..."; \
  335.     $(MAKE) Imakefile; \
  336.     $(MAKE) Imakefiles); \
  337.     done
  338.  
  339. GenAllImakefiles: GenImakefile GenImakefiles
  340.  
  341. GenImakefiles::
  342.     -@for i in $(SUBDIRS); do\
  343.     (cd $$i; echo Making "Imakefile in $(CURRENT_DIR)/$$i..."; \
  344.     $(MAKE) GenImakefile; \
  345.     $(MAKE) GenImakefiles); \
  346.     done
  347.  
  348. gw::
  349.     -@for i in $(SUBDIRS); do\
  350.     (cd $$i; echo "Running ghostwriter in $(CURRENT_DIR)/$$i..."; \
  351.     $(MAKE) gw); \
  352.     done
  353.  
  354. gr::
  355.     -@for i in $(SUBDIRS); do\
  356.     (cd $$i; echo "Running ghostreader in $(CURRENT_DIR)/$$i..."; \
  357.     $(MAKE) gr); \
  358.     done
  359.  
  360. help::
  361.     -@for i in $(SUBDIRS); do\
  362.     (cd $$i; echo "Running helppage in $(CURRENT_DIR)/$$i..."; \
  363.     $(MAKE) help); \
  364.     done
  365.  
  366. RCSci:
  367.     -@for i in $(SUBDIRS); do\
  368.     if [ "$$i" != "public_domain" ]; then \
  369.     (cd $$i; echo "Running RCS check-in in $(CURRENT_DIR)/$$i..."; \
  370.     $(MAKE) RCSci); \
  371.     else \
  372.     echo "Not decending into the public_domain subdirectory"; \
  373.     fi; \
  374.     done
  375.  
  376. RCSco:
  377.     -@for i in $(SUBDIRS); do\
  378.     if [ "$$i" != "public_domain" ]; then \
  379.     (cd $$i; echo "Running RCS check-out in $(CURRENT_DIR)/$$i..."; \
  380.     $(MAKE) RCSco); \
  381.     else \
  382.     echo "Not decending into the public_domain subdirectory"; \
  383.     fi; \
  384.     done
  385.  
  386. help::
  387.     -@for i in $(SUBDIRS); do\
  388.     (cd $$i; echo "Running proto in $(CURRENT_DIR)/$$i..."; \
  389.     $(MAKE) proto); \
  390.     done
  391.  
  392. # -------------------------------------------------------------------------
  393. # end of Imakefile
  394.  
  395. # -------------------------------------------------------------------------
  396. # common rules for all Makefiles - do not edit
  397.  
  398. emptyrule::
  399.  
  400. clean::
  401.     $(RM_CMD) \#*
  402.  
  403. AllMakefiles:: Makefile Makefiles
  404.  
  405. Makefile::
  406.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  407.  
  408. tags::
  409.     $(TAGS) -w *.[ch] > tags
  410.  
  411. saber:
  412.     # load $(ALLDEFINES) $(SRCS)
  413.  
  414. osaber:
  415.     # load $(ALLDEFINES) $(OBJS)
  416.  
  417. # -------------------------------------------------------------------------
  418. # rules for building in SUBDIRS - do not edit
  419.  
  420. install::
  421.     @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  422.     for i in $(SUBDIRS) ;\
  423.     do \
  424.     (cd $$i ; echo "installing" "in $(CURRENT_DIR)/$$i..."; \
  425.     $(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install); \
  426.     done
  427.  
  428. install.man::
  429.     @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  430.     for i in $(SUBDIRS) ;\
  431.     do \
  432.     (cd $$i ; echo "installing man pages" "in $(CURRENT_DIR)/$$i..."; \
  433.     $(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install.man); \
  434.     done
  435.  
  436. install.libman::
  437.     @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  438.     for i in $(SUBDIRS) ;\
  439.     do \
  440.     (cd $$i ; echo "installing lib man pages" "in $(CURRENT_DIR)/$$i..."; \
  441.     $(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install.libman); \
  442.     done
  443.  
  444. clean::
  445.     @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  446.     for i in $(SUBDIRS) ;\
  447.     do \
  448.     (cd $$i ; echo "cleaning" "in $(CURRENT_DIR)/$$i..."; \
  449.     $(MAKE) $(MFLAGS) RM_CMD='$(RM_CMD)' clean); \
  450.     done
  451.  
  452. tags::
  453.     @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  454.     for i in $(SUBDIRS) ;\
  455.     do \
  456.     (cd $$i ; echo "tagging" "in $(CURRENT_DIR)/$$i..."; \
  457.     $(MAKE) $(MFLAGS) TAGS='$(TAGS)' tags); \
  458.     done
  459.  
  460. Makefiles::
  461.     @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  462.     for i in $(SUBDIRS) ;\
  463.     do \
  464.     echo "making Makefiles in $(CURRENT_DIR)/$$i..."; \
  465.     case "$$i" in \
  466.     ./?*/?*/?*/?*) newtop=../../../../ sub=subsubsubsub;; \
  467.     ./?*/?*/?*) newtop=../../../ sub=subsubsub;; \
  468.     ./?*/?*) newtop=../../ sub=subsub;; \
  469.     ./?*) newtop=../ sub=sub;; \
  470.     */?*/?*/?*) newtop=../../../../ sub=subsubsubsub;; \
  471.     */?*/?*) newtop=../../../ sub=subsubsub;; \
  472.     */?*) newtop=../../ sub=subsub;; \
  473.     *) newtop=../ sub=sub;; \
  474.     esac; \
  475.     case "$(TOP)" in \
  476.     /?*) newtop= upprefix= ;; \
  477.     *) upprefix=../ ;; \
  478.     esac; \
  479.     $(MAKE) $${sub}dirMakefiles UPPREFIX=$$upprefix NEWTOP=$$newtop \
  480.     MAKEFILE_SUBDIR=$$i NEW_CURRENT_DIR=$(CURRENT_DIR)/$$i;\
  481.     done
  482.  
  483. subdirMakefiles:
  484.     cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
  485.     $(MAKE) $(MFLAGS) Makefiles
  486.  
  487. subsubdirMakefiles:
  488.     cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
  489.     $(MAKE) $(MFLAGS) Makefiles
  490.  
  491. subsubsubdirMakefiles:
  492.     cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
  493.     $(MAKE) $(MFLAGS) Makefiles
  494.  
  495. subsubsubsubdirMakefiles:
  496.     cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
  497.     $(MAKE) $(MFLAGS) Makefiles
  498.  
  499. includes::
  500.     @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  501.     for i in $(SUBDIRS) ;\
  502.     do \
  503.     (cd $$i ; echo including "in $(CURRENT_DIR)/$$i..."; \
  504.     $(MAKE) $(MFLAGS)   includes); \
  505.     done
  506.  
  507. # -------------------------------------------------------------------------
  508. # dependencies generated by makedepend
  509.  
  510.