Update version info for release v4.6.1 (#2122)
[WRF.git] / var / obsproc / MAP_plot / Makefile
blobbb5fb480dca149ade8bc6ad01e3b16508ac7d5ce
2 # Top-level Makefile for 3DVAR
4 # Macros, these should be generic for all machines
6 .IGNORE:
9 # General commands
10 #-----------------------------------------------------------------------------
11 MAKE = make -i
12 AR = ar ru
13 RM = rm -f
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 #-----------------------------------------------------------------------------
17 DEVTOP = .
20 all: make_rules
21 ($(RM_CMD)) ;
22 (cd Dir_map ; $(MAKE));
24 little_f:make_rules
25 Map.f
28 clean: make_rules
29 (cd Dir_map ; \
30 $(MAKE) clean) ; \
31 $(RM_CMD) ; \
32 $(RM) Map.out.* Map.log gmeta* fort.* *.exe
34 make_rules:
35 uname -a > .tmpfile
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" ; \
54 fi ; \
55 fi ; \
56 fi ; \
57 fi ; \
58 fi