DESTDIR=../bin LIBS= FORTRAN=gfortran -g CFLAGS+=-g -Wall OBJECTS=apfswrap.o apfscompute.o iau_subroutines.o sbr_pleph.o timescompute.o\ orbitcompute.o kstprz.o praeznew.o %.o: %.f $(FORTRAN) -c $< PLATFORM=$(shell gavo config platform) TARGET=all-$(PLATFORM) .PHONY: $(TARGET) TARGETS=apfswrap-$(PLATFORM) timescompute-$(PLATFORM) $(TARGET): buildstamp-$(PLATFORM) $(TARGETS) apfswrap-$(PLATFORM): $(OBJECTS) $(FORTRAN) -o $@ apfswrap.o apfscompute.o iau_subroutines.o sbr_pleph.o\ orbitcompute.o kstprz.o praeznew.o $(LIBS) timescompute-$(PLATFORM): $(OBJECTS) $(FORTRAN) -o $@ timescompute.o iau_subroutines.o $(LIBS) buildstamp-$(PLATFORM): make clean rm -f buildstamp-* touch buildstamp-$(PLATFORM) install: $(TARGETS) install -D $(TARGETS) $(DESTDIR) install --mode 664 -D JPLEPH $(DESTDIR)/JPLEPH apfs.almanac.read-fk: apfs.almanac.read-fk.f $(FORTRAN) -o$@ $^ $(LIBS) times: times.f iau_subroutines.f $(FORTRAN) -o$@ $^ $(LIBS) clean: rm -f $(TARGET) $(OBJECTS)