2 # Top-level Makefile for 3DVAR
4 # Macros, these should be generic for all machines
10 #-----------------------------------------------------------------------------
14 RM_CMD
= $(RM
) *.CKP
*.ln
*.BAK
*.bak
*.o
*.i core errs
,* *~
*.a \
15 .emacs_
* tags TAGS make.log MakeOut
*.f
*.mod CONDRV.SCR
16 #-----------------------------------------------------------------------------
22 (cd Dir_map
; $(MAKE
));
32 $(RM
) Map.out.
* Map.log gmeta
* fort.
* *.exe
36 @grep OSF .tmpfile
; \
37 if
[ $$?
= 0 ] ; then echo
"Compiling for Compaq" ; \
38 cp configure.user.dec configure.user
; \
39 else grep AIX .tmpfile
; \
40 if
[ $$?
= 0 ] ; then echo
"Compiling for IBM" ; \
41 cp configure.user.ibm configure.user
; \
42 else grep Darwin .tmpfile
; \
43 if
[ $$?
= 0 ] ; then echo
"Compiling for Mac" ; \
44 cp configure.user.mac configure.user
; \
45 cp mac_Makefile1 Dir_map
/Makefile
; \
46 cp mac_Makefile2 Dir_map
/Skewt
/Makefile
; \
47 else grep IRIX64 .tmpfile
; \
48 if
[ $$?
= 0 ] ; then echo
"Compiling for SGI" ; \
49 cp configure.user.sgi configure.user
; \
50 else grep Linux .tmpfile
; \
51 if
[ $$?
= 0 ] ; then echo
"Compiling for PC Linux" ; \
52 cp configure.user.linux configure.user
; \
53 else echo
"Not Compaq, ibm, and PC-Linux, please edit configure.user" ; \