makefile 670 B

1234567891011121314151617181920212223242526272829
  1. include make.inc
  2. PROGS =sanity_check
  3. all: $(PROGS)
  4. sanity_check_OBJ = my_variables.o p_sanity_check.o
  5. sanity_check: $(sanity_check_OBJ)
  6. cd ./TMP ; $(LD) $(LINKFLAGS) -o ../sanity_check $(sanity_check_OBJ)
  7. clean:
  8. @rm -f *.o *.mod TMP/*.* $(PROGS)
  9. %.o: %.F90
  10. @echo " $*".F90
  11. @rm -f ./TMP/$*.f90
  12. @cat MODEL.CPP $< | $(CPP) $(CPPFLAGS) > ./TMP/$*.f90
  13. @cd ./TMP; $(CF90) -c $(FFLAGS) $(F90FLG) -o $*.o $*.f90
  14. %.o: %.F
  15. @echo " $*".F
  16. @rm -f ./TMP/$*.f
  17. @cat MODEL.CPP $< | $(CPP) $(CPPFLAGS) > ./TMP/$*.f
  18. @cd ./TMP; $(CF77) -c $(FFLAGS) $(F77FLG) -o $*.o $*.f 2> /dev/null
  19. %.o: %.c
  20. @echo " $*".c
  21. @cd ./TMP ; $(CC) -c $(CFLAGS) -o $*.o -I../.. ../../$*.c