# Makefile to build postage on most UNIX systems # # # Define the compiler command: #-------------------------------- # default: FC=f77 # FC= f77 FC=/usr/bin/g77 # Linux # # Define compiler flags: #-------------------------- # default for most compilers: FFLAGS= -O -u # Cray supercomputers: FFLAGS= # Silicon Graphics: FFLAGS= -u # IBM AIX xlf Fortran: FFLAGS= -O -u -qcharlen=2880 # HP-UX 9000 series (HP-UX 9.04): FFLAGS= -O -u +e +U77 # #FFLAGS= -O -u FFLAGS = -fno-automatic -fno-globals -Wno-globals -malign-double -O -fexpensive-optimizations -funroll-loops -fstrength-reduce -frerun-cse-after-loop -fforce-mem -fforce-addr -fcaller-saves # Linux # Note an ansi c compatible compiler is required. # C compiler CC = gcc # # CC is that name of the c compiler to use, some possibilities are suggested: #CC = /opt/TESTspro/SUNWspro/bin/cc # Solaris NRAO #CC = /opt/SUNWspro/bin/cc # Solaris #CC = /usr/lang/acc # Sun OS #CC = cc # Dec Alpha OSF/1 = Digital Unix #CC = cc # IBM RS/6000 #CC = gcc # Linux #CC = gcc # FreeBSD #CC = cc # HP #CC = cc # Dec #CC = cc # SGI # Define compiler flags: #-------------------------- # CFLAGS = # default for most systems # CFLAGS = -v -K PIC -Xc # Sun Solaris # CFLAGS = -Aa # HP #CFLAGS = -v -K PIC -Xc CFLAGS = # # Define location of fitsio library (libcfitsio.a) # default is in the same directory LIB=. #LIB=. # Linux LIB=-static # Solaris #LIB=-Bstatic # # # use AIPS PP 4MfileV2: 4Mfile.f AIPSutil.o AIPSsubs.o $(FC) $(FFLAGS) 4Mfile.f -o 4MfileV2 $(LIB) AIPSutil.o AIPSsubs.o 4Mfile.f: 4Mfile.FOR PP 4Mfile.FOR AIPSutil.o: AIPSutil.f $(FC) $(FFLAGS) -c AIPSutil.f AIPSutil.f: AIPSutil.FOR PP AIPSutil.FOR AIPSsubs.o: AIPSsubs.f $(FC) $(FFLAGS) -c AIPSsubs.f AIPSsubs.f: AIPSsubs.FOR PP AIPSsubs.FOR curdat.o: curdat.c $(CC) $(CFLAGS) -c curdat.c # make distribution distrib: rm -f 4Mfile02.tar* tar cvf 4Mfile02.tar *.f *.FOR *.c *.shtml *.html *.pl *.dist \ changes LICENSE Makefile gzip 4Mfile02.tar backup: rm -f 4MfileBack.tar tar cvf 4MfileBack02.tar Make* *.c *.f *.FOR* *.shtml *.html *.pl \ changes LICENSE gzip 4MfileBack02.tar clean: rm -f *.o