📄 mts
字号:
############################################################################### Instructions to Make, for compilation of ZOT UIP/utility processes## @(MHWARNING)# @(#)$Id: mts,v 1.2 90/11/25 18:56:27 sharpe Exp $############################################################################### The following entries were inserted during MH configurationBINDIR = $(DESTDIR)@(MHBINPATH)ETCDIR = $(DESTDIR)@(MHETCPATH)OPTIONS = @(MHOPTIONS) -I..LDOPTIONS= @(LDOPTIONS)LDOPTLIB= @(LDOPTLIB)CHOWN = @(MHCHOWNPATH)REMOVE = @(MHREMOVE)CC = @(MHCOMPILER)@BEGIN: OPTIMCFLAGS = $(OPTIONS)@END: OPTIM@BEGIN: DEBUGCFLAGS = $(OPTIONS)@END: DEBUGLINT = lintLFLAGS = -bhu $(OPTIONS)LDFLAGS = $(LDOPTIONS)LLIBS =LIBES =LDLIBS = $(LIBES) $(LDOPTLIB)FILPROT = 0644PGMPROT = 0755####################################################################### Here it is...######################################################################all: mts lock clientlint: l-mts l-lock l-clientinstall: inst-all cleaninst-all: inst-mtstailortar:; @touch mtstailor @make -n inst-all > MAKEMTS @chmod +x MAKEMTS tar $(TFLAGS) MAKEMTS mtstailor @rm -f MAKEMTSuninstall:; -cd $(ETCDIR); rm -f mtstailor############################################################################### mts##############################################################################mts: mts.o l-mts:; $(LINT) $(LFLAGS) mts.c $(LLIBS)############################################################################### lock##############################################################################lock: lock.o l-lock:; $(LINT) $(LFLAGS) lock.c $(LLIBS)############################################################################### client##############################################################################client: client.o l-client:; $(LINT) $(LFLAGS) client.c $(LLIBS)############################################################################### mtstailor##############################################################################inst-mtstailor: $(ETCDIR)/mtstailor$(ETCDIR)/mtstailor: mtstailor -if [ ! -f $@ ]; then \ $(REMOVE) $@ zmtstailor; \ cp mtstailor $@; \ else \ echo "Will not overwrite existing $@"; \ fi -@chmod $(FILPROT) $@ -@ls -l $@ -@echo ""############################################################################### Miscellaneous tasks##############################################################################unconfig: distribution -rm -f Makefiledistribution: clean -rm -f mts.c mtstailorclean: unclean -rm -f x* *.ounclean:; -rm -f z* _* :* core eddep makedep MAKEMTS############################################################################### Dependencies##############################################################################MODULES = mts lock clientdepend:; for m in $(MODULES); do ( \ i=`basename $$m .c`; \ echo $$i.o: $$i.c >> makedep; \ grep '^#[ ]*include' $$i.c | \ sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \ -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \ -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \ >> makedep \ ); done echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep echo '$$r makedep' >> eddep echo 'w' >> eddep cp Makefile _Makefile ed - Makefile < eddep rm eddep makedep echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile# DO NOT DELETE THIS LINE# DEPENDENCIES START HEREmts.o: mts.cmts.o: ../../h/strings.h#mts.o: /usr/include/ctype.h#mts.o: /usr/include/stdio.hmts.o: mts.h#mts.o: /usr/include/netdb.h#mts.o: /usr/include/whoami.h#mts.o: /usr/include/sys/utsname.h#mts.o: /usr/include/pwd.h#mts.o: /usr/include/fcntl.hlock.o: lock.clock.o: ../../h/strings.h#lock.o: /usr/include/stdio.hlock.o: mts.h#lock.o: /usr/include/sys/types.h#lock.o: /usr/include/sys/stat.h#lock.o: /usr/include/sys/file.h#lock.o: /usr/include/signal.hclient.o: client.cclient.o: ../../h/strings.h#client.o: /usr/include/stdio.hclient.o: mts.h#client.o: /usr/include/errno.h#client.o: /usr/include/sys/types.h#client.o: /usr/include/sys/socket.h#client.o: /usr/include/netinet/in.h#client.o: /usr/include/netdb.h#client.o: /usr/include/arpa/inet.h# DEPENDENCIES MUST END AT END OF FILE# IF YOU PUT STUFF HERE IT WILL GO AWAY
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -