# -*- makefile -*-
# $RCSfile: Makefile.in,v $
# $Revision: 1.7 $
# $Author: langer $
# $Date: 2005/02/17 19:58:06 $
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities associated
# with its operation, modification and maintenance. However, to
# facilitate maintenance we ask that before distributing modifed
# versions of this software, you first contact the authors at
# oof_manager@ctcms.nist.gov.
# This makefile should be run by GNU make
# We use $(srcdir) explicitly in dependencies so as not to depend on VPATH.
srcdir=@srcdir@
# Tell make where to find source files if we're making in a directory
# not in the source directory (using gmake).
VPATH=$(srcdir)
# C++ compiler
CXX=@CXX@
# C++ flags (for both compiler and linker)
CXXFLAGS=@CXXFLAGS@ @X_CFLAGS@ @EXTRADEFS@
LD=@LD@
LDFLAGS=@LDFLAGS@ @LIBS@ @X_LIBS@ @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@
OFILES = $(CFILES:.C=.o)
#### DEFAULT RULES ####
.SUFFIXES: .o
.C.o:
$(CXX) -c $(CXXFLAGS) -DMENUGFX $<
#### TARGETS ####
all: ppm2oof oof
ppm2oof: @EDITLINE@
(cd XPPM2OOF && $(MAKE) $@)
oof: @EDITLINE@
(cd XOOF && $(MAKE) $@)
oof2abaqus: @EDITLINE@
(cd OOF2ABAQUS && $(MAKE) $@)
libedit.a @EDITLINE@:
(cd editline && $(MAKE) libedit.a)
TAGS: $(SOURCEFILES)
etags --typedefs-and-c++ --c++ $(SOURCEFILES)
clean: clean-recursive
depend: depend-recursive
TAGS: TAGS-recursive
TAGS-recursive depend-recursive clean-recursive:
target=`echo $@ | sed s/-recursive//`; \
for subdir in XOOF XPPM2OOF OOF2ABAQUS @EDITLINEDIR@; do \
echo "Making $$target in $$subdir"; \
(cd $$subdir && $(MAKE) $$target) \
done
syntax highlighted by Code2HTML, v. 0.9.1