# Where are the TOBE files living TOBE=../tobe # What C compiler to use # CC=gcc CC=cc # Uncomment the compiler you are using, comment out the other(s) FC=g95 # FC=lf95 # Lahey and G95 both use the same #define FLAGS=-DG95=1 -g #FLAGS=-DLF62=1 -g # Where are the Tcl libs TCLLIBS=-L/usr/local/lib -ltcl8.4 -ltk8.4 # Other required libraries LIBS=-L/usr/X11R6/lib -lX11 -lieee -lm -ldl -lz lander: lander.f90 ftclz.a f2kcli.mod ftcl.mod $(FC) -o temp $(FLAGS) lander.f90 ftclz.a $(TCLLIBS) $(LIBS) rm -rf zipdir mkdir zipdir ln -s /usr/local/lib/tcl8.4 zipdir/tcl ln -s /usr/local/lib/tk8.4 zipdir/tk cp temp tobe.zip cp config.tcl GUI7.tcl options.tcl setConditions.tcl zipdir cp ${TOBE}/src/main.tcl zipdir cat ${TOBE}/src/null.zip >>tobe.zip cd zipdir; /usr/bin/zip -qr ../tobe.zip * cd .. mv tobe.zip lander rm temp calc: calc.f90 ftcl.a $(FC) -o calc $(FLAGS) calc.f90 ftcl.a $(LIBS) ftcl_c.o: ftcl_c.c ${CC} -c $(FLAGS) ftcl_c.c ftcl_mod.o: ftcl_mod.f90 $(FC) -c $(FLAGS) ftcl_mod.f90 f2kcli.mod: cp ../ftcl/f2kcli.mod . ftcl.mod: cp ../ftcl/ftcl.mod . ftclz.a: cp ../ftcl/ftclz.a . zvfs.o: ../tobe/src/zvfs.c ${CC} ${CFLAGS} ${OPT} -o zvfs.o -c ../tobe/src/zvfs.c f2kcli.o: f2kcli.f90 ${FC} -c $(FLAGS) f2kcli.f90 clean: rm *.o calc lander *.tgz *.dll sysprs7 lsprst7 *.a