📄 makefile
字号:
#The optimized version gets strange runtime errors, like the PAUSE command#not working. Add "-unsigned" to make all chars unsigned.dec-osf20: @echo Making C-Kermit $(CKVER) for DEC OSF/1 V2.0... @echo Optimization omitted because it causes runtime errors. @echo See comments in makefile. $(MAKE) osf "KFLAGS= -DOSF20 $(KFLAGS)"dec-osf30: @echo Making C-Kermit $(CKVER) for DEC OSF/1 V3.0... $(MAKE) osf "KFLAGS= -DOSF30 -O2 -Olimit 1760 $(KFLAGS)"#Digital UNIX 3.2du32: @echo Making C-Kermit $(CKVER) for Digital UNIX 3.2... $(MAKE) osf \ "KFLAGS= -DOSF32 -DHDBUUCP -O2 -Olimit 1760 $(KFLAGS)"dec-osf32: $(MAKE) "MAKE=$(MAKE)" du32du40: @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0... $(MAKE) osf \ "KFLAGS= -DOSF40 -DHDBUUCP -unsigned -std1 -O3 -Olimit 1760 $(KFLAGS)"dec-osf40: $(MAKE) "MAKE=$(MAKE)" du40du40-ridiculous-checking: @echo Making C-Kermit $(CKVER) for Digital UNIX 4.0. @echo Checking everything - assumes DECC... $(MAKE) osf "KFLAGS= -DOSF40 -DHDBUUCP -w0 -warnprotos -check \ -portable -unsigned -std1 -O3 -Olimit 1760 $(KFLAGS)"#Sequent DYNIX/ptx 1.2.1dynixptx12: @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.2.1... $(MAKE) wermit \ "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DPTX \ -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -i -O" \ "LNKFLAGS = -i"#Sequent DYNIX/ptx 1.3 or 1.4dynixptx13: @echo Making C-Kermit $(CKVER) for Sequent DYNIX/ptx 1.3 TCP/IP... $(MAKE) wermit \ "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DPTX -DCK_POLL -O \ -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DTCPSOCKET $(KFLAGS) -i" \ "LNKFLAGS = -i" "LIBS = -lsocket -linet -lnsl"#Sequent DYNIX/ptx 2.0, ANSI C compilation#Should work on any hardware platform when DYNIX/ptx runs, including#386, 486, Pentium.dynixptx20: @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...' $(MAKE) wermit \ "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \ -DWAIT_T=int -DNOSETBUF -DPTX -O" \ "LIBS = -lsocket -linet -lnsl"#Sequent DYNIX/ptx 2.0, ANSI C compilation, with cursesdynixptx20c: @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 2.0...' $(MAKE) wermit \ "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \ -DWAIT_T=int -DNOSETBUF -DPTX -DCK_CURSES -DCK_NEWTERM -O" \ "LIBS = -lsocket -linet -lnsl -lcurses -ltermcap"#Sequent DYNIX/ptx 4.0, ANSI C compilation, with cursesdynixptx41c: @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent DYNIX/ptx 4.1...' $(MAKE) wermit \ "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \ -DWAIT_T=int -DNOSETBUF -DPTX -DCK_CURSES -DCK_NEWTERM -O" \ "LIBS = -lsocket -lnsl -lcurses -ltermcap"#Sequent DYNIX 3.0.xdynix3: @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x... $(MAKE) wermit \ "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O \ -DPWUID_T=int -DGID_T=int $(KFLAGS)"#Sequent DYNIX 3.0.x, no ACUCNTRLdynix3noacu: @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.0.x... $(MAKE) wermit "CFLAGS= -DBSD43 -DLCKDIR -DTCPSOCKET -O \ -DUID_T=int -DGID_T=int $(KFLAGS)"#Sequent DYNIX 3.1.xdynix31: @echo Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.x... $(MAKE) wermit \ "CFLAGS= -O -DDYNAMIC -DDCLPOPEN -DLCKDIR -DBSD4 -DTCPSOCKET $(KFLAGS)"#Sequent DYNIX 3.1.2, as above but with curses, to be compiled by gcc 2.3.3.dynix31c: @echo 'Making C-Kermit $(CKVER) for Sequent DYNIX 3.1.2, curses...' $(MAKE) wermit "CFLAGS= -O2 -DDYNAMIC -DDCLPOPEN -DACUCNTRL \ -DBSD43 -DTCPSOCKET -DCK_CURSES -DNOSETBUF -DUID_T=int \ $(KFLAGS)" "LIBS= -lcurses -ltermcap"#Encore, UMAX 4.3 (BSD) but without acucntrl program.encore: $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=$(KFLAGS)"#Encore, as above, but with curses file transfer display included.encorec: $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=-DCK_CURSES $(KFLAGS)" \ "LIBS= -lcurses -ltermcap"#Encore, UMAX 4.3 (BSD) but without acucntrl program.umax43: @echo Making C-Kermit $(CKVER) for Encore UMAX 4.3... $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 wermit \ "CFLAGS= -DBSD43 -DENCORE -DDYNAMIC -DKANJI -DTCPSOCKET $(KFLAGS) -O"#Encore, UMAX 4.2 (BSD)umax42: @echo Making C-Kermit $(CKVER) for Encore UMAX 4.2... $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 wermit \ "CFLAGS= -DBSD4 -DENCORE -DDYNAMIC -DTCPSOCKET $(KFLAGS) -O"#Encore 88K UMAX 5.3 with TCP/IP supportencore88k: @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP...' $(MAKE) wermit \ "CFLAGS = -q ext=pcc -DSVR3 -DTCPSOCKET -DDIRENT \ -DNOGETID_PROTOS -DHDBUUCP -DDYNAMIC $(KFLAGS) -O" "LNKFLAGS ="#Encore 88K UMAX 5.3 with TCP/IP supportencore88kgcc: @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP, gcc...' $(MAKE) wermit CC=gcc CC2=gcc \ "CFLAGS = -DSVR3 -DTCPSOCKET -DDIRENT \ -DNOGETID_PROTOS -DHDBUUCP -DDYNAMIC $(KFLAGS) -O" "LNKFLAGS ="#Berkeley Unix 2.8, 2.9 for PDP-11s with I&D space, maybe also Ultrix-11???#C-Kermit(5A) is simply too large (even turning off almost every feature#available) to run without both I&D space plus overlays. The old comment#suggested running 'pcc' but that won't help. Changing 'cc' to 'ckustr.sed'#will cause a string extraction to be done, saving D space by moving strings#to a file.bsd29: @echo Making C-Kermit $(CKVER) for 2.8 or 2.9BSD. @echo Read the makefile if you have trouble with this... $(MAKE) ovwermit \ "CFLAGS= -DBSD29 -DNODEBUG -DNOTLOG -DNOCSETS -DNOHELP \ -DNOSCRIPT -DNOSPL -DNOXMIT -DNODIAL $(KFLAGS)" \ "LNKFLAGS= -i -lndir" "CC= cc " "CC2= cc"#Convex C1 with Berkeley Unixconvex: @echo Making C-Kermit $(CKVER) for Convex C1 / BSD... $(MAKE) wermit "CFLAGS= -DBSD4 $(KFLAGS) -Dmsleep=mnap"#Convex C210 with Convex/OS 8convex8: @echo Making C-Kermit $(CKVER) for Convex C210 with OS 8 $(MAKE) wermit \ "CFLAGS= -DBSD4 -DTCPSOCKET -DNODEBUG -DDIRENT -DNOFILEH \ -DDYNAMIC $(KFLAGS) -DSIG_V -Dmsleep=mnap"#Convex C2 with Convex OS 9.1 (should also work with 8.1 or later)#with ANSI C compiler, uses BSD 4.3 uucp lockfile convention.convex9: @echo Making C-Kermit $(CKVER) for Convex C210 with OS 9.1 $(MAKE) wermit \ "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \ -DDYNAMIC -D__STDC__ -DLCKDIR -Dmsleep=mnap -O -ext -tm c1 $(KFLAGS)" \ "LNKFLAGS = -ext"#Convex C2 with Convex OS 10.1 or later#with gcc 2.x C compilerconvex10gcc: @echo Making C-Kermit $(CKVER) for Convex C2 with OS 10.1 using gcc $(MAKE) wermit \ "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \ -DDYNAMIC -D__STDC__ -Dmsleep=mnap -O2 $(KFLAGS)" CC=gcc CC2=gcc#Cray X-MP or Y-MP UNICOS 6.x or 7.x.#NOTE: NPROC tells how many parallel makes to run. If your Cray has multiple#processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.cray: @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 6.x or 7.0... $(MAKE) wermit NPROC=1 \ "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"#Cray X-MP or Y-MP UNICOS 8.0 Alpha.cray8: @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 8.0 Alpha... $(MAKE) wermit NPROC=1 \ "CFLAGS= -DSVR4 -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS) -O1"#Cray-2 or Cray 3-CSOS#NOTE: NPROC tells how many parallel makes to run. If your Cray has multiple#processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.craycsos: @echo 'Making C-Kermit $(CKVER) for Cray-2/3 CSOS $(MAKE) wermit NPROC=1 \ "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET \ $(KFLAGS) -DCK_ANSIC -DCK_CURSES" "LIBS=-lnet"#Charles River Data Systems Universe with UNOS Version 9.2crds: @echo 'Making C-Kermit $(CKVER) for Charles River Data Systems...' make wermit \ "CFLAGS = -DATTSV -DNOANSI -DDIRENT -DDYNAMIC -DLONGFN -DTCPSOCKET \ -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETREU \ -Dsuspend=ksuspend $(KFLAGS) -O" "LNKFLAGS ="#NeXTSTEP 1.0 through 3.2.#Includes fullscreen file transfer display (curses) and TCP/IP support.#Uses shared library to make executable program about 80K smaller.#Remove "LIBS = -lsys_s" if this causes trouble.next: @echo Making C-Kermit $(CKVER) for NeXTSTEP... @echo 'If you get errors in ckutio.c about w_S, w_T, etc,' @echo 'add KFGLAGS=-DNOREDIRECT to your make command.' $(MAKE) wermit \ "CFLAGS= -DNEXT -DNOSETBUF -DTCPSOCKET -DDYNAMIC -DLCKDIR -DKANJI \ -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"nextc: $(MAKE) "MAKE=$(MAKE)" nextnextg: $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wallnextgc: $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall#NeXTSTEP 3.3.#Includes fullscreen file transfer display and TCP/IP.next33: @echo Making C-Kermit $(CKVER) for NeXTSTEP 3.3... $(MAKE) wermit \ "CFLAGS= -DNEXT33 -DNOSETBUF -DTCPSOCKET -DDYNAMIC -DLCKDIR -DKANJI \ -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"#NeXT with malloc debuggernextmd: @echo Making C-Kermit $(CKVER) for NeXT with malloc debugging... $(MAKE) mermit \ "CFLAGS= -DNEXT -DNOSETBUF -DTCPSOCKET -DDYNAMIC -DLCKDIR -DKANJI \ -DCK_CURSES $(KFLAGS) -O -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG" \ "LIBS = -lsys_s -lcurses -ltermcap"#Build for NeXTSTEP with "fat" binaries (MABs) that run on both Motorola#and Intel platforms.nextfat: $(MAKE) "MAKE=$(MAKE)" next "KFLAGS=-Wall -arch m68k -arch i386" \ "LNKFLAGS = -arch m68k -arch i386"#NeXTSTEP on Intel Platforms.next486: @echo Making C-Kermit $(CKVER) for NeXTSTEP on Intel Platforms... @echo 'If you get errors in ckutio.c about w_S, w_T, etc,' @echo 'add KFGLAGS=D-DNOREDIRECT to your make command.' $(MAKE) wermit \ "CFLAGS= -DNEXT -DNOSETBUF -DTCPSOCKET -DDYNAMIC -DLCKDIR -DKANJI \ -DNODEBUG -O3 -fno-omit-frame-pointer -fschedule-insns2 -pipe \ -DCK_CURSES $(KFLAGS) -w" "LIBS = -lsys_s -lcurses -ltermcap"#BeBoxbeboxdr7: @echo 'Making C-Kermit $(CKVER) for the BeBox...' @echo 'Link step will fail with default Metroworks linker 64K limit.' @echo 'Code Warrior Gold required to link big programs.' $(MAKE) wermit \ "CC=/boot/develop/tools/mwcc" "CC2=/boot/develop/tools/mwld" \ "CFLAGS= -DBEBOX -DBE_DR_7 -DPOSIX -DNOUUCP $(KFLAGS) -O"#BeBoxbebox: @echo 'Making C-Kermit $(CKVER) for the BeBox...' @echo 'Link step will fail with default Metroworks linker 64K limit.' @echo 'Code Warrior Gold required to link big programs.' $(MAKE) wermit \ "CC=/boot/develop/tools
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -