# makefile for photometric redshifts

DEST  = /scisoft/bin

#FC = g77

# Alpha Digital (big_endian)
#FFLAGS = -O5 -assume noaccuracy -convert big_endian

# Alpha Digital (little_endian)
#FFLAGS = -O5 -assume noaccuracy 

# Sun
#FFLAGS = -fast -O5
# GNU g77 compiler
#FFLAGS = -O5

# Linux 
FFLAGS = -O5

# IBM
#FFLAGS =

SRCS =  hyper_fit.f compos_new.f convol_new.f cputime.f \
        filter_ascii.f lyman_forest.f rlin_new.f \
        subr.f red_spec.f t_new.f trapz1.f zfit_minim.f

SRCS2 = make_rancat.f compos_new.f convol_new.f \
        filter_ascii.f lyman_forest.f rlin_new.f \
        red_spec.f t_new.f trapz1.f 

OBJS =  hyper_fit.o compos_new.o convol_new.o cputime.o \
        filter_ascii.o lyman_forest.o rlin_new.o \
        subr.o red_spec.o trapz1.o zfit_minim.o \
        make_rancat.o t_new.o  

hyperz: 
	$(FC) -o $@ $(FFLAGS) $(SRCS)
	cp hyperz $(DEST)/hyperz

catalog:
	$(FC) -o make_catalog $(FFLAGS) $(SRCS2)
	cp make_catalog $(DEST)/make_catalog

clean:
	rm -f hyperz 
	rm -f make_catalog 
	rm -f $(OBJS)

