# First, define the tmp directory all: track follow stop s g index turn+ turn- offsets nn ss ee ww zero \ col icol off2 ioff2 fixed zenith service catalog newobject dialing\ keypad showall seeking idial dial info rate wiro_offsets setcol setdial \ makecorefile refresh clrusr rhpad turn+ra turn+dec turn-ra turn-dec dome \ setnod LOGF = /usr/local/wiro/lib/logf.o #################### # First, some maintanence things ##################### backup: tar cvf track.tar *.c *.h makefile *,v todo RCS compress track.tar mv track.tar.Z track.taz #sourcebackup is supposed to just snag the current version. No RCS. sourcebackup: tar cvf track.tar *.c *.h makefile compress track.tar mv track.tar.Z track.taz clean: -rm *.o tovax: kermit tovax ####################################################### # The next few are various testing programs. ################ test1.o: test1.c gcc -c test1.c test1: test1.o cc -X -m test1.o -o test1 testport.o: testport.c gcc -c -g testport.c testport: testport.o ../lib/openport.o cc -X -m testport.o ../lib/openport.o -o testport ################### # Utility routines objects ################### get_tinfo.o: get_tinfo.c wiro.h wtrack.h gcc -g -c get_tinfo.c times.o: times.c gcc -g -c times.o times.c tscreen.o: tscreen.c wiro.h wtrack.h gcc -c -g tscreen.c oblecl.o: oblecl.c wtrack.h gcc -c -g oblecl.c lonobl.o: lonobl.c wtrack.h gcc -c -g lonobl.c annabr.o : annabr.c wtrack.h gcc -c -g annabr.c nutation.o: nutation.c wtrack.h gcc -c -g nutation.c julian.o: julian.c wtrack.h gcc -c -g julian.c str2dec.o: str2dec.c gcc -c -g str2dec.c rem.o: rem.c gcc -c -g rem.c GPIBinit.o: GPIBinit.c GPIBports.h gcc -g -c GPIBinit.c GPIBports.o: GPIBports.c GPIBports.h wirotypes.h gcc -g -c GPIBports.c angles.o: angles.c gcc -c -g angles.c hr_hms.o: hr_hms.c wtrack.h gcc -c -g hr_hms.c track.o: track.c GPIBports.h worm_corr.h wiro.h wtrack.h wirotypes.h \ parameters.h gcc -c -g track.c diagnostic.o: diagnostic.c wiro.h parameters.h GPIBports.h wirotypes.h track.h\ wtrack.h gcc -g -c -Wall diagnostic.c track: track.o GPIBports.o angles.o tscreen.o hr_hms.o rem.o \ openport.o times.o setspeed.o diagnostic.o $(LOGF) # gcc -X -m -v track.o GPIBports.o angles.o tscreen.o hr_hms.o rem.o \ # openport.o \ # /lib/thread/libgnu.a /lib/thread/init.o /lib/thread/libc_p.a \ # /lib/thread/libc.a \ # -o track cc -X -m track.o GPIBports.o angles.o tscreen.o hr_hms.o rem.o \ openport.o times.o setspeed.o diagnostic.o $(LOGF)\ -o track -lgnu chmod 711 track chmod +s track ####################################################### follow.o: follow.c wiro.h gcc -c -g follow.c follow: follow.o str2dec.o $(LOGF) cc -X -m follow.o str2dec.o $(LOGF) -o follow -lgnu chmod 711 follow chmod +s follow ####################################################### pcat.o: pcat.c wiro.h gcc -c -g pcat.c pcat: pcat.o str2dec.o cc -X -m pcat.o str2dec.o -o pcat -lgnu ####################################################### stop.o: stop.c wiro.h gcc -c -g stop.c stop: stop.o $(LOGF) cc -X -m stop.o $(LOGF) -o stop -lgnu chmod 711 stop chmod +s stop s: stop ln -s stop s g: stop ln -s stop g index: stop ln -s stop index turn+: stop ln -s stop turn+ turn-: stop ln -s stop turn- turn-dec: stop ln -s stop turn-dec turn+dec: stop ln -s stop turn+dec turn-ra: stop ln -s stop turn-ra turn+ra: stop ln -s stop turn+ra quit: stop ln -s stop quit ####################################################### dome.o : dome.c wiro.h gcc -c -g dome.c dome: dome.o $(LOGF) cc -X -m dome.o $(LOGF) -o dome -lgnu chmod 711 dome chmod +s dome ####################################################### offsets.o : offsets.c wiro.h gcc -c -g offsets.c offsets: offsets.o $(LOGF) cc -X -m offsets.o $(LOGF) -o offsets -lgnu chmod 711 offsets chmod +s offsets nn: offsets ln -s offsets nn ss: offsets ln -s offsets ss ee: offsets ln -s offsets ee ww: offsets ln -s offsets ww zero: offsets ln -s offsets zero col: offsets ln -s offsets col icol: offsets ln -s offsets icol off2: offsets ln -s offsets off2 ioff2: offsets ln -s offsets ioff2 dial: offsets ln -s offsets dial idial: offsets ln -s offsets idial setcol: offsets ln -s offsets setcol setdial: offsets ln -s offsets setdial ####################################################### fixed.o : fixed.c wiro.h gcc -c -g fixed.c fixed: fixed.o $(LOGF) cc -X -m fixed.o $(LOGF) -o fixed -lgnu chmod 711 fixed chmod +s fixed zenith: fixed ln -s fixed zenith service: fixed ln -s fixed service ####################################################### dialing.o : dialing.c wiro.h gcc -c -g dialing.c dialing: dialing.o $(LOGF) cc -X -m dialing.o $(LOGF) -o dialing -lgnu chmod 711 dialing chmod +s dialing ####################################################### catalog.o: catalog.c wiro.h gcc -c -g catalog.c catalog: catalog.o $(LOGF) cc -X -m catalog.o $(LOGF) -o catalog -lgnu chmod 711 catalog chmod +s catalog newobject: catalog ln -s catalog newobject ####################################################### keypad.o: keypad.c wiro.h wirotypes.h gcc -c -g keypad.c keypad: keypad.o $(LOGF) cc -X -m keypad.o $(LOGF) -o keypad -lgnu chmod 711 keypad chmod +s keypad ####################################################### rhpad: rhpad.o get_tinfo.o $(LOGF) gcc -X -v -o rhpad rhpad.o get_tinfo.o $(LOGF) -lgnu rhpad.o: rhpad.c wiro.h wirotypes.h gcc -c -g rhpad.c chmod 711 rhpad chmod +s rhpad ####################################################### setnod: setnod.o get_tinfo.o $(LOGF) gcc -X -v -o setnod setnod.o get_tinfo.o $(LOGF) -lgnu setnod.o: setnod.c wiro.h wirotypes.h gcc -c -g setnod.c chmod 711 setnod chmod +s setnod ####################################################### spiral: spiral.o get_tinfo.o $(LOGF) cc -X -m -o spiral spiral.o get_tinfo.o $(LOGF) -lgnu chmod 711 spiral chmod +s spiral spiral.o: spiral.c wiro.h gcc -c -g spiral.c ####################################################### rate.o: rate.c wiro.h wirotypes.h gcc -c -g rate.c rate: rate.o times.o $(LOGF) cc -X -m rate.o times.o $(LOGF) -o rate -lgnu chmod 711 rate chmod +s rate ####################################################### thereyet.o: seeking.c wiro.h wirotypes.h gcc -c -g thereyet.c seeking: thereyet.o seeking.c cc -X seeking.c thereyet.o -o seeking showall: showall.c cc -o showall showall.c ####################################################### wiro_offsets: wiro_offsets.c wiro.h get_tinfo.o $(LOGF) gcc -g -o wiro_offsets wiro_offsets.c get_tinfo.o $(LOGF) chmod 711 wiro_offsets chmod +s wiro_offsets ####################################################### info: info.c wiro.h get_tinfo.o gcc -g -o info info.c get_tinfo.o makecorefile: makecorefile.c wiro.h get_tinfo.o $(LOGF) gcc -g -o makecorefile makecorefile.c get_tinfo.o $(LOGF) chmod 711 makecorefile chmod +s makecorefile refresh: refresh.c wiro.h get_tinfo.o gcc -g -o refresh refresh.c get_tinfo.o clrusr: clrusr.c wiro.h get_tinfo.o gcc -g -o clrusr clrusr.c get_tinfo.o