makefile
资源名称:cku197.tar.Z [点击查看]
上传用户:dufan58
上传日期:2007-01-05
资源大小:3407k
文件大小:269k
源码类别:
通讯/手机编程
开发平台:
Windows_Unix
- @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000...
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH
- -DSELECT_H -DCLSOPN -DNOTTYLOCK -O $(KFLAGS)" "LNKFLAGS = -s"
- #IBM AIX 3.2 for RISC System/6000.
- rs6aix32c:
- @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000, TCP+curses...
- @echo In case of Subprogram Too Complex warnings,
- @echo add -qmaxmem=6000 to CFLAGS.
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DCK_ANSIC -DNOREALPATH
- -DCLSOPN -DCK_CURSES -DSELECT_H -DNOTTYLOCK -O $(KFLAGS)"
- "LNKFLAGS = -s" "LIBS=-lcurses"
- aix32:
- $(MAKE) rs6aix32c KTARGET=$${KTARGET:-$(@)}
- #IBM AIX 4.1, 4.1.x on RISC System/6000 or Power Series.
- #Generates common binary for all platforms if using xlc (IBM C compiler).
- #When using gcc, add -mcpu=common to generate common binary.
- #Note that this one needs CK_NEWTERM.
- # Add -bbigtoc in case ld fails with TOC overflow.
- aix41:
- @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT
- -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H
- -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)"
- "LNKFLAGS = -s" "LIBS=-lcurses"
- # Add -bbigtoc in case ld fails with TOC overflow.
- aix41+krb5+krb4:
- @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
- $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT
- -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H
- -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524
- -DCK_ENCRYPTION -DCK_DES
- -I/usr/local/include/
- -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)"
- "LNKFLAGS = -s"
- "LIBS = -L/usr/local/lib -lcurses -lkrb4 -ldes425 -lkrb5
- -lcom_err -lk5crypto"
- #IBM AIX 4.1 (Beta) or AIX 4.1.1 for RISC System/6000 or Power Series
- # Add -bbigtoc in case ld fails with TOC overflow.
- rs6aix41d:
- @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 - debugging...
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -g -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT
- -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H
- -DNOGETUSERSHELL -DRLOGCODE -qcheck -qextchk -qinfo -qproto
- -qflag=i:i -langlvl=ansi -qtbtable=full -bnoquiet -qmaxmem=16000
- $(KFLAGS)" "LNKFLAGS =" "LIBS=-lcurses"
- #Old name for "aix41".
- rs6aix41c:
- $(MAKE) aix41 KTARGET=$${KTARGET:-$(@)}
- #IBM AIX 4.1, 4.1.x, or 4.2 on RISC System/6000 or Power Series,
- # with X.25 support
- #Generates common binary for all platforms if using xlc (IBM C compiler).
- #When using gcc, add -mcpu=common to generate common binary.
- # Add -bbigtoc in case ld fails with TOC overflow.
- aix41x25:
- @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT
- -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H
- -DIBMX25 -DDEBUG -DNOGETUSERSHELL -qmaxmem=16000 -g $(KFLAGS)"
- "LNKFLAGS = -g -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
- -@echo "]0;kermit donec"
- #As above but without -g in LNKFLAGS.
- # Add -bbigtoc in case ld fails with TOC overflow.
- aix41x25o:
- @echo Making C-Kermit $(CKVER) for IBM AIX 4.1.1 RS/6000 or PowerPC...
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DAIXRS -DAIX41 -DSVR4 -DSTERMIOX -DTCPSOCKET -DDIRENT
- -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DSELECT -DSELECT_H
- -DIBMX25 -DNODEBUG -DNOGETUSERSHELL -qmaxmem=16000 $(KFLAGS)"
- "LNKFLAGS = -bI:/lib/pse.exp" "LIBS=-lcurses -lodm -lcfg"
- -@echo "]0;kermit donec"
- #AIX 4.2 -- Must have CK_NEWTERM or echoing is lost after curses.
- # Add -bbigtoc in case ld fails with TOC overflow.
- aix42:
- @echo Making C-Kermit $(CKVER) for IBM AIX 4.2 or higher...
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DAIXRS -DAIX41 -DAIX42 -DSVR4 -DSTERMIOX -DTCPSOCKET
- -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DCK_NEWTERM -DFNFLOAT
- -DSELECT -DSELECT_H -DNOGETUSERSHELL -qmaxmem=16000 -O $(KFLAGS)"
- "LNKFLAGS = -s" "LIBS=-lcurses -lm"
- #AIX 4.3 -- Must NOT have CK_NEWTERM or else C-Kermit hangs after curses.
- # -bbigtoc needed on some systems but not others to avoid TOC overflow.
- # "man ld" says -bbigtoc makes program run slower.
- aix43:
- @echo Making C-Kermit $(CKVER) for IBM AIX 4.3 or higher...
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DAIXRS -DAIX41 -DAIX43 -DSVR4 -DSTERMIOX -DTCPSOCKET
- -DDIRENT -DCK_ANSIC -DCLSOPN -DCK_CURSES -DSELECT -DSELECT_H
- -DFNFLOAT -DNOGETUSERSHELL -qmaxmem=16000 -bbigtoc -O $(KFLAGS)"
- "LNKFLAGS = -s" "LIBS=-lcurses -lm"
- aix44:
- $(MAKE) aix42 "KFLAGS=-DAIX44 -qmaxmem=20000 $(KFLAGS)"
- KTARGET=$${KTARGET:-$(@)}
- aix45:
- $(MAKE) aix42 "KFLAGS=-DAIX45 -qmaxmem=20000 $(KFLAGS)"
- KTARGET=$${KTARGET:-$(@)}
- #Bull DPX/2 with BOS/X, like AIX/RS6000
- bulldpx2:
- @echo Making C-Kermit $(CKVER) for Bull DPX/2 with BOS/X...
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DSVR3 -DDIRENT -DCK_ANSIC -DCKTYP_H=<sys/types.h>
- -DCK_POLL -DNOGETUSERSHELL -DCLSOPN -O $(KFLAGS)"
- "LNKFLAGS = -s"
- #Sun UNIX 3.5 with gcc 2.3.3.
- sunos3gcc:
- @echo Making C-Kermit $(CKVER) for Sun UNIX 3.5 and gcc...
- $(MAKE) xermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)}
- CFLAGS="-g -O -DBSD4 -DTCPSOCKET $(KFLAGS)"
- #SunOS version 4.0, BSD environment, has saved original euid feature.
- # Add "CC=/usr/ucb/cc CC2=/usr/ucb/cc" if necessary.
- # Note: Including Unicode crashes the assembler in ckcuni.c.
- sunos4:
- @echo Making C-Kermit $(CKVER) for SunOS 4.0, BSD environment...
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -O -DSUNOS4 -DFNFLOAT -DNOUNICODE $(KFLAGS)"
- "LIBS=-lm"
- #As above, but with SunLink X.25 support
- sunos4x25:
- @echo SunLink X.25 support
- $(MAKE) "MAKE=$(MAKE)" sunos4 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(KFLAGS) -DFNFLOAT -DSUNX25"
- "LIBS=-lm"
- #SUN OS version 4.1 - 4.1.3, BSD environment, has saved original euid feature.
- #Uses Honey DanBer UUCP. Requires presence of /usr/spool/locks directory.
- # /var/spool/ should be a symbolic link to /usr/spool/.
- # ... or 'make xermit "CC= /usr/ucb/cc " '
- # Note: "xermit" means use the select() version of the CONNECT module.
- sunos41:
- @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD...
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE $(KFLAGS)"
- "LIBS= $(LIBS) -lresolv -lm"
- #As above, but compile with gcc. Gives 24-32K size reduction
- #with gcc 2.1 or 2.2.2. CAUTION: make sure "fixincludes" has been run on
- #the include files, so gcc's are in sync with the regular Sun ones!
- #This includes the curses library for fullscreen file transfer display.
- #NDGPWNAM needed for GCC 2.5.6, not needed for 2.4.0, but it's uncertain
- #whether it will do any harm for 2.4.0 compilation -- if so, remove it.
- sunos41gcc:
- @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc"
- "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT
- -funsigned-char $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
- # As above, but without -funsigned-char so I can see the warnings that
- # everybody else will get when they use ANSI compilers that don't have this
- # option (gsc = gcc signed char).
- sunos41gsc:
- @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc"
- "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT
- $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
- #As above but build with ckucon.c rather than ckucns.c for testing.
- sunos41wgcc:
- @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc"
- "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT
- -funsigned-char $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
- #As above but with ckucon.c rather than ckucns.c (for testing only)
- sunos41gccfork:
- @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc"
- "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT
- -funsigned-char $(KFLAGS)" "LIBS= -lcurses -ltermcap -lresolv -lm"
- #as above but configured for Kerberos IV
- sunos41gcc+krb4:
- @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
- $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc"
- "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT
- -DTCPSOCKET -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4
- -DCK_ENCRYPTION -DCK_DES -DCK_CAST -DBIGBUFOK -funsigned-char
- -I/usr/kerberos/include/
- $(KFLAGS)"
- "LIBS=
- -L/usr/kerberos/lib
- -lcurses -ltermcap -lresolv -lm -lkrb -ldes"
- #as above but configured for SSL/TLS
- sunos41gcc+openssl:
- @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, ssl...
- $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc"
- "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT
- -DCK_AUTHENTICATION -funsigned-char
- -DCK_SSL -DTCPSOCKET -DBIGBUFOK
- -I/w/jaltman2/ssl/openssl-0.9.4/include/
- $(KFLAGS)"
- "LIBS=
- -L/w/jaltman2/ssl/openssl-0.9.4/
- -lcurses -ltermcap -lresolv -lm -lssl -lcrypto"
- #as above but configured for Kerberos IV and SSL/TLS
- sunos41gcc+krb4+openssl:
- @echo Making C-Kermit $(CKVER) for SunOS 4.1, gcc, curses, krb4...
- $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc"
- "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNDGPWNAM -DCK_CURSES -DFNFLOAT
- -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB4 -DCK_ENCRYPTION -DCK_DES
- -DCK_CAST -DCK_SSL -DLIBDES -DTCPSOCKET -DBIGBUFOK -funsigned-char
- -I/usr/kerberos/include/
- -I/w/jaltman2/ssl/openssl-0.9.4/include/
- $(KFLAGS)"
- "LIBS=
- -L/usr/kerberos/lib
- -L/w/jaltman2/ssl/openssl-0.9.4/
- -lcurses -ltermcap -lresolv -lm -lkrb -lssl -lcrypto"
- #SUNOS 4.1 as sunos41 above, but also with curses support
- sunos41c:
- @echo Curses support
- $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(KFLAGS) -DCK_CURSES -DFNFLOAT "
- "LIBS= -lcurses -ltermcap"
- #As SunOS 4.1.x, gcc, configured as Internet Kermit Server.
- # . NOLOCAL removes capability to make connections
- # . TNCODE allows server-side Telnet negotiation.
- sunos41giks:
- @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc for IKS...
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc" "CC2= gcc"
- "CFLAGS= -O -DSUNOS41 -DNDGPWNAM -DFNFLOAT
- -DNOLOCAL -DTNCODE -DNOPUSH $(KFLAGS)"
- "LIBS= -lm -L/usr/local/lib -lpwent -lm -lresolv"
- #SUNOS 4.1 with SunLink X.25 support
- sunos41x25:
- @echo SunLink X.25 support
- $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25
- $(KFLAGS)" "LIBS= $(LIBS) -lresolv -lm"
- #SUNOS 4.1 with SunLink X.25 support and curses
- sunos41x25c:
- @echo SunLink X.25 support + curses
- $(MAKE) "MAKE=$(MAKE)" wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DNOUNICODE -DFNFLOAT -DSUNX25
- -DCK_CURSES $(KFLAGS)" "LIBS= $(LIBS) -lcurses -ltermcap -lresolv -lm"
- #SUN with Solaris 2.0 = SunOS 5.0.
- #Mostly the same as System V R4. Don't use this with later Solaris versions.
- solaris20:
- @echo 'Making C-Kermit $(CKVER) for Sun with Solaris 2.0 and curses...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX
- -DTCPSOCKET -DCK_CURSES -DFNFLOAT -DCK_POLL $(KFLAGS)"
- "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s"
- #SUN with Solaris 2.0.
- #As above, but built with the gcc compiler from the Cygnus CD-ROM.
- solaris20g:
- @echo 'Making C-Kermit $(CKVER) for Sun Solaris 2.0, gcc, and curses..'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DSTERMIOX
- -DTCPSOCKET -DCK_CURSES -DCK_POLL -DFNFLOAT $(KFLAGS)"
- "LIBS= -lsocket -lnsl -lcurses -ltermlib -lm" "LNKFLAGS = -s"
- CC=/opt/cygnus-sol2-1.1/bin/gcc CC2=/opt/cygnus-sol2-1.1/bin/gcc
- #SunOS 5.1 = Solaris 2.1.
- #NOTE: A C compiler is no longer bundled with SunOS 5.1, so to compile C
- #programs, you might have to change your PATH to include the directory
- #/usr/ccs/bin AFTER the directory containing the compiler. SunPRO C is
- #installed by default in /opt/SUNWspro/bin. So a sample PATH might be:
- #
- # /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:
- # /usr/ucb:/usr/sbin:/sbin:.
- #
- # or:
- #
- # /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
- #
- #NOTE 2: Compilation with the Apogee C compiler (apcc) might not work,
- #because it refuses to allow "-Usun". Reportedly, newer releases of apcc
- #(such as 1.057) work OK, use: "make -e sunos51 CC=apcc CC2=apcc".
- solaris21:
- @echo 'Making C-Kermit $(CKVER) for SunOS 5.x....'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP -DFNFLOAT
- -DSELECT -DNODEBUG -DSTERMIOX $(KFLAGS)" "LIBS = -lm" "LNKFLAGS = -s"
- #C-Kermit for Solaris 2.0-2.4 compiled with gcc, includes curses and TCP/IP.
- #Change -O2 to -O if -O2 gives trouble.
- #Remove -Usun if it causes trouble.
- #Your PATH should start with something like:
- # /usr/local/gnu/bin:/usr/ccs/bin:
- #Produces a huge executable -- strip with /usr/ccs/bin/strip (not Gnu strip).
- #Also don't add "LNKFLAGS = -s" -- strip manually instead.
- #Also note: this can NOT be linked statically - Sun makes it impossible.
- #And for Solaris 2.4, you might have to replace:
- # /usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h
- #with /usr/include/sys/stat.h.
- solaris2xg:
- @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
- @echo 'Please read the comments that accompany the solaris2xg target.'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc
- "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT
- -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)"
- "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
- #ditto but no curses.
- solaris2xgnc:
- @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with GNU cc...'
- @echo 'Please read the comments that accompany the solaris2xg target.'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc
- "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DFNFLOAT
- -DDIRENT -DHDBUUCP -DTCPSOCKET $(KFLAGS)"
- "LIBS= -lsocket -lnsl -lm -lresolv"
- solaris22g:
- $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" solaris2xg
- KTARGET=$${KTARGET:-$(@)}
- solaris23g:
- $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" solaris2xg
- KTARGET=$${KTARGET:-$(@)}
- #Solaris 2.4 built with gcc
- solaris24g:
- $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)}
- solaris2xg "KFLAGS=-DSOLARIS24 $(KFLAGS)"
- #Solaris 2.5 built with gcc
- solaris25g:
- $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-funsigned-char -DPOSIX -DSOLARIS25 -DCK_WREFRESH $(KFLAGS)"
- #Solaris 2.6 with gcc
- solaris26g:
- $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xg
- "KFLAGS=-DPOSIX -DSOLARIS26 -DCK_WREFRESH $(KFLAGS)"
- #Solaris 2.6 with gcc, no curses (e.g. because libtermlib is missing).
- solaris26gnc:
- $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)} solaris2xgnc
- "KFLAGS=-DPOSIX -DSOLARIS26 $(KFLAGS)"
- #Solaris 7 with gcc (32-bit)
- solaris7g:
- $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DPOSIX -DSOLARIS7 -DCK_WREFRESH $(KFLAGS)"
- #Solaris 8 with gcc (32-bit)
- solaris8g:
- $(MAKE) "MAKE=$(MAKE)" solaris2xg KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DPOSIX -DSOLARIS8 -DSOLARIS8 -DCK_WREFRESH $(KFLAGS)"
- #Solaris 2.0-2.4, gcc, SunLink X.25 added.
- #NOTE: Can't use xermit target with X.25.
- solaris2xgx25:
- @echo 'Making C-Kermit $(CKVER) for Solaris 2.x + X.25 with GNU cc...'
- @echo 'Please read the comments that accompany the solaris2xg entry.'
- $(MAKE) wermit CC=gcc CC2=gcc KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS -DSTERMIOX -DSELECT -DSUNX25
- -DCK_CURSES -DCK_NEWTERM -DDIRENT -DHDBUUCP -DTCPSOCKET -DFNFLOAT
- $(KFLAGS)"
- "LIBS= -ltermlib -lm -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib
- -lsockx25 -lsocket -lnsl"
- #Solaris 2.5, gcc, SunLink X.25 added.
- solaris25gx25:
- $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)}
- solaris2xg "KFLAGS=-DPOSIX -DSOLARIS25 -DCK_WREFRESH $(KFLAGS)"
- #Solaris 2.6, gcc, SunLink X.25 added.
- solaris26gx25:
- $(MAKE) "MAKE=$(MAKE)" KTARGET=$${KTARGET:-$(@)}
- solaris2xg "KFLAGS=-DPOSIX -DSOLARIS26 -DCK_WREFRESH $(KFLAGS)"
- #Solaris 2.0-2.4, SunPro compiler, includes curses and TCP/IP.
- #When using SUNWspro CC 2.0.1 under Solaris 2.3, be sure all cc patches
- #are applied, otherwise corrupt or truncated object files can result.
- #To build, set your PATH as follows:
- # /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:
- # /usr/ucb:/usr/sbin:/sbin:.
- # or (depending on where the compiler has been installed):
- # /usr/openwin/bin:/export/home/SUNWspro/bin:/usr/ccs/bin:/usr/sbin:/usr/bin.
- #For additional optimization try using "-fast -xO4 -xdepend".
- solaris2x:
- @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -Usun -i -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP -DFNFLOAT
- -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX -DTCPSOCKET $(KFLAGS)"
- "LNKFLAGS = -s" "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
- solaris23:
- $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(KFLAGS)"
- solaris24:
- $(MAKE) "MAKE=$(MAKE)" solaris2x KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DSOLARIS24 $(KFLAGS)"
- # template for Solaris 2.5 and above.
- solaris25x:
- @echo 'Making C-Kermit $(CKVER) for Solaris 2.x with SunPro cc...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DFNFLOAT -O -Usun -i $(KFLAGS)"
- "LNKFLAGS = -s" "LIBS= -ltermlib -lsocket -lnsl -lm -lresolv"
- #Solaris 2.5, SunPro compiler, curses, TCP/IP
- solaris25:
- $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DSOLARIS25 $(KFLAGS)"
- #Solaris 2.6, SunPro compiler, curses, TCP/IP
- solaris26:
- $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DSOLARIS26 $(KFLAGS)"
- #Solaris 7 (aka 2.7)
- solaris7:
- $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DSOLARIS7 $(KFLAGS)"
- #Solaris 8
- solaris8:
- $(MAKE) "MAKE=$(MAKE)" solaris25x KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DSOLARIS8 -DSOLARIS7 $(KFLAGS)"
- #Solaris 2.0-2.3, SunPro compiler, with SunLink X.25 support.
- #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
- #exists and can be dynamically linked.
- #NOTE: Do not change target to xermit -- it doesn't support X.25.
- solaris2x25:
- @echo 'Making C-Kermit $(CKVER) for Solaris 2.x+X.25 with SunPro cc...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DDIRENT
- -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT
- -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)"
- "LNKFLAGS = -s"
- "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib
- -lsockx25 -lsocket -lnsl -lm -lresolv"
- #Solaris 2.4, SunPro compiler, with SunLink X.25 support.
- #This will only run if user has /opt/SUNWconn/lib/libsockx25.so.1
- #exists and can be dynamically linked.
- solaris24x25:
- @echo 'Making C-Kermit $(CKVER) for Solaris 2.4+X.25 with SunPro cc...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DSOLARIS24 -DDIRENT
- -DSUNX25 -DTCPSOCKET -DHDBUUCP -DFNFLOAT
- -DSELECT -DCK_CURSES -DCK_NEWTERM -DSTERMIOX $(KFLAGS)"
- "LNKFLAGS = -s"
- "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib
- -lsockx25 -lsocket -lnsl -lm -lresolv"
- #Solaris 2.5, SunPro compiler, with SunLink X.25 support.
- solaris25x25:
- @echo 'Making C-Kermit $(CKVER) for Solaris 2.5+X.25 with SunPro cc...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DSOLARIS25 -DDIRENT -DSUNX25
- -DTCPSOCKET -DHDBUUCP -DPOSIX -DCK_WREFRESH -DSELECT -DCK_CURSES
- -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -I/opt/SUNWconn/include $(KFLAGS)"
- "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib
- -lsockx25 -lsocket -lnsl -lm -lresolv"
- #Solaris 2.6, SunPro compiler, with SunLink X.25 support.
- solaris26x25:
- @echo 'Making C-Kermit $(CKVER) for Solaris 2.6+X.25 with SunPro cc...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -i -Usun -DSVR4 -DSOLARIS -DSOLARIS26 -DDIRENT -DSUNX25
- -DTCPSOCKET -DHDBUUCP -DPOSIX -DCK_WREFRESH -DSELECT -DCK_CURSES
- -DCK_NEWTERM -DSTERMIOX -DFNFLOAT -I/opt/SUNWconn/include $(KFLAGS)"
- "LIBS= -ltermlib -L/opt/SUNWconn/lib -R/opt/SUNWconn/lib
- -lsockx25 -lsocket -lnsl -lm -lresolv"
- #The following sunosxxx entries are for debugging and testing only.
- sunos41x:
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -O -DSUNOS41 -DDIRENT -DNOTLOG -DNOMSEND
- -DNOUUCP -DNOSIGWINCH -DNOREDIRECT -DNOPUSH -DNOCCTRAP
- -DNOICP -DNOLOCAL $(KFLAGS)"
- #SunOS 4.1.x, debugging with Pure Software, Inc., Purify 2 (commercial runtime
- #error-detection software for catching wild array references, etc).
- #Before running the resulting wermit, you'll also need to define and export
- #the following environment variables (as in this example):
- #PURIFYHOME=/usr/local/purify ; export PURIFYHOME
- #PURIFYCACHEDIR=/tmp ; export PURIFYCACHEDIR
- sunos41cp:
- @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD / Curses / Purify...
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CC2= purify -cache_dir=/usr/tmp cc"
- "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET
- -DSAVEDUID -DCK_CURSES $(KFLAGS)"
- "LIBS= -lcurses -ltermcap"
- #SunOS 4.1 with malloc debugger
- sunos41md:
- @echo Making C-Kermit $(CKVER) for SunOS 4.1 malloc debug...
- $(MAKE) mermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET
- -DSAVEDUID $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG"
- sunos41gmd:
- @echo Making C-Kermit $(CKVER) for SunOS 4.1 with gcc and curses...
- $(MAKE) mermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc"
- "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET
- -DNDGPWNAM -DSAVEDUID -DCK_CURSES -DRLOGCODE
- $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG"
- "LIBS= -lcurses -ltermcap"
- #SunOS version 4.1, gcc, profiling with gprof, no debugging.
- #To get profile, "make sunos4p" (on Sun), then "./wermit". After running
- #wermit, "gprof ./wermit | lpr" (or whatever) to get execution profile.
- sunos41p:
- @echo Making C-Kermit $(CKVER) for SunOS 4.x with profiling...
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC= gcc " "CC2= gcc"
- "CFLAGS= -DSUNOS41 -DNODEBUG -DSAVEDUID -DDIRENT -DTCPSOCKET
- -DNDGPWNAM $(KFLAGS) -pg" "LNKFLAGS = -pg"
- #SunOS version 4.1 or later, BSD environment, minimum features.
- sunos41min:
- @echo Minimum interactive
- $(MAKE) "MAKE=$(MAKE)" sunos41 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNORETRY
- -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS
- -DNOSHOW -DNOSETKEY -DNOUUCP -DNORECALL -DNOREDIRECT
- -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ
- -DNONET -DCK_SMALL -DNOPUSH -DNOCKSPEED -DNOCKTIMERS -DNOLOGIN
- -DNOCKXYZ -DNOKERBEROS -DNOMKDIR -DNOPATTERNS -DNOPERMS -DNOPIPESEND
- -DNORECURSIVE -DNORENAME -DNORESEND -DNOSETKEY
- -DNOTRIGGER -DNOTUNING $(KFLAGS)" "LNKFLAGS = -s"
- #SunOS version 4.1, BSD environment, min size, command-line only...
- sunos41m:
- @echo Minimum size
- $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DNOICP $(KFLAGS)"
- #SunOS version 4.1, BSD environment, min size, cmd-line only, remote only...
- #
- sunos41mr:
- @echo Minimum size
- $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DNOICP -DNOLOCAL $(KFLAGS)"
- #SunOS version 4.1, BSD environment, min size, interactive...
- sunos41mi:
- @echo Minimum size
- $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DNOCMDL $(KFLAGS)"
- #SunOS version 4.1, BSD environment, min size, interactive, remote only...
- sunos41mir:
- @echo Minimum size
- $(MAKE) "MAKE=$(MAKE)" sunos41min KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DNOCMDL -DNOLOCAL $(KFLAGS)"
- #SunOS 4.1, System V R3 environment (-i option omitted).
- sunos41s5:
- @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
- @echo For testing purposes only - NOT for production use.
- @echo For a useable version, make sunos41 instead.
- $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc "
- KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DCK_POLL $(KFLAGS) -O"
- #As above, but with curses support
- sunos41s5c:
- @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
- @echo Curses included.
- @echo For testing purposes only - NOT for production use.
- @echo For a useable version, make sunos41 instead.
- $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc "
- KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP
- -DCK_POLL -DCK_CURSES -DCK_NEWTERM $(KFLAGS) -O" "LIBS= -lcurses"
- #As above, but with curses support AND net support
- sunos41s5tcpc:
- @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
- @echo TCP/IP and curses included. No debug log.
- @echo For testing purposes only - NOT for production use.
- @echo For a useable version, make sunos41 instead.
- $(MAKE) xermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc "
- KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DCK_POLL
- -DNODEBUG -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET $(KFLAGS) -O"
- "LIBS= -lcurses -lresolv"
- # (End of SunOS test entries...)
- #Apollo with Domain SR10.0 or later, BSD environment
- #Reportedly, it might also help to add '-A,systype=bsd4.3' to CFLAGS.
- #Reportedly, there is also a problem with getc & putc macros that can
- #be handled by using '#ifdef apollo' somewhere to redefine them???
- #On the other hand, other reports indicate that it works fine as-is.
- #NOTE: This entry was previously like this:
- # $(MAKE) wermit "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis
- # -DTCPSOCKET -U__STDC__"
- #Reports (Dec 91) indicate SR10 has an ANSI-compliant C compiler,
- #in addition to an older one that claimed to be ANSI-compliant but wasn't.
- #The following make entry (plus checks that are made in ckcdeb.h) detect
- #which compiler is used and define the CK_ANSIC or NOANSI flags accordingly.
- sr10-bsd:
- @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / BSD ...
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -O -DAPOLLOSR10 -DBSD43 -DTCPSOCKET -DCK_CURSES
- -Uaegis $(KFLAGS)" "LIBS= -lcurses -ltermcap"
- #Apollo with Domain SR10.0 or later, System V R3 environment.
- #Don't use the optimizer (-O), it causes problems at runtime.
- sr10-s5r3:
- @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / Sys V R3 ...
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DNOFILEH -DSVR3 -DAPOLLOSR10 $(KFLAGS) -Uaegis -U__STDC__"
- #Apollo Domain/IX (untested, try this if sr10-bsd doesn't work)
- # -DTCPSOCKET can probably be added here.
- apollobsd:
- @echo Making C-Kermit $(CKVER) for Apollo Domain/IX...
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CC= /bin/cc " "CC2= /bin/cc "
- "CFLAGS= -DNOFILEH -DBSD4 -DAPOLLOBSD $(KFLAGS) -Uaegis"
- #Version 7 Unix (see comments near top of makefile)
- v7:
- @echo Making C-Kermit $(CKVER) for UNIX Version 7.
- @echo Read the makefile if you have trouble with this...
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS=-DV7 -DPROCNAME=\"$(PROC)\"
- -DBOOTNAME=\"$(BOOTFILE)\" -DNPROCNAME=\"$(NPROC)\"
- -DNPTYPE=$(NPTYPE) $(DIRECT) -DO_RDWR=2 -DO_NDELAY=0 -DO_SCCS_ID
- $(KFLAGS)"
- #AT&T UNIX System V R3, signal() is void rather than int.
- #Uses dirent.h and Honey DanBer UUCP.
- #Add the -i link option if necessary.
- #If you get errors like "ws_row undefined" in ckutio.c, add -DNONAWS.
- sys5r3:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP $(KFLAGS) -O"
- "LNKFLAGS="
- #As above, plus curses.
- sys5r3c:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3 + curses...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES $(KFLAGS) -O"
- "LNKFLAGS=" "LIBS = -ltermlib"
- iclsys5r3:
- make sys5r3 KTARGET=$${KTARGET:-$(@)} KFLAGS=-DICLSVR3
- #AT&T UNIX System V R3. As above, but no ANSI prototyping.
- sys5r3na:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DNOANSI $(KFLAGS) -O"
- "LNKFLAGS="
- #AT&T UNIX System V R3, for 3B computers with Wollongong TCP/IP.
- sys5r3net3b:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX SVR3/3B/Wollongong...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DWOLLONGONG $(KFLAGS)
- -O" "LIBS= -lnet -lnsl_s" "LNKFLAGS ="
- #AT&T UNIX System V R3, signal() is void rather than int.
- #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
- #Has <termiox.h> for RTS/CTS flow control.
- sys5r3tx:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTERMIOX $(KFLAGS) -i -O"
- "LNKFLAGS ="
- #AT&T UNIX System V R3, signal() is void rather than int.
- #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
- #Has <sys/termiox.h> for RTS/CTS flow control.
- sys5r3sx:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DSTERMIOX $(KFLAGS) -i -O"
- "LNKFLAGS ="
- #AT&T UNIX System V R4.
- #Has <termiox.h>.
- sys5r4:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DTERMIOX $(KFLAGS)"
- "LNKFLAGS = -s"
- #AT&T UNIX System V R4 with Wollongong TCP/IP.
- #Has <termiox.h>.
- sys5r4net:
- @echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
- @echo ' If sockets-library routines are missing at link time, then'
- @echo ' try the sys5r4net2 entry.'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP
- -DTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
- #As above, but needs libs included.
- sys5r4net2:
- @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
- @echo ' (Search for WOLLONGONG...)'
- $(MAKE) sys5r4net KTARGET=$${KTARGET:-$(@)} "LIBS= -lsocket -lnsl"
- #As above plus curses.
- sys5r4net2c:
- echo 'Making C-Kermit $(CKVER) for System V R4 + Wollongong TCP/IP...'
- @echo ' PLEASE READ ckuins.txt IF YOU GET MISSING HEADER FILES.'
- @echo ' (Search for WOLLONGONG...)'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP
- -DTERMIOX -DWOLLONGONG -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s"
- "LIBS= -lsocket -lnsl -lcurses"
- #DELL UNIX System V R4.
- #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
- #are not misplaced in sys (rather than netinet and arpa, respectively).
- #Uses ANSI C constructs, advisory file locking on devices, etc.
- #Warning: -DSTERMIOX enables hardware flow control (RTS/CTS), but reportedly
- #this does not work with the normal drivers. However, it might still work
- #on non-Dell systems, or even Dell systems with different drivers installed.
- dellsys5r4:
- @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP
- -DTCPSOCKET -DSTERMIOX -DCK_POLL $(KFLAGS)"
- "LIBS= -lsocket -lnsl" "LNKFLAGS = -s"
- #As above, curses support added...
- dellsys5r4c:
- @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP
- -DTCPSOCKET -DSTERMIOX -DCK_CURSES -DCK_POLL
- $(KFLAGS)" "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
- #Mininum interactive: As above, but with every conceivable option removed.
- dellsys5r4mi:
- @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
- @echo 'Minimum-size interactive'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT
- -UTCPSOCKET -DNOCMDL -DNOSPL -DNOXMIT -DCK_POLL
- -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG
- -DNOSCRIPT -DNOCSETS -DNOSHOW -DNOSETKEY -DNOSERVER -DNOUUCP
- -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ
- $(KFLAGS)" "LNKFLAGS = -s"
- #Command-line only version.
- dellsys5r4m:
- @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
- @echo 'Command-line only'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT
- -UTCPSOCKET -DNOICP -DNOFRILLS -DNODIAL -DNODEBUG -DNOTLOG -DNOCSETS
- -DNOSETKEY -DNOESCSEQ -DNOJC -DNOFDZERO -DCK_POLL
- $(KFLAGS)" "LNKFLAGS = -s"
- #AT&T UNIX System V R4.
- #Has <sys/termiox.h>.
- sys5r4sx:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX $(KFLAGS)"
- "LNKFLAGS = -s" "LIBS=$(LIBS)"
- #AT&T UNIX System V R4.
- #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
- #are not misplaced in sys (rather than netinet and arpa, respectively).
- #Uses ANSI C constructs, <sys/termiox.h>, etc etc.
- sys5r4sxtcp:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP
- -DSTERMIOX -DTCPSOCKET $(KFLAGS)"
- "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
- #AT&T UNIX System V R4.
- #As above + curses.
- sys5r4sxtcpc:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP
- -DSTERMIOX -DCK_CURSES -DTCPSOCKET $(KFLAGS)"
- "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)" "LNKFLAGS = -s"
- #AT&T UNIX System V R4. CONSENSYS SVR4.2-1.
- #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
- #are not misplaced in sys (rather than netinet and arpa, respectively).
- #Uses ANSI C constructs, <sys/termiox.h>, etc.
- # Fullscreen -DCK_CURSES added (with curses & termcap libs)
- # Submission by Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu
- sys5r4sxtcpf:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP
- -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)"
- "LIBS= -lsocket -lnsl -L/usr/ccs/lib -lcurses -ltermcap"
- "LIBS=$(LIBS)" "LNKFLAGS = -s"
- #Smallest possible version for System V R4
- s5r4m:
- @echo Minimum size
- $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG
- -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
- #Smallest possible interactive version of above
- s5r4mi:
- @echo Minimum interactive
- $(MAKE) "MAKE=$(MAKE)" sys5r4sx
- "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSHOW
- -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOSETKEY
- -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
- #AT&T UNIX System V R4, has <sys/termiox.h>
- #ANSI C function prototyping disabled.
- sys5r4sxna:
- @echo No ANSI C prototyping...
- $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(KFLAGS) -DNOANSI"
- #Stratus FTX.
- ftx:
- @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DSTERMIOX
- -DNOGETUSERSHELL +DA1.1 $(KFLAGS)"
- "LNKFLAGS = -s" "LIBS=$(LIBS)"
- #Stratus FTX + TCP/IP.
- ftxtcp:
- @echo 'Making C-Kermit $(CKVER) for Stratus FTX 3.x...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DFTX -DDIRENT -DHDBUUCP -DNOGETUSERSHELL
- -DSTERMIOX -DTCPSOCKET -DNO_DNS_SRV +DA1.1 $(KFLAGS)"
- "LIBS= -lsocket -lnsl $(LIBS)" "LNKFLAGS= -s"
- #NCR MP-RAS 2.03 or 3.02
- mpras:
- @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX
- -DNOGETUSERSHELL -DNO_DNS_SRV $(KFLAGS)"
- "LNKFLAGS = -s" "LIBS=$(LIBS)"
- #NCR MP-RAS 2.03 or 3.02 with TCP/IP and curses
- mprastcpc:
- @echo 'Making C-Kermit $(CKVER) for NCR MP-RAS + TCP/IP + curses...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CFLAGS=-DTCPSOCKET
- -DCK_CURSES -DSVR4 -DNCRMPRAS -DDIRENT -DHDBUUCP -DSTERMIOX
- -DNOGETUSERSHELL -DNO_DNS_SRV -O $(KFLAGS)" "LNKFLAGS = -s"
- "LIBS= -lsocket -lnsl -lcurses -ltermcap $(LIBS)"
- #SINIX-L V5.41 - includes curses, tcp/ip - Use this one for i386.
- #This version of SINIX doesn't like fdopen() or popen().
- sinix541:
- @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX V5.41/i386'
- $(MAKE) ckcpro.$(EXT) "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP
- -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV
- -DSNI541 -DNOGETUSERSHELL -DNONETCMD -DNOPOPEN -kansi -W0 $(KFLAGS)"
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DNOPOPEN
- -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC
- -DSNI541 -DNOGETUSERSHELL -DNONETCMD -kansi -W0 -O $(KFLAGS)"
- "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
- sinix541i:
- $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sinix541
- #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for MIPS.
- # As of C-Kermit 6.1, optimizer can't handle ckcpro.c.
- sinix542:
- @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX V5.42...'
- $(MAKE) ckcpro.$(EXT) "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP
- -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV
- -DSNI542 -DNOGETUSERSHELL -kansi -W0 $(KFLAGS)"
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DNO_DNS_SRV
- -DFNFLOAT -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC
- -DSNI542 -DNOGETUSERSHELL -kansi -W0 -O -KOlimit,2400 $(KFLAGS)"
- "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm" "LNKFLAGS = -s"
- #SINIX V5.42 - includes curses, tcp/ip, everything - Use this one for Intel.
- # (Note: SNI discontinued Intel support after 5.42.)
- sinix542i:
- @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf SINIX-Z V5.42...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSINIX -DSVR4 -DDIRENT -DHDBUUCP -DFNFLOAT -DSTERMIOX
- -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DNO_DNS_SRV -kansi
- -DSNI542 $(KFLAGS)"
- "LIBS= -lsocket -lnsl -lcurses -ltermcap -lm"
- "LNKFLAGS = -s"
- #Siemens Nixdorf Reliant UNIX V5.43 - includes curses, tcp/ip, everything:
- # . gettimeofday() suddenly has only one arg instead of two (GTODONEARG).
- # . The syntax of the Olimit specifier changed.
- # . The name was changed from SINIX to Reliant UNIX in version 5.43C.
- sni543:
- @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.43'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSINIX -DSNI543 -DSVR4 -DDIRENT -DHDBUUCP
- -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG
- -DNO_DNS_SRV -kansi -W0 -O -F Olimit,3100 $(KFLAGS)"
- "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
- #Siemens Nixdorf Reliant UNIX V5.44 - Like 5.43 but with different banner.
- sni544:
- @echo 'Making C-Kermit $(CKVER) for Siemens/Nixdorf Reliant UNIX V5.44'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSINIX -DSNI544 -DSVR4 -DDIRENT -DHDBUUCP
- -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DSELECT -DCK_ANSIC -DGTODONEARG
- -DNO_DNS_SRV -kansi -W0 -O -K Olimit,3100 $(KFLAGS)"
- "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
- #Commodore Amiga with AT&T UNIX System V R4 and TCP/IP support.
- #Has <sys/termiox.h>.
- svr4amiganet:
- @echo 'Making C-Kermit $(CKVER) for Amiga SVR4 + TCP/IP...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC=gcc" "CC2=gcc"
- "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DSTERMIOX
- -DTCPSOCKET -DCK_CURSES $(KFLAGS)" "LNKFLAGS = -s"
- "LIBS = -lsocket -lnsl -ltermlib"
- #SCO (Novell (Univel)) UnixWare 1.x or 2.0, no TCP/IP.
- #This assumes the Novell SDK 1.0, which has <sys/termiox.h>.
- #UnixWare users with the "Prime Time Freeware" CD-ROM SDK will probably have
- #to use the sys5r4 entry (no termiox.h file, so no hardware flow control).
- #Change -DSELECT to -DCK_POLL if -DSELECT causes problems.
- # NOTE: Unixware 1.x builds have not been tried in C-Kermit 7.0.
- unixware:
- $(MAKE) "MAKE=$(MAKE)" sys5r4sx KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL
- -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt"
- #UnixWare 1.x or 2.0 with TCP/IP and curses.
- #fork()-based CONNECT - no high serial speeds.
- unixwarenetc:
- $(MAKE) "MAKE=$(MAKE)" sys5r4sxtcpc KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DOLD_UNIXWARE -DCK_NEWTERM -DSELECT -DNOGETUSERSHELL
- -DNOSYSLOG $(KFLAGS)" "LIBS=-lcrypt -lresolv"
- uw10:
- $(MAKE) unixwarenetc KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
- #This is for Unixware 2.0.x only - use unixware21 for UW 2.1.x.
- #Has special library search and enables special kludge around library
- #foulup regarding vfork() (which Kermit doesn't use). Forces POSIX-style
- #hangup.
- unixware20:
- @echo 'Making C-Kermit $(CKVER) for UnixWare 2.0.x...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DOLD_UNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP
- -DBIGBUFOK -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET
- -DUW200 -DFNFLOAT -DCK_NEWTERM -DNOSYSLOG -DHUP_POSIX $(KFLAGS)"
- "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lgen -lm -lresolv"
- "LNKFLAGS = -s"
- uw20:
- $(MAKE) unixware20 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
- #Adds big buffers ("large memory model") - otherwise the same as UnixWare 1.x.
- unixware21:
- @echo 'Making C-Kermit $(CKVER) for UnixWare 2.1.x...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK
- -DNOGETUSERSHELL -DNOSYSLOG -DSTERMIOX -DCK_CURSES -DTCPSOCKET
- -DCK_NEWTERM -DFNFLOAT $(KFLAGS)"
- "LIBS= -lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv
- $(LIBS)" "LNKFLAGS = -s"
- uw21:
- $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
- #Unixware 2.1 with IKSD support
- uw21iksd:
- $(MAKE) unixware21 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DCK_SHADOW $(KFLAGS)" "LIBS= -lgen"
- #UnixWare 7 with tc[gs]etspeed() high serial speeds & select()-based CONNECT
- #NOTE: This is the one we use.
- unixware7t:
- @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK
- -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX
- -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL $(KFLAGS)"
- "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)"
- "LNKFLAGS = -s"
- #UnixWare 7 - select()-based CONNECT - no POSIX i/o - no high serial speeds.
- #In other words, just like the UnixWare 1 and 2 builds.
- unixware7x:
- @echo 'Making C-Kermit $(CKVER) for UnixWare 7...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK
- -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DNOLSTAT
- -DFNFLOAT -DCK_NEWTERM $(KFLAGS)"
- "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)"
- "LNKFLAGS = -s"
- #UnixWare 7 with POSIX cfset[oi]speed() to allow high serial speeds.
- #(but the high speeds don't work)
- unixware7p:
- @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with POSIX i/o...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK
- -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX
- -DFNFLOAT -DCK_NEWTERM -DNOLSTAT $(KFLAGS)"
- "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)"
- "LNKFLAGS = -s"
- # UnixWare 7 built with gcc - This does not work at all...
- # Reportedly gcc 2.8.1 is broken on Unixware 7. Try egcs?
- unixware7g:
- @echo 'Making C-Kermit $(CKVER) for UnixWare 7 with gcc...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
- "CFLAGS = -O -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK
- -DUW7 -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DNOLSTAT
- -DFNFLOAT -DCK_NEWTERM $(KFLAGS)"
- "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv $(LIBS)"
- "LNKFLAGS = -s"
- unixware7:
- $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t
- KTARGET=$${KTARGET:-$(@)}
- uw7:
- $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" unixware7t
- KTARGET=$${KTARGET:-$(@)}
- #UnixWare 7 with OpenSSL
- uw7ssl:
- @echo 'Making C-Kermit $(CKVER) for UnixWare 7 and OpenSSL...'
- $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DCK_AUTHENTICATION -DCK_SSL -DCK_SHADOW
- -DUNIXWARE -DSELECT -DSVR4 -DDIRENT -DHDBUUCP -DBIGBUFOK
- -DFNFLOAT -DNOGETUSERSHELL -DSTERMIOX -DCK_CURSES -DTCPSOCKET -DPOSIX
- -DUW7 -DUSETCSETSPEED -DCK_NEWTERM -DNOLSTAT -DDCLTIMEVAL
- -I/usr/local/ssl/include $(KFLAGS)"
- "LIBS=-lsocket -lnsl -lcurses -ltermcap -lcrypt -lm -lresolv
- -lgen -lcudk70 -L/usr/local/ssl/lib -lssl -lcrypto $(LIBS)"
- "LNKFLAGS = -s"
- #As above but includes Shadow password support needed for IKSD.
- uw7iksd:
- $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)"
- KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen" unixware7t
- #As above but links with static API for realpath() so a binary built
- #with this target on UW7.1 will also work on 7.0. Requires SCO UDK
- #rather than the stock compiler.
- uw7iksdudk:
- $(MAKE) "MAKE=$(MAKE)" "KFLAGS=-DCK_SHADOW $(KFLAGS)"
- KTARGET=$${KTARGET:-$(@)} "LIBS= -lgen -lcudk70" unixware7t
- #ESIX SVR4.0.3 or 4.04 with TCP/IP support.
- #Has <sys/termiox.h>, ANSI C function prototyping disabled.
- #Add -m486 to CFLAGS if desired.
- esixr4:
- @echo 'Making C-Kermit $(CKVER) for ESIX SVR4 + TCP/IP...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DNOANSI
- -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
- "LIBS = -lsocket -lnsl"
- #AT&T UNIX System V R4.
- #Has <sys/termiox.h>, Wollongong WIN/TCP TCP/IP.
- sys5r4sxnet:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP
- -DSTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
- #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>.
- sys5r4nx:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP $(KFLAGS)"
- "LNKFLAGS = -s"
- #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, curses, TCP/IP.
- sys5r4nxnetc:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP
- -DCK_CURSES -DTCPSOCKET $(KFLAGS)"
- "LIBS = -lcurses -lsocket -lnsl -ltcpip"
- "LNKFLAGS = -s"
- #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, Wollongong TCP/IP.
- sys5r4nxtwg:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DWOLLONGONG $(KFLAGS)"
- "LNKFLAGS = -s"
- #ICL UNIX System V R4.(DRS N/X) version :-
- #UNIX System V Release 4.0 ICL DRS 6000 (SPARC)
- #DRS/NX 6000 SVR4 Version 5 Level 1 Increment 4
- #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
- #are not misplaced in sys (rather than netinet and arpa, respectively).
- #Uses ANSI C constructs, advisory file locking on devices, etc.
- #Remove -lnsl if it causes trouble.
- iclsys5r4:
- @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 (DRS N/X)'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL
- -DSTERMIOX -DTCPSOCKET $(KFLAGS)"
- "LIBS= -lsocket -lnsl -lresolv " "LNKFLAGS = -s"
- #As above but for DRS/NX 4.2MP 7MPlus.
- iclsys5r4m+:
- @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOIKSD
- -DSTERMIOX -DTCPSOCKET $(KFLAGS)"
- "LIBS= -lsocket -lnsl -lm -lc -g -lgen " "LNKFLAGS = -s"
- #As above but for DRS/NX 4.2MP 7MPlus with IKSD support.
- iclsys5r4m+iksd:
- @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 DRS/NX 4.2MP+'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL
- -DSTERMIOX -DTCPSOCKET $(KFLAGS)"
- "LIBS= -lsocket -lnsl -lm -lc -g -lgen -lresolv " "LNKFLAGS = -s"
- iclsys5r4_486:
- $(MAKE) "MAKE=$(MAKE)" iclsys5r4 KTARGET=$${KTARGET:-$(@)}
- #Data General DG/UX 4.30 (System V R3) for DG AViiON, with TCP/IP support.
- dgux430:
- @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DDGUX430 -DSVR3 -DDIRENT -DTCPSOCKET
- -DNOINADDRX -DNOGETUSERSHELL $(KFLAGS)"
- #Data General DG/UX 4.30 for DG AViiON, with TCP/IP support with BSDisms.
- dgux430bsd:
- @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 4.30...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DDGUX430 -D_BSD_SOURCE -DBSD4
- -DNOINADDRX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)"
- #Data General DG/UX 5.4 (System V R4) for DG AViiON, with TCP/IP support.
- #Add -lsocket -lnsl if inet_addr comes up missing...
- #Hmmm - I really think CK_POLL can be removed from this one in which case
- #there is no difference between dgux540 and dgux540i.
- dgux540:
- @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX
- -DSTERMIOX -DTCPSOCKET -DCK_POLL -DNOGETUSERSHELL $(KFLAGS)"
- #Data General DG/UX 5.40 (System V R4) for Intel AViiON, with TCP/IP support.
- dgux540i:
- @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX
- -DSTERMIOX -DTCPSOCKET -DNOGETUSERSHELL $(KFLAGS)"
- "LIBS = -lsocket -lnsl"
- dgux54:
- make dgux540 KTARGET=$${KTARGET:-$(@)}
- #Data General DG/UX 5.4 (= System V R4) for DG AViiON, with TCP/IP support.
- # And curses.
- dgux540c:
- @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX
- -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL
- $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
- #As above but for Intel - only difference is name library names.
- dgux540ic:
- @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.40...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP -DNOINADDRX
- -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL
- $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
- dgux54c:
- make dgux540c KTARGET=$${KTARGET:-$(@)}
- #DG/UX 5.4R3.10
- dgux54310:
- @echo 'Making C-Kermit $(CKVER) for DG AViiON DG/UX 5.4R3...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DDGUX540 -DDGUX54310 -DDIRENT -DHDBUUCP -DSELECT
- -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL
- -DNOINADDRX $(KFLAGS)" "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
- #DG/UX 5.4R4.10 - Includes everything.
- dgux54410:
- @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.10...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DDGUX540 -DDGUX54410 -DDIRENT -DHDBUUCP -DSELECT
- -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL
- -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
- #DG/UX 5.4R4.11 - Includes everything.
- dgux54411:
- @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.11...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DDGUX540 -DDGUX54411 -DDIRENT -DHDBUUCP -DSELECT
- -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL
- -DNOINADDRX $(KFLAGS)" "LIBS = -lsocket -lnsl -lcurses -ltermcap"
- #DG/UX 5.4R4.20 - Includes everything.
- dgux54420:
- @echo 'Making C-Kermit $(CKVER) for DG/UX 5.4R4.20...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DDGUX540 -DDGUX54420 -DDIRENT -DHDBUUCP -DSELECT
- -DSTERMIOX -DTCPSOCKET -DCK_CURSES -DCK_NEWTERM -DNOGETUSERSHELL
- -DNOINADDRX $(KFLAGS)"
- "LIBS = -lsocket -lresolv -lnsl -lcurses -ltermcap"
- #Silicon Graphics System V R3 with BSD file system (IRIS)
- iris:
- @echo Making C-Kermit $(CKVER) for Silicon Graphics IRIX pre-3.3...
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR3 -DLONGFN $(KFLAGS) -I/usr/include/bsd"
- "LIBS = -lbsd"
- #Silicon Graphics IRIS System V R3
- irix33:
- @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 3.3...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP $(KFLAGS) -O"
- "LNKFLAGS = -s"
- #Silicon Graphics Iris Indigo with IRIX 4.0.0 or 5.0...
- #Strict ANSI C compilation, TCP/IP support included
- irix40:
- @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t
- -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O -Olimit 1600 -I/usr/include/bsd"
- "LNKFLAGS = -s"
- #As above, but with fullscreen display (curses) and Sun Yellow Pages support.
- #NOTE: IRIX versions prior to 5 run COFF binaries.
- irix40ypc:
- @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0.'
- @echo 'Includes fullscreen file display and Sun Yellow Pages...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DCK_CURSES
- -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET $(KFLAGS)
- -O -Olimit 1600 -I/usr/include/bsd"
- "LIBS = -lcurses -lsun" "LNKFLAGS = -s"
- # Silicon Graphics Iris Series 4D/*, IRIX 4.0.x, -O4 ucode optimized.
- # Huge temporary file space needed for ucode optimizer. If you get an error
- # like "ugen: internal error writing to /tmp/ctmca08777: Error 0", define the
- # the TMPDIR environment variable to point to a file system that has more
- # space available, e.g. "setenv TMPDIR /usr/tmp".
- irix40u:
- @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t
- -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600"
- "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u"
- # As above, with Curses Support added
- irix40uc:
- @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DPWID_T=uid_t
- -DCK_ANSIC -DCK_CURSES -DTCPSOCKET $(KFLAGS) -O4 -Olimit 1600"
- "LNKFLAGS=-O4 -Olimit 1600 -s" "EXT=u" "LIBS= -lcurses -ltermcap"
- #Silicon Graphics IRIX 5.x.
- #Yellow Pages and Curses support included.
- #IRIX version 5.x can run COFF or ELF binaries.
- irix51:
- @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 5.x'
- @echo 'Includes fullscreen file display and Yellow Pages...'
- @echo 'Add -mips<n> to CFLAGS specify a particular hardware target.'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DIRIX51 -DSVR4 -DDIRENT -DHDBUUCP -DCK_CURSES -DCK_NEWTERM
- -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET -DSELECT -DNOGETUSERSHELL
- $(KFLAGS) -O -Olimit 2400" "LIBS = -lcurses" "LNKFLAGS = -s"
- irix51ypc:
- $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)}
- #IRIX 5.2 adds RTS/CTS
- irix52:
- $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DIRIX52 -DCK_RTSCTS"
- irix53:
- $(MAKE) "MAKE=$(MAKE)" irix51 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DIRIX52 -DIRIX53 -DCK_RTSCTS"
- #Silicon Graphics IRIX 6.[024] common stuff.
- #Yellow Pages and Curses support included.
- #IRIX version 6.0 and later runs only ELF binaries.
- #Depends on code changes in ckudeb.h that make -DIRIX6x define all
- #lower IRIX6x values and IRIX51.
- irix6x:
- @echo 'Includes fullscreen file display and Yellow Pages...'
- @echo 'Add -mips<n> to specify a particular hardware target.'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL
- -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET
- -DSELECT -DCK_RTSCTS -O $(KFLAGS)"
- "LIBS = -lcurses" "LNKFLAGS = -s $(LNKFLAGS)"
- #Silicon Graphics IRIX 6.0.
- irix60:
- @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.0'
- @$(MAKE) "MAKE=$(MAKE)"
- "KFLAGS=-DIRIX60 -Olimit 2138 $(KFLAGS)"
- irix6x KTARGET=$${KTARGET:-$(@)}
- #Silicon Graphics IRIX 6.2.
- #Serial speeds > 38400 are available in IRIX 6.2 on O-class machines only.
- #Note: Olimit must be a number > 0.
- irix62:
- @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.2'
- @$(MAKE) "MAKE=$(MAKE)"
- LNKFLAGS="-Wl,-woff,84"
- "KFLAGS=-DIRIX62 -Olimit 4700 $(KFLAGS)"
- irix6x KTARGET=$${KTARGET:-$(@)}
- #Silicon Graphics IRIX 6.3.
- irix63:
- @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.3'
- @$(MAKE) "MAKE=$(MAKE)" irix62 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DIRIX63"
- #Silicon Graphics IRIX 6.4.
- # -woff,84 to linker stops complaints about no symbols loaded from
- # curses, and -woff 1110 stops complaints about unreachable "break;"
- # statements in ckcpro.c among others.
- # tested on SGI Octane, running IRIX 6.4 up to 115200 bps.
- # -Olimit 0 means infinite.
- irix64:
- @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4'
- @$(MAKE) "MAKE=$(MAKE)"
- LNKFLAGS="-Wl,-woff,84"
- "KFLAGS=-DIRIX64 -DCK_RTSCTS -Olimit 3000 -woff 1110 $(KFLAGS)"
- irix6x KTARGET=$${KTARGET:-$(@)}
- irix64gcc:
- @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 6.4 gcc'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS= -DSVR4 -DIRIX64 -DCK_CURSES -DTCPSOCKET -DNOCOTFMC
- $(KFLAGS) -O" "LIBS= -lcurses -ltermcap -lcrypt"
- #Note the new Optimization option syntax for MIPSpro CC 7.2.1.2m.
- irix65:
- @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
- @$(MAKE) "MAKE=$(MAKE)"
- LNKFLAGS="-Wl,-woff,84"
- "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110 $(KFLAGS)"
- irix6x KTARGET=$${KTARGET:-$(@)}
- irix6x+krb5:
- @echo 'Includes fullscreen file display and Yellow Pages...'
- @echo 'Add -mips<n> to specify a particular hardware target.'
- $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSVR4 -DDIRENT -DHDBUUCP -DNOGETUSERSHELL
- -DCK_CURSES -DCK_NEWTERM -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET
- -DSELECT -DCK_RTSCTS -O
- -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DCK_ENCRYPTION -DCK_DES
- -I/usr/KRB5/include/ $(KFLAGS)"
- "LIBS = -lcurses -L/usr/KRB5/lib -ldes425 -lkrb5
- -lcom_err -lcrypto -lcrypt"
- "LNKFLAGS = -s $(LNKFLAGS)"
- irix65+krb5:
- @echo 'Making C-Kermit $(CKVER) for SGI IRIX 6.5'
- @$(MAKE) "MAKE=$(MAKE)"
- LNKFLAGS="-Wl,-woff,84"
- "KFLAGS=-DIRIX65 -DCK_RTSCTS -OPT:Olimit=0 -woff 1110 $(KFLAGS)"
- irix6x+krb5 KTARGET=$${KTARGET:-$(@)}
- #In case they type "make sys5"...
- sys5:
- $(MAKE) "MAKE=$(MAKE)" sys3 KTARGET=$${KTARGET:-$(@)}
- #Generic ATT System III or System V (with I&D space)
- sys3:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
- @echo 'or System V R2 or earlier...'
- @echo 'add -DNOMKDIR if mkdir is an undefined symbol.'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DATTSV -DNOUNICODE -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL
- -DNOINITGROUPS -DNOFTRUNCATE -DNOREALPATH $(KFLAGS) -i -O"
- "LNKFLAGS = -i"
- #Generic ATT System III or System V (no I&D space)
- sys3nid:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
- @echo 'or System V R2 or earlier, no I&D space...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOSYMLINK
- -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE $(KFLAGS) -O"
- "LNKFLAGS ="
- #Generic ATT System III or System V R2 or earlier, "no void":
- #special entry to remove "Illegal pointer combination" warnings.
- sys3nv:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
- @echo 'or System V R2 or earlier...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DATTSV -DNOREALPATH -DNOUNICODE -DNOSYSLOG -DNOGETUSERSHELL
- -DNOSYMLINK -DNOFTRUNCATE -DNOINITGROUPS -Dvoid=int $(KFLAGS) -i -O"
- "LNKFLAGS = -i"
- # AT&T 7300 UNIX PC. As of C-Kermit 6.1, many of these entries don't work
- # any more due to "Out of memory" or "Too many defines" errors during
- # compilation, at least not on systems without lots of memory. The sys3upcgc
- # entry works (using gcc) with optimization removed, and might also work
- # with optimization enabled on machines with larger memories.
- #AT&T 7300/UNIX PC (3B1) systems, sys3 but special handling for internal modem.
- #Link with the shared library -- the conflict with openi in shared library
- #is solved with -Dopeni=xopeni. Note that the xermit target can't be used
- #for the Unix PC; there is no select().
- sys3upc:
- @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
- @echo 'If shared lib causes trouble, use make sys3upcold.'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOREALPATH
- -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE
- -DNOREDIRECT -DNOGFTIMER -DNOUNICODE $(KFLAGS) -Dopeni=xopeni"
- "CC2 = ld /lib/crt0s.o /lib/shlib.ifile" "LNKFLAGS = -s"
- #AT&T 7300/Unix PC systems, minimum kermit for those with smaller amounts
- #of memory.
- sys3upcm:
- @echo Minimum interactive
- $(MAKE) "MAKE=$(MAKE)" sys3upc KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS
- -DNOSYSLOG -DNOSETKEY -DNOREALPATH"
- #AT&T 7300/UNIX PC (3B1) systems, with curses support.
- #Curses and the shared library don't get along, so we don't use the
- #shared library. We need to include CK_NEWTERM to avoid a conflict
- #with curses and buffering on stdout. Merged with submission by
- #Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu.
- #We don't need -Dopeni=xopeni since we're not using the shared library,
- #but we keep it to be consistent with the other entries.
- sys3upcc:
- @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DATT7300 -DNOREALPATH
- -DCK_CURSES -DCK_NEWTERM -DNOMKDIR -DNOREDIRECT -DNOGFTIMER
- -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE
- -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni"
- "LIBS = -lcurses" "LNKFLAGS = -s"
- #Like sys3upcc but for AT&T UNIX 3.51m (released as a patch on Fix Disk 2),
- #adds hardware flow control.
- att351m:
- $(MAKE) "MAKE=$(MAKE)" sys3upcc KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DCK_RTSCTS -DUNIX351M"
- #As above but with gcc.
- att351gm:
- $(MAKE) "MAKE=$(MAKE)" sys3upcgc KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DCK_RTSCTS -DUNIX351M"
- #AT&T 7300 UNIX PC (3B1), as above, but no newterm().
- sys3upcx:
- @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DATT7300 -DNOREALPATH -DNOUNICODE
- -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE
- -DCK_CURSES -DNOMKDIR -DNOREDIRECT -DNOGFTIMER -DUSE_MEMCPY $(KFLAGS)
- -Dopeni=xopeni" "LIBS = -lcurses -ltermcap" "LNKFLAGS = -s"
- #AT&T 7300/UNIX PC (3B1) systems, with curses and shared library support.
- sys3upcshcc:
- @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
- @echo 'With curses. Requires shcc.'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DATT7300 -DNOMKDIR -DNOREALPATH
- -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE
- -DCK_NEWTERM -DCK_CURSES -DNOREDIRECT -DNOGFTIMER
- -DUSE_MEMCPY -DNOUNICODE $(KFLAGS) -Dopeni=xopeni"
- "LNKFLAGS = -i -s" "CC = shcc" "CC2 = shcc" "LIBS = -lcurses"
- #AT&T 7300/UNIX PC (3B1) systems, as above, no curses, but use gcc.
- sys3upcg:
- @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOUNICODE
- -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE
- -DNOGFTIMER -DNOMKDIR -DNOREALPATH $(KFLAGS) -Dopeni=xopeni"
- "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
- #AT&T 7300/UNIX PC (3B1) systems, curses and gcc.
- #Optimization omitted -- add it back in if your machine has lots of memory.
- sys3upcgc:
- @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOGFTIMER -DNOUNICODE
- -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE
- -DCK_CURSES -DIFDEBUG -DCK_NEWTERM -DNOMKDIR -DNOREALPATH $(KFLAGS)"
- "CC = gcc" "CC2 = gcc" "LIBS = -lcurses" "LNKFLAGS = -s"
- #AT&T 7300/UNIX PC (3B1) systems, special handling for internal modem.
- #No FULLSCREEN file transfer display (curses).
- sys3upcold:
- @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DATT7300 -DNOMKDIR -DUSE_MEMCPY -DNOUNICODE
- -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE
- -DNOGFTIMER -DNOREDIRECT -DNOREALPATH $(KFLAGS) -O" "LNKFLAGS = -i"
- #As above, but with gcc. miminum features - fits on a 400K UNIX PC floppy
- #after compression with room to spare; add -DNOSHOW or other -DNOxxxx items
- #to reduce size even further.
- sys3upcgm:
- @echo Minimum interactive
- $(MAKE) "MAKE=$(MAKE)" sys3upcg KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DNOSPL -DNOFRILLS -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS
- -DNOSETKEY $(KFLAGS)"
- #This target is designed to create a version with the most features possible
- #that, after compression, still fits on a 400K UNIX PC floppy.
- sys3upcgfd:
- @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC floppy...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DATT7300 -DNOREDIRECT -DUSE_MEMCPY -DNOSPL
- -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE
- -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni
- -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)"
- "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
- #AT&T 6300 PLUS (warning, -O might make it run out of space).
- #NOTE: Remove -DHDBUUCP if not using Honey DanBer UUCP.
- att6300:
- @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOREALPATH
- -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE
- -DNOUNICODE $(KFLAGS) -O -Ml -i" "LNKFLAGS = -i -Ml"
- #As above, but with curses support. Debugging disabled to prevent thrashing.
- att6300c:
- @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOCSETS -DNOREALPATH
- -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE
- -DCK_CURSES -DNODEBUG -DNOUNICODE $(KFLAGS) -O -Ml -i"
- "LNKFLAGS = -i -Ml" "LIBS = -lcurses"
- #AT&T 6300 PLUS with no curses, no debugging (about 34K smaller)
- # -Optimization saves about 20K too.
- att6300nd:
- @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS, no debugging...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DATT6300 -DHDBUUCP -DNODEBUG -DNOFILEH -DNOREALPATH
- -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE
- -DNOUNICODE $(KFLAGS) -O -i -Ml" "LNKFLAGS = -i -Ml"
- #AT&T 3B2 and maybe 3B20-series computers running AT&T UNIX System V R3.
- #This one was actually used to build C-Kermit 7.0 successfully on a 3B2/300.
- att3b2:
- @echo 'Making C-Kermit $(CKVER) for AT&T 3B2'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DATTSV -DNOREDIRECT -DUSE_MEMCPY
- -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF
- -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE
- -DNOGFTIMER -DNOREALPATH -Dopeni=xopeni -DNOFRILLS
- -DNOHELP -DNODEBUG -DNOTLOG -DNOCSETS -DNOSETKEY -DNOMKDIR $(KFLAGS)"
- "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s"
- # The next two are likely not to work as-is.
- #AT&T 3B2, 3B20-series computers running AT&T UNIX System V.
- #This is just generic System V with Honey DanBer UUCP, so refer to sys3hdb.
- #Remove -DNONAWS if you can get away with it.
- att3bx:
- $(MAKE) "MAKE=$(MAKE)" sys3hdb KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(KFLAGS) -DNONAWS -DNOTIMEVAL"
- # 3Bx with charsets (except Unicode) but no curses.
- att3bx1:
- @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
- @echo 'with Honey DanBer UUCP no curses...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT
- -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF
- -DNOHELP -DNODEBUG -DNOGFTIMER
- -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE
- -DNOREALPATH -DNOUNICODE -i"
- "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s"
- #AT&T 3B2, 3B20-series computers running AT&T UNIX System V,
- #with fullscreen file transfer display.
- att3bxc:
- @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
- @echo 'with Honey DanBer UUCP and curses...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DATTSV -DHDBUUCP -DNONAWS -DNOTIMEVAL $(KFLAGS)
- -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE
- -DNOREALPATH -DCK_CURSES -DCK_NEWTERM -DNOUNICODE -i -O"
- "LNKFLAGS = -i" "LIBS=-lcurses"
- #3bx with curses but no charsets
- att3bxc3:
- @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
- @echo 'with Honey DanBer UUCP with curses... no CSETS'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -DNOREDIRECT
- -DNOTIMEVAL -DNOTIMEZONE -DMINIDIAL -DNOCHANNELIO -DNOBIGBUF
- -DNOHELP -DNODEBUG -DNOGFTIMER
- -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE
- -DNOREALPATH -DNOCSETS -DCK_CURSES -DCK_NEWTERM -i"
- "CC = gcc" "CC2 = gcc" "LNKFLAGS = -i -s" "LIBS = -lcurses"
- #Any System V R2 or earlier with Honey DanBer UUCP (same as above)
- sys3hdb:
- @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
- @echo 'or System V R2 or earlier with Honey DanBer UUCP...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DATTSV -DHDBUUCP -DNOREALPATH -DNOUNICODE
- -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE
- $(KFLAGS) -i -O" "LNKFLAGS = -i"
- #Sperry/UNISYS 5000 UTS V 5.2 (System V R2), Honey DanBer UUCP
- unisys5r2:
- @echo 'Making C-Kermit $(CKVER) for Sperry/UNISYS 5000 UTS V 5.2...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DATTSV -DUNISYS52 -DHDBUUCP -DNOREALPATH -DNOUNICODE
- -DNOSYSLOG -DNOSYMLINK -DNOGETUSERSHELL -DNOINITGROUPS -DNOFTRUNCATE
- $(KFLAGS) -i -O" "LNKFLAGS = -i"
- #In case they say "make sys5hdb" instead of "make sys3hdb"...
- sys5hdb:
- $(MAKE) "MAKE=$(MAKE)" sys3hdb
- #Create the common header line for all hpux[6-10]* entries. This extra entry is
- #here because our header message length may differ for each C-Kermit version.
- #Don't use 'fold -s' for HP-UX 6.x or 7.x! This option is there only since
- #HP-UX 8.0!
- hpux-header:
- @HPUX=`uname -r | sed -e 's/^[^1-9]*//' -e 's/.00$$/.0/'` ;
- Message0='Making C-Kermit $(CKVER) for HP9000 HP-UX' ;
- Message1=$${MESSAGE1:='without any extra compiler optimization'} ;
- MessageH="$$Message0 $$HPUX" ;
- case $$HPUX in
- [67].*) echo "$$MessageHn$$Message1" ;;
- *.*) echo "$$MessageH $${Message1}$(MESSAGE1A)" | fold -s ;;
- esac | sed -e 's/^ //' -e 's/ *$$//'
- #HP-9000 500 HP-UX 5.xx, no TCP/IP.
- hpux500:
- @echo 'Making C-Kermit $(CKVER) for HP-UX 5.xx - no TCP/IP'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DHPUX -DHPUX5 -DHPUXPRE65 -DNOREDIRECT -DDCLGETCWD
- -DNOGETUSERSHELL -DNOGFTIMER -DNOSYSLOG -DNOTOMACROS -DNOLSTAT
- -DNOSYMLINK -DNOINITGROUPS -DNOUNICODE $(KFLAGS)"
- "LIBS = " "LNKFLAGS = "
- #HP-9000 500 HP-UX 5.21 with Wollongong WIN/TCP 1.2 TCP/IP.
- #Requires /usr/wins/usr/include and /usr/lib/libnet.a from Wollongong.
- #Optimization skipped - takes forever. Really.
- hpux500wintcp:
- @echo 'Making C-Kermit $(CKVER) for HP-UX 5.21 WIN/TCP'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DHPUX -DHPUX5 -DHPUXPRE65 -DTCPSOCKET -DHPUX5WINTCP
- -DNOREDIRECT -DDCLGETCWD -DNOGETUSERSHELL -DNOGFTIMER -DINADDRX
- -DNOSYSLOG -DNOTOMACROS -DNO_DNS_SRV -DNOSYMLINK -DNOINITGROUPS
- -DNOMHHOST -DNOLSTAT -DNOUNICODE -DNOHADDRLIST
- -I/usr/wins/usr/include $(KFLAGS)"
- "LIBS = /usr/lib/libnet.a" "LNKFLAGS = "
- #HP-UX 6.5, short filenames, no network and no curses support.
- #ckcpro, ckuusr, ckuus3 and others are broken out because they make the
- #optimizer run away. Note that xermit target does not work with this one!
- #If you get compiler warnings like 'Switch table overflow' increase the '...'
- #value in '-Wc,-Nw...'!
- hpux65:
- @$(MAKE) hpux-header
- @echo 'supporting: NO long filenames, NO network${MESSAGE2}.'
- $(MAKE) KTARGET=$${KTARGET:-$(@)}
- ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT)
- ckctel.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT)
- "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT
- -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260"
- $(MAKE) wermit
- "CFLAGS = -DHPUX -DHPUX6 -DSIG_V -DNOSYSLOG -DNOSELECT -DFNFLOAT
- -DDCLGETCWD -DNOGETUSERSHELL -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260
- $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
- #Exactly as above, plus curses:
- hpux65c:
- @MESSAGE2=", but with curses"
- $(MAKE) hpux65 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS= -DCK_CURSES $(KFLAGS)"
- "LIBS= -lcurses"
- #Exactly as hpux65 but with compiler optimization:
- hpux65o:
- @MESSAGE1="with compiler optimization"
- $(MAKE) hpux65 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
- #Exactly as hpux65c but with compiler optimization:
- hpux65oc:
- @MESSAGE1="with compiler optimization"
- $(MAKE) hpux65c KTARGET=$${KTARGET:-$(@)}
- "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
- #Take this as startup entry for all 'none optimezed' files under HP-UX 7.x!
- #Make sure we doesn't call it with the '-O' option because this will blow up
- #the compiler!
- hpux70noopt:
- @case "$(CFLAGS)" in
- *-O*) echo "Don't use CFLAGS= -O here!" ;;
- *) $(MAKE) ckuusr.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT)
- ckcnet.$(EXT) ckctel.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT)
- KTARGET=$${KTARGET:-$(@)}
- ;;
- esac
- #HP-UX 7.0, no long filenames, no network support, no curses.
- #If you get compiler warnings like 'Switch table overflow' increase the '...'
- #value in '-Wc,-Nw...'!
- hpux70sf:
- @$(MAKE) hpux-header
- @echo 'supporting: NO long filenames, NO network, NO curses.'
- $(MAKE) hpux70noopt KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT
- -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260"
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DHPUX -DHPUX7 -DSIG_V -DNOGETUSERSHELL -DFNFLOAT
- -DNO_DNS_SRV $(KFLAGS) -Wc,-Nw260 $(OFLAGS)"
- "LNKFLAGS = -s" "LIBS = -lm $(LIBS)"
- #Exactly as hpux70sf but with compiler optimization:
- hpux70osf:
- @MESSAGE1="with compiler optimization"
- $(MAKE) hpux70sf KTARGET=$${KTARGET:-$(@)}
- "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
- #HP-UX 7.0, short filenames, but with tcp/ip and curses.
- #There must be <arpa/telnet.h> & <arpa/inet.h> present to support this
- #configuration. To use this, you must have bought the ARPA Services
- #Product from HP, and you must get the files "telnet.h" and "inet.h"
- #from the Berkeley Standard Distribution because (reportedly) they are not
- #part of the HP product. And you need /usr/lib/libBSD.a.
- hpux70sftcpc:
- @$(MAKE) hpux-header
- @echo 'supporting: NO long filenames, c'
- @echo 'but with networking, curses, HDB uucp...'
- $(MAKE) hpux70noopt KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V
- -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT
- -DNO_DNS_SRV -DHDBUUCP -DLOCK_DIR=\"/usr/spool/uucp\" $(KFLAGS)
- -Wc,-Nw260"
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V
- -DCK_REDIR -DCK_RTSCTS -DCK_CURSES -DNOGETUSERSHELL -DFNFLOAT
- -DNO_DNS_SRV -DHDBUUCP -DLOCK_DIR=\"/usr/spool/uucp\" $(KFLAGS)
- -Wc,-Nw260 $(OFLAGS)" "LNKFLAGS = -s" "LIBS= -lm -lBSD -lcurses"
- #Exactly as above but with compiler optimization:
- hpux70osftcpc:
- @MESSAGE1="with compiler optimization"
- $(MAKE) hpux70sftcpc KTARGET=$${KTARGET:-$(@)}
- "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
- #HP 9000 series 300/800 HP-UX 7.0, long filenames, network support, HDB uucp,
- #but NO curses. See comments in hpux70sftcpc about TCP/IP support.
- hpux70lfn:
- @$(MAKE) hpux-header
- @echo 'supporting: long filenames, networking, HDB uucp$(MESSAGE2)...'
- $(MAKE) hpux70noopt KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT
- -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN
- -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\"/usr/spool/uucp\"
- $(KFLAGS) -Wc,-Nw260"
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DHPUXDEBUG -DHPUX -DHPUX7 -DTCPSOCKET -DSIG_V -DFNFLOAT
- -DNOGETUSERSHELL -DNOSETBUF -DCK_REDIR -DCK_RTSCTS -DLONGFN
- -DNO_DNS_SRV -DDIRENT -DHDBUUCP -DLOCK_DIR=\"/usr/spool/uucp\"
- $(KFLAGS) -Wc,-Nw260
- $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
- #Exactly as above + curses.
- hpux70lfnc:
- @MESSAGE2=', curses'
- $(MAKE) hpux70lfn KTARGET=$${KTARGET:-$(@)}
- "KFLAGS= -DCK_CURSES $(KFLAGS)"
- "LIBS= -lcurses"
- #Exactly as above hpux70lfn but with compiler optimization:
- hpux70olfn:
- @MESSAGE1="with compiler optimization"
- $(MAKE) hpux70lfn KTARGET=$${KTARGET:-$(@)}
- "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
- #Exactly as above hpux70lfnc but with compiler optimization:
- hpux70olfnc:
- @MESSAGE1="with compiler optimization"
- $(MAKE) hpux70lfnc KTARGET=$${KTARGET:-$(@)}
- "KFLAGS= $(KFLAGS)" "OFLAGS = -O"
- #HP 9000 Series 300 or 400, HP-UX 8.0, long filenames and TCP/IP support.
- #This one should also work on 700/800, but without PA-specific optimization.
- #In case -DCK_RTSCTS and -DCK_REDIR make trouble, remove them.
- #NOTE: ckcpro.c and ckuusr.c blow up the optimizer, so don't optimize them.
- #For HP-UX 8.0 on Motorola CPUs, you might have to reinstall your kernel with
- #maxdsiz >= #0x02000000. But if physical memory is small, that still will not
- #help much.
- hpux80:
- @$(MAKE) hpux-header
- @MESSAGE3=$${MESSAGE3:='TCP/IP'};
- echo "supporting: long filenames, $$MESSAGE3, HDB UUCP$(MESSAGE2)..."
- $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" ckcpro.$(EXT) ckuusr.$(EXT)
- "CFLAGS = -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V
- -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET
- -DHDBUUCP -DNO_DNS_SRV -DLOCK_DIR=\"/usr/spool/uucp\" -DFNFLOAT
- $(KFLAGS)"
- $(MAKE) -B "CC=$(CC)" "CC2=$(CC2)" xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DCK_REDIR -DHPUXDEBUG -DHPUX -DHPUX8 -DRENAME -DSIG_V
- -DNOSETBUF -DDIRENT -DCK_RTSCTS -DSTERMIOX -DLONGFN -DTCPSOCKET
- -DHDBUUCP -DNO_DNS_SRV -DLOCK_DIR=\"/usr/spool/uucp\" -DFNFLOAT
- $(KFLAGS) $(OFLAGS)" "LNKFLAGS = -s" "LIBS = -lm -lBSD $(LIBS)"
- #Exactly as above hpux80 + curses.
- hpux80c:
- @MESSAGE2=', curses'
- $(MAKE) hpux80 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS = $(KFLAGS) -DCK_CURSES" "LIBS = -lcurses"
- #HP 9000 HP-UX 8.0, no TCP/IP because /usr/lib/libBSD.a can't be found,
- #or TCP/IP header files missing.
- hpux80notcp:
- @MESSAGE3='NO network, NO curses'
- $(MAKE) "MAKE=$(MAKE)" hpux80 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS = $(KFLAGS) -UTCPSOCKET"
- #Now the same as above hpux80 but with compiler optimization
- hpux80o:
- @MESSAGE1="with compiler optimization"
- $(MAKE) hpux80 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
- #Exactly as above hpux80 + curses and with compiler optimization.
- hpux80oc:
- @MESSAGE1="with compiler optimization"
- $(MAKE) hpux80c KTARGET=$${KTARGET:-$(@)}
- "KFLAGS = $(KFLAGS)" "OFLAGS = -O" "LIBS = -lcurses"
- #Exactly as above hpux80notcp but with compiler optimization
- hpux80onotcp:
- @MESSAGE1="with compiler optimization"
- $(MAKE) "MAKE=$(MAKE)" hpux80notcp KTARGET=$${KTARGET:-$(@)}
- "KFLAGS = $(KFLAGS)" "OFLAGS = -O"
- #HP 9000 Series 700 or 800, HP-UX 8.0, long filenames and TCP/IP support.
- # Like the previous entries, but with PA-RISC-specific optimization.
- hpux80pa:
- @MESSAGE1="with PA-RISC-specific optimization"
- $(MAKE) hpux80 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS = $(KFLAGS) +Obb1100"
- #As above, but with curses.
- hpux80pac:
- @MESSAGE1="with PA-RISC-specific optimization"
- $(MAKE) hpux80c KTARGET=$${KTARGET:-$(@)}
- "KFLAGS = $(KFLAGS) +Obb1100"
- #As above, but compiled with GCC 2.3.3.
- hpux80pagcc:
- @MESSAGE1='using the gcc compiler'
- $(MAKE) hpux80 KTARGET=$${KTARGET:-$(@)}
- "CC=gcc" "CC2=gcc" "KFLAGS= -funsigned-char $(KFLAGS)"
- #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
- #configured. Use this entry with the restricted compiler: no optimization, no
- #ANSI support. If you get unresolved sockets library references at link time,
- #then try adding -lBSD to LIBS, or else remove -DTCPSOCKET to build a version
- #without TCP/IP support.
- hpux90:
- @MESSAGE1A='. Read comments in the hpux90 entry if you have trouble.'
- $(MAKE) hpux-header
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT
- -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME -DCK_REDIR -DLONGFN
- -DHDBUUCP -DLOCK_DIR=\"/usr/spool/uucp\" -DFNFLOAT $(KFLAGS)"
- "LNKFLAGS = -s" "LIBS = -lm -lcurses" "CC=$(CC)" "CC2=$(CC2)"
- #Like hpux90, but for the "value-added" compiler on all HP 9000 models.
- #Adds optimization and ANSI compilation:
- # +O2 makes smaller executable (= -O = Level-1 and global optimization)
- # +O3 adds interprocedural global optimization, makes bigger executable.
- # If optimization fails on some modules, you can add:
- # +Obb<n>, +Olimit <n>, or +Onolimit, depending on your cc version,
- # where <n> is a number, e.g. +Obb1200. In other words, if you get optimizer
- # warnings, add (for example) +Obb1200; if you still get optimizer warnings,
- # increase the number. Repeat until warnings go away. If your compiler
- # permits it, use +Onolimit. If optimizer blows up on ckcpro.c, see next entry.
- # Reportedly, on some configurations, such as HP9000/425e or /340, perhaps
- # depending on the amount of main memory, this entry might fail no matter what
- # you do ("Out of Memory", "cc: Fatal error in /lib/c.c1", etc). In that case
- # use "make hpux90" (no "o").
- hpux90o:
- @MESSAGE1=$${MESSAGE1:-"with compiler optimization"}
- $(MAKE) hpux90 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2"
- # For HP-UX 9.0 on Motorola CPUs, optimization of ckcpro.c tends to blow up
- # the compiler. You might have to reinstall your kernel with maxdsiz >=
- # 0x03000000. But if physical memory is small, that still will not help much.
- # In that case, use this entry to skip optimization of ckcpro.c.
- hpux90m68ko:
- @MESSAGE1='without compiler optimization for ckcpro.$(EXT) ...'
- $(MAKE) hpux-header
- $(MAKE) ckuusr.$(EXT) ckuus3.$(EXT) ckcpro.$(EXT)
- "CFLAGS = -DHPUXDEBUG -DHPUX9 -DSTERMIOX -DDIRENT
- -DNOSETBUF -DCK_CURSES -DTCPSOCKET -DRENAME -DCK_REDIR -DLONGFN
- -DHDBUUCP -DLOCK_DIR=\"/usr/spool/uucp\" -DFNFLOAT $(KFLAGS)"
- @echo
- @MESSAGE1="with compiler optimization for the rest"
- $(MAKE) hpux90 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS = $(KFLAGS) -Aa -DCK_ANSIC -D_HPUX_SOURCE +O2"
- # Old name for hpux90m68ko.
- hpux90mot:
- $(MAKE) hpux90m68ko KTARGET=$${KTARGET:-$(@)} "KFLAGS = $(KFLAGS)"
- #Like hpux90o but with additional model-700/800-specific optimizations.
- # +ESlit = consolidate strings in read-only memory.
- # +ESfsc = inline millicode calls when comparing pointers.
- hpux90o700:
- @echo 'If you get optimizer warnings c'
- @echo 'try "make hpux90o700 KFLAGS=+Obb1200"'
- @MESSAGE1="with PA-RISC-specific optimizations"
- $(MAKE) hpux90o KTARGET=$${KTARGET:-$(@)}
- "KFLAGS = $(KFLAGS) +ESlit +ESsfc"
- #HP-UX 9.0, 9.01, 9.03, 9.04, 9.05, 9.07, 9.10 ..., + TCP/IP + curses, fully
- #configured, built with gcc, all models except 800 series.
- #You might need to add the include path for gcc headers, for example:
- # 'KFLAGS=-I/usr/gnu/lib/gcc-lib/hppa1.1-hp-hpux/2.4.5/include/'
- hpux90gcc:
- @MESSAGE1='using the gcc compiler'
- $(MAKE) hpux90 KTARGET=$${KTARGET:-$(@)} CC=gcc CC2=gcc
- "KFLAGS = $(KFLAGS) -DCK_ANSIC -funsigned-char -O2"
- #Make man page for HP-UX 10.00 or later.
- hpux100man:
- @touch ckuker.cpp
- $(MAKE) "SHELL=/usr/bin/sh" "CFLAGS=-DHPUX10" manpage
- #HP-9000 HP-UX 10.0 + TCP/IP + curses, fully configured.
- #Use with restricted (bundled) compiler: no optimization, no ANSI support.
- #libcurses needed for fullscreen file xfer display in HP-UX 10.00 and 10.01.
- #libHcurses (NOT libcurses!) for fullscreen display, to work around fatal bugs
- #in HP-UX 10.10 and 10.20 curses. Maybe we could use lcurses for 10.30, since
- #the 10.10 curses problem is supposedly fixed in 10.30.
- # +DA1.0 = Generate PA-RISC 1.0 code that runs on both 700 and 800 models.
- # +DA1.1 = Generate PA-RISC 1.1 code that runs on both 700 and 800 models.
- # Note that HP-UX 10.20 and upwards do not support PA-RISC 1.0 systems.
- hpux100:
- @$(MAKE) hpux-header
- @case `uname -r` in
- [AB].10.0*) KFLAGS='-DHPUX1000 +DA1.0 $(KFLAGS)' ;
- LIBS=' -lcurses' ;;
- [AB].10.1*) KFLAGS='-DHPUX1010 -D__HP_CURSES +DA1.0 $(KFLAGS)' ;
- LIBS=' -lHcurses' ;;
- [AB].10.2*) KFLAGS='-DHPUX1020 -D__HP_CURSES +DA1.1 $(KFLAGS)' ;
- LIBS=' -lHcurses' ;;
- [AB].10.3*) KFLAGS='-DHPUX1030 -D__HP_CURSES +DA1.1 $(KFLAGS)' ;
- LIBS=' -lHcurses' ;;
- [AB].10.?*) KFLAGS='-DHPUX10XX -D__HP_CURSES +DA1.1 $(KFLAGS)' ;
- LIBS=' -lHcurses' ;;
- [AB].11.0*) KFLAGS='-DHPUX1100 -D__HP_CURSES +DA1.1 $(KFLAGS)' ;
- LIBS=' -lHcurses' ;;
- esac ;
- $(MAKE) "SHELL=/usr/bin/sh" xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DHPUX10 -DDIRENT -DSTERMIOX -DCK_DSYSINI -DHDBUUCP
- -DCK_CURSES -DCK_WREFRESH -DTCPSOCKET -DCK_REDIR -DRENAME -DFNFLOAT
- $$KFLAGS "
- "LNKFLAGS=-s $(LNKFLAGS)" "LIBS = -lm $$LIBS $(KLIBS)"
- # Trusted HP-UX 10
- # echo KFLAGS=$(KFLGS) YTARGET YTARGET=$(YTARGET) $(XTARGET) ;
- hpux100t:
- @case "$(KTARGET)" in
- *o+) KENTRY=hpux100o+ ;;
- *o) KENTRY=hpux100o ;;
- *) KENTRY=hpux100 ;;
- esac ;
- MESSAGE1="and support for 'Trusted HP-UX'"
- $(MAKE) $$KENTRY KTARGET=$${KTARGET:-$(@)}
- "KFLAGS= $(KFLAGS) -DHPUX10_TRUSTED" "KLIBS=-lsec"
- hpux100to:
- $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
- hpux100to+:
- $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
- #HP-9000 HP-UX 10.00 and higher with ANSI prototyping and optimization.
- #PA-RISC only, no Motorola or other hardware is support in HP-UX 10.00++.
- #The unbundled optional compiler is required.
- #Your path should start with /opt/ansic/bin.
- # -Wl,-Fw = Remove stack unwind table (info used by debuggers).
- # +O2 makes a smaller executable (= -O = Level-1 and global optimization).
- # +O3 adds interprocedural global optimization, makes a bigger executable.
- # +Onolimit allows all modules to be optimized, no matter how complex. But:
- # (a) +Onolimit does not seem to always be there in HP-UX 10.00, and:
- # (b) some modules might take hours on low-memory and/or slow systems.
- # The following are PA-RISC-specific optimizations:
- # +ESlit = Consolidate strings in read-only memory.
- # +ESfsc = Inline millicode calls when comparing pointers.
- # You might need to configure your kernel for a maxdsiz of 0x07000000 (112MB)
- # or greater to prevent the optimizer from running out of space.
- hpux100o:
- @MESSAGE1="with PA-RISC-specific optimizations $(MESSAGE1)"
- $(MAKE) "SHELL=/usr/bin/sh" "PATH=/opt/ansic/bin:$$PATH" hpux100
- "KFLAGS = $(KFLAGS)
- -Aa -D_HPUX_SOURCE -DCK_ANSIC -DUTIMEH
- +O2 -Wl,-Fw +ESlit +ESsfc"
- #The same like hpux100o but with "+Onolimit".
- #On 700 series maxdsize >= 0xB000 (=176MB). Takes a long time.
- hpux100o+:
- @MESSAGE1="and +Onolimit $(MESSAGE1)"
- $(MAKE) hpux100o
- "KFLAGS = $(KFLAGS) +Onolimit"
- hpux110:
- $(MAKE) hpux100 KTARGET=$${KTARGET:-$(@)}
- hpux110o:
- $(MAKE) hpux100o KTARGET=$${KTARGET:-$(@)}
- hpux110o+:
- $(MAKE) hpux100o+ KTARGET=$${KTARGET:-$(@)}
- # Trusted HP-UX 11
- hpux110t:
- $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
- hpux110to:
- $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
- hpux110to+:
- $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
- # Synonyms for the HP-UX 11.xx entries just above:
- hpux1100:
- $(MAKE) hpux100 KTARGET=$${KTARGET:-$(@)}
- hpux1100o:
- $(MAKE) hpux100o KTARGET=$${KTARGET:-$(@)}
- hpux1100o+:
- $(MAKE) hpux100o+ KTARGET=$${KTARGET:-$(@)}
- # Trusted HP-UX 11
- hpux1100t:
- $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
- hpux1100to:
- $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}