Skip to content

Instantly share code, notes, and snippets.

@andycasey
Created July 23, 2012 23:53
Show Gist options
  • Save andycasey/3167026 to your computer and use it in GitHub Desktop.
Save andycasey/3167026 to your computer and use it in GitHub Desktop.
# makefile for MOOG with all of the common block assignments;
# this is for a mac machine
# here are the object files
OBJECTS = Abfind.o Abpop.o Abunplot.o Batom.o Begin.o Binary.o \
Binplot.f Binplotprep.o Blends.o Bmolec.o Boxit.o \
Calmod.o Cdcalc.o Chabund.o Cog.o Cogplot.o Cogsyn.o \
Correl.o Cross.o Curve.o Damping.o Defcolor.o Discov.o \
Doflux.o Drawcurs.o Eqlib.o Estim.o Ewfind.o \
Ewweighted.o Fakeline.o Findtic.o Finish.o \
Fluxplot.o Gammabark.o Getasci.o Getcount.o Getnum.o \
Gridplo.o Gridsyn.o Infile.o Inlines.o Inmodel.o Invert.o \
Isotope.o Jexpint.o Lineinfo.o Linlimit.o Makeplot.o Minimax.o \
Moog.o Mydriver.o Nansi.o Nearly.o Number.o Obshead.o \
Oneline.o Opaccouls.o OpacHelium.o OpacHydrogen.o \
Opacit.o Opacmetals.o Opacscat.o Params.o Partfn.o \
Partnew.o Plotit.o Plotremember.o Pltabun.o Pltcog.o \
Pltflux.o Pltspec.o Pointcurs.o Prinfo.o Putasci.o Readobs.o \
Rinteg.o Smooth.o Specplot.o Stats.o Sunder.o Synpop.o Synspec.o \
Synth.o Taukap.o Total.o Trudamp.o Ucalc.o Vargauss.o \
Vmacro.o Voigt.o Wavecalc.o Weedout.o Writenumber.o \
Sourcefunc_scat_cont.o AngWeight.o \
Sourcefunc_scat_line.o Cdcalc_JS.o
# here are the common files
COMMON = Atmos.com Dummy.com Equivs.com Factor.com Kappa.com Linex.com \
Mol.com Multistar.com Obspars.com Plotval.com Pstuff.com \
Quants.com Multimod.com Source.com
CC = cc
FC = g77 -w
# the following lines point to some needed libraries
X11LIB = /usr/X11R6/lib
SMLIB = /Applications/scisoft/i386/Packages/sm/lib
AQLIB = /Applications/scisoft/i386/lib
# reference the correct paths -- andy
X11LIB = /usr/X11R6/lib
SMLIB = /usr/local/scisoft/packages/sm/lib
AQLIB = /usr/local/scisoft/lib
# here are the compilation and linking commands
all: MOOG ;
@echo -----------------------------------------------------------------
@echo
@echo make sure that you have entered the path of the directory
@echo containing the MOOG routines into the FORTRAN source driver
@echo routine Moog.f !!!!!!!!!!!!
@echo
@echo -----------------------------------------------------------------
MOOG: $(OBJECTS);
$(FC) $(OBJECTS) -o MOOG -L$(X11LIB) -lX11 -L$(SMLIB) -lplotsub -ldevices -lutils -L$(AQLIB) -laquaterm
$(OBJECTS): $(COMMON)
clean:
-rm -f *.o MOOG libMOOG.a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment