Last change
on this file since 1795 was
1795,
checked in by Ehouarn Millour, 11 years ago
|
Version testing basee sur la r1794
Testing release based on r1794
|
-
Property svn:executable set to
*
|
File size:
1022 bytes
|
Rev | Line | |
---|
[1765] | 1 | # This is a makefile for GNU make. |
---|
| 2 | # This makefile builds "NetCDF95". |
---|
| 3 | |
---|
| 4 | # 1. Source files |
---|
| 5 | |
---|
| 6 | sources = nf95_inq_dimid.f90 nf95_inquire_dimension.f90 nf95_inq_varid.f90 nf95_inquire_variable.f90 nf95_create.f90 nf95_def_dim.f90 nf95_redef.f90 nf95_enddef.f90 nf95_close.f90 nf95_copy_att.f90 nf95_inquire_attribute.f90 nf95_inquire.f90 netcdf95.f90 nf95_def_var.f90 nf95_gw_var.f90 nf95_put_var.f90 nf95_put_att.f90 handle_err.f90 nf95_get_att.f90 nf95_get_var.f90 find_coord.f90 nf95_open.f90 |
---|
| 7 | |
---|
| 8 | # 2. Objects and library |
---|
| 9 | |
---|
| 10 | objects := $(sources:.f90=.o) |
---|
| 11 | lib = libnetcdf95.a |
---|
| 12 | |
---|
| 13 | # 3. Compiler-dependent part |
---|
| 14 | |
---|
| 15 | override FFLAGS += $(if ${NETCDF_INC_DIR}, -I${NETCDF_INC_DIR}) |
---|
| 16 | |
---|
| 17 | # 4. Rules |
---|
| 18 | |
---|
| 19 | # Extend known suffixes: |
---|
| 20 | %.o: %.f90 |
---|
| 21 | $(COMPILE.f) $(OUTPUT_OPTION) $< |
---|
| 22 | |
---|
| 23 | .PHONY: all clean depend |
---|
| 24 | |
---|
| 25 | all: ${lib} |
---|
| 26 | ${lib}: ${lib}(${objects}) |
---|
| 27 | |
---|
| 28 | depend depend.mk: |
---|
| 29 | makedepf90 -Wmissing -Wconfused -nosrc -u netcdf -u typesizes ${sources} >depend.mk |
---|
| 30 | |
---|
| 31 | clean: |
---|
| 32 | rm -f ${lib} ${objects} |
---|
| 33 | |
---|
| 34 | # Dependencies between object files and include files: |
---|
| 35 | include depend.mk |
---|
Note: See
TracBrowser
for help on using the repository browser.