head	1.4;
access;
symbols;
locks
	srio:1.4; strict;
comment	@# @;


1.4
date	2002.10.10.09.50.28;	author srio;	state Exp;
branches;
next	1.3;

1.3
date	97.10.14.13.51.21;	author srio;	state Exp;
branches;
next	1.2;

1.2
date	97.10.14.13.50.48;	author srio;	state Exp;
branches;
next	1.1;

1.1
date	97.07.17.14.41.54;	author srio;	state Exp;
branches;
next	;


desc
@Makefile used for xop 1.8
@


1.4
log
@Added Debye-Waller average calculations. Separate crystal_fh.F file.
@
text
@# --------------------------------------------------------------
#
# Works automatically for Sun,hp and Linux systems
#
# Usage:
#	gmake            [to create the executable crystal_ml]
#	gmake install	 [to install  it in the correct directory]
#	gmake clean	 [to clean the source directory]
#
#
# --------------------------------------------------------------
#
# System definition (architecture)
#
ARCH := $(shell /scisoft/XRayOptics/xop2.1//xop_uname)
CPP = cpp


#************* PLATFORM DEPENDENT VARIABLES *****************
# libraries for sun5 (expgh) 
#
ifeq ($(ARCH),sun5)
FC = f77
FFLAGS =  -Bstatic
endif
#
# libraries for hp (expgi) 
#
ifeq ($(ARCH),hp)
FC = /opt/fortran/bin/f77
FFLAGS =  -K +E4  
endif
#
# libraries for linux (expglio) 
#
ifeq ($(ARCH),linux)
FC = g77
FFLAGS = -O  -Wall
endif
#
# libraries for sgi (lindsga) 
#
ifeq ($(ARCH),irix)
FC = f77
FFLAGS = -O 
endif


all: cryst_ml cryst_pp cryst_tt cryst_za

mac:
	$(CPP) -P cryst_ml.F cryst_ml.fmac
	$(CPP) -P cryst_za.F cryst_za.fmac
	$(CPP) -P cryst_pp.F cryst_pp.fmac
	$(CPP) -P cryst_tt.F cryst_tt.fmac
lahey:
	$(CPP) -P -Dlahey cryst_za.F cryst_za.flahey
	$(CPP) -P -Dlahey cryst_ml.F cryst_ml.flahey
	$(CPP) -P -Dlahey cryst_pp.F cryst_pp.flahey
	$(CPP) -P -Dlahey cryst_tt.F cryst_tt.flahey

cryst_pp:  cryst_pp.F
	$(FC) $(FFLAGS) -o cryst_pp cryst_pp.F iblank2.f crystal_fh.F

cryst_ml: cryst_ml.F  iblank2.f crystal_fh.F
	$(FC) $(FFLAGS) -o cryst_ml cryst_ml.F iblank2.f crystal_fh.F

cryst_tt: cryst_tt.F
	$(FC) $(FFLAGS) -o cryst_tt cryst_tt.F iblank2.f crystal_fh.F

cryst_za: cryst_za.o io_shadow.o vector.o iblank2.o
	$(FC) $(FFLAGS) -o cryst_za cryst_za.o \
	io_shadow.o  vector.o iblank2.o crystal_fh.F

.F.o:
	$(FC) $(FFLAGS) -c $<
.f.o:
	$(FC) $(FFLAGS) -c $<

clean: 
	/bin/rm -f *.trace *.o cryst_{ml,pp,tt,za}.dat \
	cryst_{ml,pp,tt,za}.info  cryst_{ml,pp,tt,za} \
	cryst_?? *.flahey

install:
	cp cryst_ml ./../../bin.$(ARCH)/cryst_ml
	cp cryst_pp ./../../bin.$(ARCH)/cryst_pp
	cp cryst_tt ./../../bin.$(ARCH)/cryst_tt
	cp cryst_za ./../../bin.$(ARCH)/cryst_za

@


1.3
log
@mv diff_pat to cryst_za
@
text
@d3 1
a3 5
# gnu makefile for crystal_{ml,pp,...}
#
# MSR Jan 1997
#
# Works automatically for Sun4Sun5,hp700 and Linux systems
d15 5
a19 2
ARCH := $(shell /users/b/srio/bin/uname1)
#*******************************************************
a25 2
#*******************************************************
# libraries for sun4 (expgd) 
d27 5
a31 3
ifeq ($(ARCH),sun4)
FC = f77
FFLAGS =  -Bstatic
a32 2
#*******************************************************
# libraries for hp700 (expga) 
d34 5
a38 3
ifeq ($(ARCH),hp700)
FC = f77
FFLAGS =  -K +E4  
a39 2
#*******************************************************
# libraries for hp800 (expga) 
d41 5
a45 3
ifeq ($(ARCH),hp800)
FC = /opt/fortran/bin/f77
FFLAGS =  -K +E4  
d48 1
d51 28
a78 14
cryst_pp:  cryst_pp.f
	$(FC) $(FFLAGS) -o cryst_pp cryst_pp.f

cryst_ml: cryst_ml.f
	$(FC) $(FFLAGS) -o cryst_ml cryst_ml.f

cryst_tt: cryst_tt.f
	$(FC) $(FFLAGS) -o cryst_tt cryst_tt.f

cryst_za: cryst_za.f
	$(FC) $(FFLAGS) -o cryst_za cryst_za.f \
	/pgexp/applications1/XRayOptics/shadow-2.2.0.$(ARCH)/lib/libshadow.a \
	/pgexp/applications1/XRayOptics/shadow-2.2.0.$(ARCH)/lib/libmath.a
#       ../lib.$(ARCH)/libshadow.a
d83 1
a83 1
	cryst_??
d90 1
@


1.2
log
@?
@
text
@d60 2
a61 2
cryst_za: diff_pat.f
	$(FC) $(FFLAGS) -o cryst_za diff_pat.f \
@


1.1
log
@Initial revision
@
text
@d49 1
a49 1
all: CRYSTAL_ML CRYSTAL_PP CRYSTAL_TT
d51 1
a51 1
CRYSTAL_PP: 
d54 1
a54 1
CRYSTAL_ML: 
d57 1
a57 1
CRYSTAL_TT: 
d60 1
a60 1
CRYSTAL_ZA: 
@
