| Version 1.9 Build 803
|
|
Up: NOTE 257 -
Previous: Appendix: ottClient.cc
The makefile, MakeOtt used to create the clients is listed below.
The tar-ball ott.tar contains a symbolic link from MakeOtt to
makefile.
#Make file for C++ wrapper to C code for Ott et al 1994 flux densities.
#HISTORY
# 021122 GIL Add make file for stand alone program ott
# 021118 GIL Update for configuration changes in GB.
# 970101 JRF Initial version
#DESCRIPTION
#This make file creates two programs
#ottClient: glish client allowing a glish session to call C functions
#ott: stand alone program (linux or solaris) calc Ott etal
# at the ATNF
#BASE_DIR = /aips++
# at Green Bank
#BASE_DIR = /aips++/test
BASE_DIR = /home/aips++/stable
#Now use Linux not solaris
#LIBRARIES = -L$(BASE_DIR)/sun4sol_gnu/lib
LIBRARIES = -L$(BASE_DIR)/linux/lib
INCLUDES = -I$(BASE_DIR)/code/aips/glish/include -I./xlib
#this make file makes two programs
EXECUTABLES = ottClient ott
all: $(EXECUTABLES)
#selected code taken un-modified from the VLBA antenna control code and
#OVLBI tracking station.
VLBASTRINGS = str2mjd.o str2rad.o stripWhite.o time2str.o mjd2str.o \
srclist.o cvrtuc.o dateObs2DMjd.o today2mjd.o ottFluxes.o
#the VLBA code environment includes definitions of C structures not
#used here. This stub replaces the include with the standard definitions
vlb.h :
ln -s STDDEFS.H vlb.h
#The VLBA code contains two great general purpose includes of constant values
#Math constants and the definitions of TRUE, FALSE etc.
$(VLBASTRINGS) : MATHCNST.H STDDEFS.H vlb.h $(@:.o=.c)
#now describe how to compile
CC=gcc
CFLAGS= -O -Wall -g $(INCLUDES) $(LIBRARIES)
COMPILE.c= $(CC) $(CFLAGS) $(CPPFLAGS) -c
#rule for converting .c to a .o file
.c.o :
@ $(RM) $@
$(COMPILE.c) $<
ottClient.o : ottClient.cc
g++ $(INCLUDES) -c ottClient.cc
ottClient : ottClient.o $(VLBASTRINGS) $(OTTCLIENTC)
g++ -o ottClient $(OTTCLIENTC) $(VLBASTRINGS) ottClient.o \
$(LIBRARIES) -lglish -lsos -lnpd -lm
ott : ott.o $(VLBASTRINGS) $(OTTCLIENTC)
$(CC) $(CFLAGS) -o ott $(OTTCLIENTC) $(VLBASTRINGS) ott.o -lm
Up: NOTE 257 -
Previous: Appendix: ottClient.cc
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc.,
Washington, D.C.
Return to AIPS++ Home Page
2004-08-28