PROGRAM = copy_maf1 LIBS = F77 = f77 -g LD = $(F77) OBJS = copy_maf1.o \ deluns.o # link everything together $(PROGRAM): $(OBJS) $(LD) -o $@ $(OBJS) $(LIBS) rims_lib.a # compile the FORTRAN code copy_maf1.o: copy_maf1.for f77 -c -g copy_maf1.for # compile the C code deluns.o: deluns.c gcc -c -g deluns.c