head 2.9; access ; symbols ; locks ; strict; comment @# @; 2.9 date 98.08.24.13.45.03; author bobh; state Exp; branches ; next 2.8; 2.8 date 98.03.17.11.11.18; author bobh; state Exp; branches ; next 2.7; 2.7 date 97.09.09.09.52.35; author bobh; state Exp; branches ; next 2.6; 2.6 date 96.05.30.15.07.46; author bobh; state Exp; branches ; next 2.5; 2.5 date 94.12.15.10.59.24; author hebo; state Exp; branches ; next 2.4; 2.4 date 94.01.21.14.36.01; author hebo; state Exp; branches ; next ; desc @@ 2.9 log @Archiving sources after M2/M3 & Eqpac deployments of 1998 @ text @# Makefile for OASIS Decode routine # Author: Bob Herlien # Project: OASIS Moorings # Created: 11/24/91 # ## rules .s.o : @@rm -f $@@ $(AS) -o $< .c.o : @@rm -f $@@ $(CC) $(CFLAGS) $< ## files and directories MAKEFILE = Makefile ARCHIVE = decode.tar INCLUDES = decode.h argos.h SOURCES = decode.c extract.c file.c range.c atlas.c ctd.c no3.c ac9.c \ spec.c port.c getoasis.c calsh6.f argos.c argextract.c \ argfile.c argfilter.c sendoasis.c gf.c OBJECTS = $(SOURCES:.c=.o) ALLFILES = $(MAKEFILE) $(INCLUDES) $(SOURCES) ## tools #CC = cc #LD = cc CC = /mbari/local/bin/gcc LD = /mbari/local/bin/gcc RM = rm -f ## flags INCLUDEFLAGS = -I. DEBUGFLAG = -g #CFLAGS = -c -Aa $(DEBUGFLAG) $(INCLUDEFLAGS) -D_HPUX_SOURCE CFLAGS = -c -ansi -O -W $(DEBUGFLAG) $(INCLUDEFLAGS) -D_HPUX_SOURCE LDFLAGS = CLDFLAGS = -ansi -O -W $(DEBUGFLAG) $(INCLUDEFLAGS) -D_HPUX_SOURCE FFLAGS = +E1 $(DEBUGFLAG) LIBS = -lM ## actions default : decode extract argos argfilter argextract $(ARCHIVE).gz: $(ALLFILES) $(RM) $(ARCHIVE) $(ARCHIVE).Z tar crvf $(ARCHIVE) $(ALLFILES) gzip $(ARCHIVE) tar : $(ARCHIVE).gz rel1: ci -q -u$(REV) $(MAKEFILE) $(INCLUDES) $(SOURCES:decode.c=) #release : # rcs -l $(ALLFILES) # ci -f -u$(REV) decode.c # @@echo "Ignore ci warnings that unchanged file checkins are aborted" # make rel1 REV=`rlog decode.c | awk '$$1 == "head:" {print $$2}'` # rcs -u $(ALLFILES) release : rcs -l $(ALLFILES) @@echo "Ignore ci warnings that unchanged file checkins are aborted" ci -f -q -u$(REV) $(MAKEFILE) $(INCLUDES) $(SOURCES) rcs -u $(ALLFILES) clean : $(RM) *.o ## dependencies $(OBJECTS): $(INCLUDES) extract : extract.o file.o range.o atlas.o ctd.o no3.o spec.o ac9.o gf.o $(RM) extract $(LD) -o extract $(LDFLAGS) extract.o file.o range.o atlas.o ctd.o \ no3.o spec.o ac9.o gf.o $(LIBS) decode : decode.o file.o atlas.o ctd.o no3.o spec.o ac9.o gf.o $(RM) decode $(LD) -o decode $(LDFLAGS) decode.o file.o atlas.o ctd.o no3.o \ spec.o ac9.o gf.o $(LIBS) decodeb : decodeb.o $(RM) decodeb $(LD) -o decodeb $(LDFLAGS) decodeb.o m1 : m1.o $(RM) m1 $(LD) -o m1 $(LDFLAGS) m1.o $(LIBS) m2 : m2.o $(RM) m2 $(LD) -o m2 $(LDFLAGS) m2.o $(LIBS) m3 : m3.o $(RM) m3 $(LD) -o m3 $(LDFLAGS) m3.o $(LIBS) drifter : drifter.o $(RM) drifter $(LD) -o drifter $(LDFLAGS) drifter.o $(LIBS) getoasis : getoasis.o port.o range.o $(LD) -o getoasis $(LDFLAGS) getoasis.o port.o range.o sendoasis : sendoasis.o port.o $(LD) -o sendoasis $(LDFLAGS) sendoasis.o port.o getctd : getctd.o ctd.o $(RM) getctd $(LD) -o getctd $(LDFLAGS) getctd.o ctd.o $(LIBS) calsh6 : calsh6.f f77 -o$(PROGRAM) $(FFLAGS) $@@ chktmp : chktmp.c cc -o chktmp $(CFLAGS) chktmp.c $(LIBS) argos.o : argos.c $(INCLUDES) $(CC) $(CFLAGS) -o argos.o argos.c argfile.o : argfile.c decode.h $(CC) $(CFLAGS) -o argfile.o argfile.c argos : argos.o argfile.o spec.o ac9.o $(LD) -o argos $(LDFLAGS) argos.o argfile.o spec.o ac9.o $(LIBS) argextract.o : argextract.c $(INCLUDES) $(CC) $(CFLAGS) -o argextract.o argextract.c argextract : argextract.o argfile.o spec.o ac9.o $(LD) -o argextract $(LDFLAGS) argextract.o argfile.o spec.o ac9.o $(LIBS) argfilter : argfilter.c $(CC) $(CLDFLAGS) -o argfilter argfilter.c argfilt1 : argfilt1.c $(CC) $(CLDFLAGS) -o argfilt1 argfilt1.c @ 2.8 log @Archiving sources prior to porting to DOS/Windows @ text @d27 1 a27 1 argfile.c argfilter.c d36 2 a37 2 CC = /iag/local/bin/gcc LD = /iag/local/bin/gcc d87 1 a87 1 extract : extract.o file.o range.o atlas.o ctd.o no3.o spec.o ac9.o d90 1 a90 1 no3.o spec.o ac9.o $(LIBS) d92 1 a92 1 decode : decode.o file.o atlas.o ctd.o no3.o spec.o ac9.o d95 1 a95 1 spec.o ac9.o $(LIBS) a100 4 hexdecode : hexdecode.o $(RM) hexdecode $(LD) -o hexdecode $(LDFLAGS) hexdecode.o d109 4 d118 1 a118 1 $(LD) -o getoasis $(LDFLAGS) getoasis.o port.o range.o $(LIBS) d120 3 d150 3 @ 2.7 log @Archiving various changes @ text @d23 1 a23 1 INCLUDES = decode.h d26 2 a27 1 spec.c port.c getoasis.c calsh6.f d34 4 a37 2 CC = cc LD = cc d42 1 a42 1 INCLUDEFLAGS = -I. -I/usr/include d44 2 a45 1 CFLAGS = -c -Aa $(DEBUGFLAG) $(INCLUDEFLAGS) -D_HPUX_SOURCE d47 1 d54 1 a54 1 default : decode extract d66 7 a74 1 ci -f -u$(REV) decode.c d76 1 a76 1 make rel1 REV=`rlog decode.c | awk '$$1 == "head:" {print $$2}'` a91 5 extract1 : extract1.o file1.o range.o atlas.o ctd.o no3.o spec.o ac9.o $(RM) extract1 $(LD) -o extract1 $(LDFLAGS) extract1.o file1.o range.o atlas.o ctd.o \ no3.o spec.o ac9.o $(LIBS) a96 5 decode1 : decode1.o file.o atlas.o ctd.o no3.o spec.o ac9.o $(RM) decode1 $(LD) -o decode1 $(LDFLAGS) decode1.o file.o atlas.o ctd.o no3.o \ spec.o ac9.o $(LIBS) d129 18 @ 2.6 log @Update for version in use during 1995-6 deployment @ text @d25 2 a26 1 SOURCES = decode.c extract.c file.c range.c atlas.c ctd.c no3.c \ spec.c port.c a35 1 PRINT = pr d40 1 a40 1 DEBUGFLAG = d49 1 a49 1 default : decode d51 1 a51 4 print : $(PRINT) $(ALLFILES) | remsh hp850 lp -opr $(ARCHIVE).Z: $(ALLFILES) d54 1 a54 1 compress $(ARCHIVE) d56 1 a56 1 tar : $(ARCHIVE).Z d81 5 d91 5 a127 4 foo : foo.o port.o range.o $(LD) -o foo $(LDFLAGS) foo.o port.o range.o $(LIBS) @ 2.5 log @Accumulated minor changes, mainly due to move to tsunami @ text @d25 1 a25 1 SOURCES = decode.c extract.c file.c range.c atlas.c ctd.c spec.c port.c d79 1 a79 1 extract : extract.o file.o range.o atlas.o ctd.o spec.o d82 1 a82 1 spec.o $(LIBS) d84 1 a84 1 decode : decode.o file.o atlas.o ctd.o spec.o d86 2 a87 1 $(LD) -o decode $(LDFLAGS) decode.o file.o atlas.o ctd.o spec.o $(LIBS) d93 3 a95 3 specdark : specdark.o atlas.o ctd.o spec1.o $(RM) specdark $(LD) -o specdark $(LDFLAGS) specdark.o atlas.o ctd.o spec1.o $(LIBS) a108 3 gps : gps.o port.o $(LD) -o gps $(LDFLAGS) gps.o port.o $(LIBS) a111 3 getspect : getspect.o $(LD) -o getspect $(LDFLAGS) getspect.o $(LIBS) d116 2 a117 2 calsh5 : calsh5.f f77 -o$(PROGRAM) $(FFLAGS) calsh5.f d121 4 @ 2.4 log @Added support for date ranges in cfg file @ text @d25 1 a25 1 SOURCES = decode.c extract.c file.c atlas.c ctd.c spec.c d40 1 a40 1 DEBUGFLAG = -g d79 1 a79 1 extract : extract.o file.o atlas.o ctd.o spec.o d81 2 a82 1 $(LD) -o extract $(LDFLAGS) extract.o file.o atlas.o ctd.o spec.o $(LIBS) d111 2 a112 2 getoasis : getoasis.o port.o $(LD) -o getoasis $(LDFLAGS) getoasis.o port.o $(LIBS) @