#------------------------------------------------------------------------ # Makefile caltrack_reader #------------------------------------------------------------------------ SRC= $(wildcard *.f90) OBJ= $(SRC:.f90=.o) MOD= $(SRC:.f90=.mod) INC_FLAG= $(HDF_INC) -I../include/ LDFLAGS = -L../lib -lcaltrack_reader $(HDF_LIBS) #--------- Default default: $(OBJ) test_caltrack_reader_common #--------- executable test_caltrack_reader_common: test_caltrack_reader_common.o $(C) $(CFLAGS) -o $@.exe $^ $(LDFLAGS) #--------- All all: make clean ; make #--------- Clean clean: rm -rf *.exe $(OBJ) #--------- Suffixes .SUFFIXES: .o .c %.o: %.f90 @$(F90) -o $@ -c $< $(F90FLAGS) $(INC_FLAG) clean : rm -f *.o example?