⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 支持X/YModem和cis_b+协议的串口通讯程序
💻
字号:
##  Makefile for XC for use with GNU Make#  .PHONY	: all bin clean clobber distclean eline install spotless uninstall zmodemSHELL	= /bin/sh#WARN 	= -Wall -ansi -pedantic -Wshadow -Wmissing-prototypes#machine = -m486CC	= gcc GCCOPT	= -pipe -O2 -fno-strength-reduce -fomit-frame-pointer $(machine) #GCCOPT	= -O -gCDEFS	= -D_POSIX_SOURCE=1CFLAGS	= $(WARN) $(CDEFS) $(GCCOPT)prefix	= /usr/localbindir	= $(prefix)/binlibdir	= $(prefix)/lib/xc mandir	= /usr/man/man1catdir	= /var/catman/cat1manown	= -o root -g manbinown	= -o root -g root export CC CFLAGS manown binown# cpost pattern rules for GNU Make# %.ps : %.h# 	cpost $(XCFLAGS) $< >$@# 	echo "quit" >>$@# # %.ps : %.c# 	cpost $(XCFLAGS) $< >$@# 	echo "quit" >>$@# # %.lj : %.ps# 	gs -sDEVICE=ljet4 -dNOPAUSE -sOutputFile=$@ $<INSTALL	= installLDFLAGS	= -ltermcap editline/libedit.aNROFF 	= groff -mandoc# defines for use with cextract under LinuxCXDEFS = -D__linux__ -Dlinux -D__i386__ -D__i386 -D__GNUC_MINOR__=7 -Di386\	-D__unix -D__unix__ -D__GNUC__=2 -D__linux -Dunix# you should have all of these files:SRCS =	xcb+.c xcdbglog.c xcdial.c xcmain.c xcport.c \               xcscrpt.c xcsubs.c xcterm.c xcxmdm.cOBJS =	xcb+.o xcdbglog.o xcdial.o xcmain.o xcport.o \               xcscrpt.o xcsubs.o xcterm.o xcxmdm.oall:	xc crc xc.1 bin	@echo "All targets are up to date"	@echo "Now you may execute 'make install'"xc:	$(OBJS) eline	$(CC) $(CFLAGS) $(OBJS) -o xc $(LDFLAGS) uninstall:	rm -f $(bindir)/xc $(mandir)/xc.1 $(catdir)/xc.1.*	rm -f $(bindir)/crc $(mandir)/crc.1 $(catdir)/crc.1.*install: ./bin/xc ./bin/crc xc.1 crc.1	@echo " "	$(INSTALL) $(binown) -m 755 -s ./bin/xc $(bindir) 	$(INSTALL) $(binown) -m 755 -s ./bin/crc $(bindir) 	$(INSTALL) $(manown) -m 644 xc.1 $(mandir)	$(INSTALL) $(manown) -m 644 crc.1 $(mandir)	@echo " "	@echo " "	@echo "You will want to manually install 'phonelist' and"	@echo "the 'xc.init' files in $(libdir). Or alternatively they"	@echo "may be installed in your home directory. Be careful not"	@echo "to clobber your old versions!"	@echo " "	@echo "See the 'dotfiles' directory for sample scripts."	@echo "The sample xc scripts (.aus .autocis .callhq .cisdial .exrc"	@echo ".pass .phonelist .rz .sz .temp_opt .uni .xc) should be manually"	@echo "moved to the $(libdir) directory.  The shell scripts (call"	@echo "callback cisdownload) should be moved to the $(INSDIR) directory."	@echo	@echo "We do not do this automatically, as you may want to recompile xc"	@echo "with different options, yet not touch these scripts once you've"	@echo "personalized them with your own passwords and telephone numbers."	@echo " "xc.1:	xc.nro	cp xc.nro xc.1clean:	rm -f $(OBJS) xc core erro xc.1 crcclobber: clean	rm -f $(OBJS) xc core tags erro xc.out xc.man	cd editline ; $(MAKE) clean distclean:	$(MAKE) clobberspotless: clobber	rm -f ./bin/crc ./bin/xc$(OBJS): xc.heline:	cd editline ; $(MAKE) allprotos:	cextract +a -c -P +p -s -DRLINE $(CXDEFS) -o xcxtr.h $(SRCS)bin: xc crc	cp  ./xc ./bin	cp  ./crc ./bin	strip ./bin/xc ./bin/crc###########################################  mostly unused stuff below here ... ###########################################xc.man:	myman xc.nro	cat myman xc.nro | grep -v '^\.tm ' | tbl -C >xc.manxc.out:	xc.man	if [ -d $(catdir) ]; then \		$(NROFF) xc.man > xc.out; \	else \			cat xc.man >xc.out; \	fishar:	shar -awF -L51 -nXC -oXC -s jpr@jpr.com $(MANIFEST)	@ls -l XC.??taz:	tar cf - $(MANIFEST) | compress > XC.TAR.Z	@ls -l *.Ztah:	tar cf - $(MANIFEST) | compress -H > XC.TAR.Z	@ls -l *.Zlha:	lha c XC $(MANIFEST)	@ls -L XC.A XC.lhashark:	shark $(MANIFEST) > XC.SHK	@ls -l *SHKmanifest:	ls -al * >Manifest		chmod a+w Manifest

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -