# $Id: Makefile.mk,v 1.15 1996/07/09 20:27:29 deaven Exp $

# $Id: machine.mk,v 1.29 1996/08/08 19:47:25 deaven Exp deaven $
# cpp macros to make standardized makefiles for different systems
# Copyright (c)1995 David Deaven

# Dave Deaven's library (libdmd) is DMDDIR (from dmdpp)
DMDDIR = /disk2/home/deaven



# #################################################################
# NetBSD open POSIX (BSD-4.4 derived)
# -----------------------------------------------------------------


ARCH_OPTIMIZE_FLAGS = -m486

CC			= gcc
C_ALWAYS_FLAGS		= -Wall -Wconversion -Wmissing-prototypes -g
C_DEBUG_FLAGS		= 
C_OPTIMIZE_FLAGS	= -O2 $(ARCH_OPTIMIZE_FLAGS)

F77			= f77
F_ALWAYS_FLAGS		=
F_DEBUG_FLAGS		= -g
F_OPTIMIZE_FLAGS	= -O2 $(ARCH_OPTIMIZE_FLAGS)

CXX			= g++
CXX_ALWAYS_FLAGS	= -fhandle-exceptions -Wall -Wconversion -Wmissing-prototypes -g
CXX_DEBUG_FLAGS		=
CXX_OPTIMIZE_FLAGS	= -O2 $(ARCH_OPTIMIZE_FLAGS)

JAVAC			= javac
JAVA_OPTIMIZE_FLAGS	= -O

LD_ALWAYS_FLAGS		= -L$(DMDDIR)/lib
LD_FORTRAN_FLAGS	= -lf2c
LD_MATH_FLAGS		= -lblas -lm

.SUFFIXES: .java .class
.java.class:
	$(JAVAC) $(JAVAFLAGS) $<









# ---------------------
# This is only for my development machine --dmd
# ---------------------











# #################################################################
# Common definitions
#



# ------ End of machine.mk ----------------------------------------

default: install

install:
	nroff -man ansiconvert.3 | gzip > $(DMDDIR)/man/cat3/ansiconvert.0.gz
	for l in ansiint ansifloat ansidouble intansi floatansi doubleansi; do ln -f $(DMDDIR)/man/cat3/ansiconvert.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man dmdtimer.3 | gzip > $(DMDDIR)/man/cat3/dmdtimer.0.gz
	for l in MyClock; do ln -f $(DMDDIR)/man/cat3/dmdtimer.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man error.3 | gzip > $(DMDDIR)/man/cat3/error.0.gz
	for l in dmd_errno dmd_perror; do ln -f $(DMDDIR)/man/cat3/error.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man libdmd.3 | gzip > $(DMDDIR)/man/cat3/libdmd.0.gz
	nroff -man FindElement.3 | gzip > $(DMDDIR)/man/cat3/FindElement.0.gz
	for l in GuessElement; do ln -f $(DMDDIR)/man/cat3/FindElement.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man fit.3 | gzip > $(DMDDIR)/man/cat3/fit.0.gz
	for l in NewFit DestroyFit FitPrint FitEvaluate FitByConjugateGradient FitByDownhillSimplex FitByGridSearch FitByMonteCarlo; do ln -f $(DMDDIR)/man/cat3/fit.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man GAlignYPR.3 | gzip > $(DMDDIR)/man/cat3/GAlignYPR.0.gz
	nroff -man Gentra.3 | gzip > $(DMDDIR)/man/cat3/Gentra.0.gz
	for l in Gentra_xyz Transf Transfvec; do ln -f $(DMDDIR)/man/cat3/Gentra.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man geometry.3 | gzip > $(DMDDIR)/man/cat3/geometry.0.gz
	for l in Gmalloc Grealloc Gread GreadWithError Gprint GprintXYZ Gprintbox Gfree Gcpy Gcat; do ln -f $(DMDDIR)/man/cat3/geometry.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man geometry-misc.3 | gzip > $(DMDDIR)/man/cat3/geometry-misc.0.gz
	for l in GSetFlagsFromYPR GSetYPRFromFlags; do ln -f $(DMDDIR)/man/cat3/geometry-misc.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man GCentralCell.3 | gzip > $(DMDDIR)/man/cat3/GCentralCell.0.gz
	for l in GboxCenter GgetBoxCenter; do ln -f $(DMDDIR)/man/cat3/GCentralCell.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man GPrettyCell.3 | gzip > $(DMDDIR)/man/cat3/GPrettyCell.0.gz
	nroff -man Gcopyatom.3 | gzip > $(DMDDIR)/man/cat3/Gcopyatom.0.gz
	nroff -man Gconnect.3 | gzip > $(DMDDIR)/man/cat3/Gconnect.0.gz
	nroff -man Gdiff.3 | gzip > $(DMDDIR)/man/cat3/Gdiff.0.gz
	for l in Gdiff_spec; do ln -f $(DMDDIR)/man/cat3/Gdiff.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man Gdigitize.3 | gzip > $(DMDDIR)/man/cat3/Gdigitize.0.gz
	for l in Gundigitize Gdigitize_ansi Gundigitize_ansi Gdigitize_buf_ansi; do ln -f $(DMDDIR)/man/cat3/Gdigitize.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man Gdist.3 | gzip > $(DMDDIR)/man/cat3/Gdist.0.gz
	for l in Gdisp Gdisp2; do ln -f $(DMDDIR)/man/cat3/Gdist.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man Gfile.3 | gzip > $(DMDDIR)/man/cat3/Gfile.0.gz
	for l in GFileOpen GFileRead GFileInfo GFileAdvance GFileRewind GFileClose; do ln -f $(DMDDIR)/man/cat3/Gfile.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man Glattice.3 | gzip > $(DMDDIR)/man/cat3/Glattice.0.gz
	nroff -man GMask.3 | gzip > $(DMDDIR)/man/cat3/GMask.0.gz
	for l in GMaskDestroy GMaskPrint GMaskRead GMaskAnd GMaskOr; do ln -f $(DMDDIR)/man/cat3/GMask.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man Gmoment.3 | gzip > $(DMDDIR)/man/cat3/Gmoment.0.gz
	nroff -man Greorder.3 | gzip > $(DMDDIR)/man/cat3/Greorder.0.gz
	nroff -man Gsetbox.3 | gzip > $(DMDDIR)/man/cat3/Gsetbox.0.gz
	for l in GsetboxStandard GsetboxRect GsetboxCube; do ln -f $(DMDDIR)/man/cat3/Gsetbox.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man Grrotate.3 | gzip > $(DMDDIR)/man/cat3/Grrotate.0.gz
	nroff -man Gstdorient.3 | gzip > $(DMDDIR)/man/cat3/Gstdorient.0.gz
	nroff -man Gvolume.3 | gzip > $(DMDDIR)/man/cat3/Gvolume.0.gz
	nroff -man file.3 | gzip > $(DMDDIR)/man/cat3/file.0.gz
	for l in findfile; do ln -f $(DMDDIR)/man/cat3/file.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man getargv.3 | gzip > $(DMDDIR)/man/cat3/getargv.0.gz
	for l in fgetargv; do ln -f $(DMDDIR)/man/cat3/getargv.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man histogram.3 | gzip > $(DMDDIR)/man/cat3/histogram.0.gz
	for l in Histmalloc Histclear Histfree Histadd Histsort HistXYoff HistXY; do ln -f $(DMDDIR)/man/cat3/histogram.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man NumericalDerivative.3 | gzip > $(DMDDIR)/man/cat3/NumericalDerivative.0.gz
	nroff -man matinv.3 | gzip > $(DMDDIR)/man/cat3/matinv.0.gz
	for l in matinv3; do ln -f $(DMDDIR)/man/cat3/matinv.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man mmul3.3 | gzip > $(DMDDIR)/man/cat3/mmul3.0.gz
	for l in mtrn3 vmmul3 mtmul3 mttrn3 vmtmul3; do ln -f $(DMDDIR)/man/cat3/mmul3.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man mymalloc.3 | gzip > $(DMDDIR)/man/cat3/mymalloc.0.gz
	for l in myrealloc myfree mystrdup dmalloc imalloc; do ln -f $(DMDDIR)/man/cat3/mymalloc.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man neighbor.3 | gzip > $(DMDDIR)/man/cat3/neighbor.0.gz
	for l in getnl newnl newnlm nlalloc nlfree nearnb fprintnl fprintnlone; do ln -f $(DMDDIR)/man/cat3/neighbor.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man nordsk.3 | gzip > $(DMDDIR)/man/cat3/nordsk.0.gz
	for l in nordsk_reset; do ln -f $(DMDDIR)/man/cat3/nordsk.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man optdfp.3 | gzip > $(DMDDIR)/man/cat3/optdfp.0.gz
	for l in optbfgs optdfp_engine; do ln -f $(DMDDIR)/man/cat3/optdfp.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man QRotationMatrix.3 | gzip > $(DMDDIR)/man/cat3/QRotationMatrix.0.gz
	for l in QNewIntegrateContext QDeleteIntegrationContext QIntegrate QtoYPR; do ln -f $(DMDDIR)/man/cat3/QRotationMatrix.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done

	nroff -man YPRRotationMatrix.3 | gzip > $(DMDDIR)/man/cat3/YPRRotationMatrix.0.gz
	for l in YPRIntegrate YPRTransformDerivative; do ln -f $(DMDDIR)/man/cat3/YPRRotationMatrix.0.gz   $(DMDDIR)/man/cat3/$$l.0.gz; done
	nroff -man geometry.5 | gzip > $(DMDDIR)/man/cat5/geometry.0.gz

Makefiles:

clean:

depend:

