Reorder library linking so symbols are properly resolved
[WPS.git] / arch / postamble
blob130594140348b77015a6db944b6c8c7059cc0a6d
2 #       Macros, these should be generic for all machines
4 LN              =       ln -sf
5 MAKE            =       make -i -r
6 RM              =       /bin/rm -f
7 CP              =       /bin/cp
8 AR              =       ar ru
10 .IGNORE:
11 .SUFFIXES: .c .f .F .o
13 #       There is probably no reason to modify these rules
15 .c.o:
16         $(RM) $@
17         $(CC) $(CPPFLAGS) $(CFLAGS) -c $<       
19 .f.o:
20         $(RM) $@ $*.mod
21         $(FC) $(F77FLAGS) $(FCCOMPAT) -c $< $(WRF_INCLUDE)
23 .F.o:
24         $(RM) $@ $*.mod
25         $(CPP) $(CPPFLAGS) $(FDEFS) $(WRF_INCLUDE) $< > $*.f90
26         $(FC) $(FFLAGS) $(FCCOMPAT) -c $*.f90 $(WRF_INCLUDE)
27 #       $(RM) $*.f90