#====================================================================== # M A K E F I L E . D I S T # doc: Fri Feb 14 14:24:17 1992 # dlm: Tue Aug 17 11:01:13 1993 # (c) 1992 ant@julia # uE-Info: 108 56 T 0 0 72 0 2 8 ofnI #====================================================================== # Tweakables CCFLAGS = -O LIBSHADE = ../rayshade.4.0/libshade/libshade.a INCSHADE = -I../rayshade.4.0/libshade LIBRAY = ../rayshade.4.0/libray/libray.a INCRAY = -I../rayshade.4.0/libray -I../rayshade.4.0 LIBURT = ../urt/lib/librle.a INCURT = -I../urt/include LIBRPC = INCRPC = INSTDIR = ${HOME}/bin INSTUSER = ant INSTGROUP = other INSTMODE = 0111 QUIRKS = -DNOSYSLOG_QUIRK SYSOBJS = # tempnam.o getcwd.o waitpid.o socketpair.o SYSLIBS = DEPCPP = /usr/lib/cpp -M #--------------- Stuff ------------------------------------------------ IR = inetray IRS = ${IR}.start IRD = rpc.${IR}d IRPING = ${IR}.ping IRKILL = ${IR}.kill DEREG = rpc.dereg NETINFO = netinfo IRSTART = irstart GENERR = generr RAYLIBS = ${LIBSHADE} ${LIBRAY} ${LIBURT} -lm CPPFLAGS = ${INCRPC} ${INCURT} ${INCSHADE} ${INCRAY} ${QUIRKS} CFLAGS = ${CCFLAGS} ${CPPFLAGS} SOURCE = *.c *.h *.x Makefile .inetrayrc \ mole.ray irstart INSTALL README POO \ SUPPORT FAQ TODO HISTORY RELNOTES IROBJ = ${IR}_xdr.o ${IRS}_xdr.o ${IR}.o \ comm.o rcfile.o utils.o sendrpc.o \ clnt_dirbcast.o lbuffer.o ${SYSOBJS} IRDOBJ = ${IR}_svc.o ${IR}_xdr.o ${IRD}.o \ irtrace.o utils.o lbuffer.o stderr.o \ ${SYSOBJS} IRSOBJ = ${IRS}_svc.o ${IRS}_xdr.o ${IRS}.o \ stderr.o ${SYSOBJS} IRKILLOBJ = ${IRKILL}.o ${IR}_xdr.o ${IRS}_xdr.o \ comm.o rcfile.o utils.o sendrpc.o clnt_dirbcast.o \ ${SYSOBJS} IRPINGOBJ = ${IRPING}.o ${IR}_xdr.o ${IRS}_xdr.o \ comm.o rcfile.o utils.o sendrpc.o clnt_dirbcast.o \ ${SYSOBJS} GENERROBJ = ${GENERR}.o stderr.o ${SYSOBJS} #--------------- Programs --------------------------------------------- SVCPRG = ${IRD} ${IRS} CLNPRG = ${IR} ${IRKILL} ${IRPING} ${IRSTART} AUXPROGS = ${DEREG} ${NETINFO} ${GENERR} PROGS = ${SVCPRG} ${CLNPRG} ${AUXPROGS} all: server client auxprogs server: ${SVCPRG} client: ${CLNPRG} auxprogs: ${AUXPROGS} new: clean depend all brandnew: spotless rpcgen depend ${MAKE} all #---------------------------------------------------------------------- ${IR}: ${IROBJ} ${CC} ${CFLAGS} ${IROBJ} ${RAYLIBS} ${LIBRPC} ${SYSLIBS} -o $@ ${IRD}: ${IRDOBJ} ${CC} ${CFLAGS} ${IRDOBJ} ${RAYLIBS} ${LIBRPC} ${SYSLIBS} -o $@ ${IRKILL}: ${IRKILLOBJ} ${CC} ${CFLAGS} ${IRKILLOBJ} ${LIBRPC} ${SYSLIBS} -o $@ ${IRPING}: ${IRPINGOBJ} ${CC} ${CFLAGS} ${IRPINGOBJ} ${LIBRPC} ${SYSLIBS} -o $@ ${IRS}: ${IRSOBJ} ${CC} ${CFLAGS} ${IRSOBJ} ${LIBRPC} ${SYSLIBS} -o $@ ${DEREG}: ${DEREG}.o ${CC} ${CCFLAGS} ${DEREG}.o ${LIBRPC} ${SYSLIBS} -o $@ ${NETINFO}: ${NETINFO}.o ${CC} ${CCFLAGS} ${NETINFO}.o ${SYSLIBS} -o $@ ${GENERR}: ${GENERROBJ} ${CC} ${CCFLAGS} ${GENERROBJ} ${SYSLIBS} -o $@ #--------------- Support ---------------------------------------------- rpcgen: @ echo Making RPCGen Stuff @ rpcgen -h -o ${IR}.h ${IR}.x # header files @ rpcgen -h -o ${IRS}.h ${IRS}.x @ rpcgen -c -o ${IR}_xdr.c ${IR}.x # Xdr routines @ rpcgen -c -o ${IRS}_xdr.c ${IRS}.x @ rpcgen -I -K -1 -m -o ${IR}_svc.c ${IR}.x # Server side @ rpcgen -m -L -o ${IRS}_svc.c ${IRS}.x #--------------- Install ---------------------------------------------- install: @- cd ${INSTDIR}; rm -f ${PROGS} @- cp ${PROGS} ${INSTDIR} @- cd ${INSTDIR}; chown ${INSTUSER} ${PROGS} @- cd ${INSTDIR}; chgrp ${INSTGROUP} ${PROGS} @- cd ${INSTDIR}; chmod ${INSTMODE} ${PROGS} @- cd ${INSTDIR}; chmod +r ${IRSTART} #--------------- Aux Targets ------------------------------------------ .SUFFIXES: .ray .rle .ray.rle: inetray -O $*.rle $*.ray bak:: @- mkdir bak @ cp ${SOURCE} bak old:: @- mkdir old @- rm -f old/*.* @ cp ${SOURCE} old @ cp Makefile.dist old/Makefile @ cp .inetrayrc.dist old/.inetrayrc tar: test -f Makefile.dist test -f .inetrayrc.dist @ touch .inetrayrc @ mv Makefile Makefile.local @ cp Makefile.dist Makefile @ mv .inetrayrc .inetrayrc.local @ cp .inetrayrc.dist .inetrayrc @- tar cvf inetray.tar ${SOURCE} @ mv Makefile.local Makefile @ mv .inetrayrc.local .inetrayrc @- rm -f inetray.tar.Z @- compress inetray.tar @- echo @- echo "DONE! (change name to inetray.x.y.z.tar.Z)" @- echo patch: test -f Makefile.dist test -f .inetrayrc.dist @ touch .inetrayrc @ mv Makefile Makefile.local @ cp Makefile.dist Makefile @ mv .inetrayrc .inetrayrc.local @ cp .inetrayrc.dist .inetrayrc @- mkdir new @- cp ${SOURCE} new @- diff -c old new > patchX @ mv Makefile.local Makefile @ mv .inetrayrc.local .inetrayrc @- echo "patchX generated. checking..." @- mkdir apply @- cp old/* old/.* apply @- cd apply; patch < ../patchX @- echo @- echo "Diff'ing..." @- echo @- diff -c apply new @- rm -fr apply new @- echo @- echo " - check patchlevel.h" @- echo clean: @- rm -f *.o .inetray.key* inetray inetray.ping inetray.kill @- rm -f inetray.start rpc.dereg rpc.inetrayd spotless: clean @- rm -f *.o *_clnt* *_svc* *_xdr* ${IR}.h ${IRS}.h #--------------- Depend ----------------------------------------------- depend: clean @ echo Making Dependencies @ (sed '/^# DO NOT DELETE THIS LINE/q' Makefile && \ for src in *.c *.h; do ${DEPCPP} ${CPPFLAGS} $$src; done |\ sed 's/: \.\//: /' |\ sed '/\//d' \ ) >Makefile.new @ cp Makefile Makefile.bak @ cp Makefile.new Makefile @ rm Makefile.new # DO NOT DELETE THIS LINE clnt_dirbcast.o: clnt_dirbcast.c comm.o: comm.c comm.o: inetray.h comm.o: config.h comm.o: inetray.start.h comm.o: rcfile.h comm.o: config.h comm.o: common.h comm.o: utils.h comm.o: version.h generr.o: generr.c generr.o: version.h generr.o: patchlevel.h generr.o: config.h generr.o: common.h generr.o: stderr.h getcwd.o: getcwd.c inetray.o: inetray.c inetray.o: inetray.h inetray.o: config.h inetray.o: config.h inetray.o: common.h inetray.o: comm.h inetray.o: rcfile.h inetray.o: lbuffer.h inetray.o: version.h inetray.o: patchlevel.h inetray.kill.o: inetray.kill.c inetray.kill.o: inetray.h inetray.kill.o: config.h inetray.kill.o: config.h inetray.kill.o: common.h inetray.kill.o: comm.h inetray.kill.o: version.h inetray.kill.o: patchlevel.h inetray.ping.o: inetray.ping.c inetray.ping.o: inetray.h inetray.ping.o: config.h inetray.ping.o: config.h inetray.ping.o: common.h inetray.ping.o: comm.h inetray.ping.o: version.h inetray.ping.o: patchlevel.h inetray.start.o: inetray.start.c inetray.start.o: inetray.h inetray.start.o: config.h inetray.start.o: config.h inetray.start.o: common.h inetray.start.o: stderr.h inetray.start.o: inetray.start.h inetray.start_svc.o: inetray.start_svc.c inetray.start_svc.o: inetray.start.h inetray.start_xdr.o: inetray.start_xdr.c inetray.start_xdr.o: inetray.start.h inetray_svc.o: inetray_svc.c inetray_svc.o: inetray.h inetray_svc.o: config.h inetray_svc.o: config.h inetray_xdr.o: inetray_xdr.c inetray_xdr.o: inetray.h inetray_xdr.o: config.h inetray_xdr.o: config.h irtrace.o: irtrace.c irtrace.o: irtrace.h lbuffer.o: lbuffer.c netinfo.o: netinfo.c rcfile.o: rcfile.c rcfile.o: inetray.h rcfile.o: config.h rcfile.o: config.h rcfile.o: common.h rpc.dereg.o: rpc.dereg.c rpc.inetrayd.o: rpc.inetrayd.c rpc.inetrayd.o: version.h rpc.inetrayd.o: patchlevel.h rpc.inetrayd.o: inetray.h rpc.inetrayd.o: config.h rpc.inetrayd.o: config.h rpc.inetrayd.o: common.h rpc.inetrayd.o: irtrace.h rpc.inetrayd.o: utils.h rpc.inetrayd.o: lbuffer.h rpc.inetrayd.o: stderr.h sendrpc.o: sendrpc.c socketpair.o: socketpair.c stderr.o: stderr.c stderr.o: config.h stderr.o: common.h tempnam.o: tempnam.c utils.o: utils.c utils.o: inetray.h utils.o: config.h utils.o: config.h utils.o: common.h waitpid.o: waitpid.c comm.o: comm.h common.o: common.h config.o: config.h inetray.o: inetray.h inetray.o: config.h inetray.start.o: inetray.start.h irtrace.o: irtrace.h lbuffer.o: lbuffer.h patchlevel.o: patchlevel.h prognum.o: prognum.h rcfile.o: rcfile.h stderr.o: stderr.h utils.o: utils.h version.o: version.h