PROGRAM = copy_maf1 LIBS = F77 = f77 -g LD = $(F77) OBJS = copy_maf1.o \ addtm2.o \ cmptm2.o \ deluns.o \ getmf1.o \ is_between.o \ lmsset.o \ mshmsm.o # link everything together $(PROGRAM): $(OBJS) $(LD) -o $@ $(OBJS) $(LIBS) # compile the FORTRAN code copy_maf1.o: copy_maf1.for f77 -c -g copy_maf1.for addtm2.o: addtm2.for f77 -c -g addtm2.for cmptm2.o: cmptm2.for f77 -c -g cmptm2.for getmf1.o: getmf1.for f77 -c -g getmf1.for is_between.o: is_between.for f77 -c -g is_between.for lmsset.o: lmsset.for f77 -c -g lmsset.for mshmsm.o: mshmsm.for f77 -c -g mshmsm.for # compile the C code deluns.o: deluns.c gcc -c -g deluns.c