makefile
资源名称:cku197.tar.Z [点击查看]
上传用户:dufan58
上传日期:2007-01-05
资源大小:3407k
文件大小:269k
源码类别:
通讯/手机编程
开发平台:
Windows_Unix
- hpux1100to+:
- $(MAKE) hpux100t KTARGET=$${KTARGET:-$(@)}
- #Regulus on CIE Systems 680/20
- cie:
- @echo 'Making C-Kermit $(CKVER) for CIE Systems 680/20 Regulus...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DATTSV -DNOFILEH -DCIE $(KFLAGS) -O" "LNKFLAGS ="
- # Linux 1.2 or later with gcc, dynamic libraries, ncurses, TCP/IP.
- #
- # Most modern Linux systems use ncurses (with curses.h and an ncurses
- # shared library). Modern Linux systems also generally use FSSTND 1.2.
- # So this entry should work for most people. Read on if you have trouble.
- #
- # If your Linux system has curses rather than ncurses, use the linuxc
- # entry, or if that doesn't work, linuxnc.
- #
- # The Kermit "large memory model" is used by default to configure big packet
- # and script buffers, etc. For small-memory or limited-resource systems,
- # "make linux KFLAGS=-DNOBIGBUF".
- #
- # -DLINUXFSSTND (Linux File System Standard 1.2) gives UUCP lockfile /var/lock
- # with string pid. Remove this to get /usr/spool/uucp with int pid, used in
- # very early Linux versions. FSSTND 1.2 also says that the PID string in the
- # UUCP lock file has leading spaces. This is a change from FSSTND 1.0, which
- # used leading zeros. Add -DFSSTND10 to support FSSTND 1.0 instead of 1.2.
- #
- # Add -DOLINUXHISPEED (Old Linux High Speed support) to turn on an ugly kludge
- # in Linux 1.0 and earlier to support speeds of 57600 and 115200. Extremely
- # old Linux systems (pre-0.99pl15) will not support this. If OLINUXHISPEED is
- # not defined, then only the standard POSIX termios methods of setting the port
- # speed will be used, and in this case speeds can be as high as 460800 in most
- # modern Linux versions.
- #
- # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
- # least 0.99.14; if it causes trouble for you, remove it from the CFLAGS.
- #
- # -pipe removes the need for temp files - remove it if it causes trouble.
- #
- # -funsigned-char makes all characters unsigned, as they should have been
- # in the first place.
- #
- # Add -DCK_DSYSINI if you want a shared system-wide init file.
- #
- # See ckubwr.txt about -DNOCOTFMC. In fact, you really should read the
- # entire Linux section of ckubwr.txt.
- #
- # The "linuxa" entry can be referenced directly on LIBC systems, but not
- # GLIBC, where -lcrypt is required. The "make linux" entry should normally
- # be used for all builds on all Linux distributions unless you have special
- # requirements, in which case keep reading. CK_NEWTERM added after 7.0B04
- # due to new complaints about ncurses changing buffering of tty.
- linuxa:
- @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later...'
- @echo 'IMPORTANT: Read the comments in the linux section of the'
- @echo 'makefile if you have trouble.'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS = -O -DLINUX -pipe -funsigned-char -DFNFLOAT -DCK_POSIX_SIG
- -DCK_NEWTERM -DTCPSOCKET -DLINUXFSSTND -DNOCOTFMC -DPOSIX $(KFLAGS)"
- "LNKFLAGS = $(LNKFLAGS)" "LIBS = $(LIBS) -lm"
- # Default linux entry. This one sets LIBS according whether libcrypt.a
- # is present (in which case we must search it: GLIBC) or not (in which case
- # we must not search it: LIBC), and similarly for libresolv.a, in all four
- # possible combinations. Please read the comments above the linuxa entry just
- # above. This one also requires ncurses. The NCURSES_CPP lets us find
- # ncurses.h in case it is not in /usr/include, as some distributions are wont
- # to put it in its own directory (the -I is ignored if ncurses.h is found in
- # /usr/include).
- NCURSES_CPP = -DCK_NCURSES -I/usr/include/ncurses
- linux:
- @if test -f /usr/lib/libcrypt.a; then
- if test -f /usr/lib/libresolv.a; then
- $(MAKE) KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H $(KFLAGS)"
- "LIBS=-lncurses -lresolv -lcrypt" linuxa ;
- else
- $(MAKE) KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H $(KFLAGS)"
- "LIBS=-lncurses -lcrypt" linuxa ;
- fi
- else
- if test -f /usr/lib/libresolv.a; then
- $(MAKE) KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(NCURSES_CPP) $(KFLAGS)"
- "LIBS=-lncurses -lresolv" linuxa ;
- else
- $(MAKE) KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(NCURSES_CPP) $(KFLAGS)"
- "LIBS=-lncurses" linuxa ;
- fi
- fi
- # As above but for Linux systems that have no <sys/select.h>.
- linuxns:
- $(MAKE) linux KTARGET=$${KTARGET:-$(@)} KFLAGS=-DNO_SYS_SELECT_H
- # As above, but forces use of curses rather than ncurses.
- # Add -ltermcap to LIBS if necessary.
- # Also watch out for libcurses and/or libtermcap having been moved.
- # In that case you might need something like:
- # "LIBS = -L/usr/lib/curses -lcurses -L/usr/lib/termcap -ltermcap"
- linuxc:
- @if test -f /usr/lib/libcrypt.a; then
- if test -f /usr/lib/libresolv.a; then
- $(MAKE) KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DCK_CURSES -DHAVE_CRYPT_H $(KFLAGS)"
- "LIBS=-lcurses -lresolv -lcrypt" linuxa ;
- else
- $(MAKE) KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DCK_CURSES -DHAVE_CRYPT_H $(KFLAGS)"
- "LIBS=-lcurses -lcrypt" linuxa ;
- fi
- else
- if test -f /usr/lib/libresolv.a; then
- $(MAKE) KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DCK_CURSES $(KFLAGS)"
- "LIBS=-lcurses -lresolv" linuxa ;
- else
- $(MAKE) KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DCK_CURSES $(KFLAGS)"
- "LIBS=-lcurses" linuxa ;
- fi
- fi
- # As above but with with no curses support, for example because you installed
- # the developer tools but did not install (n)curses.
- linuxnc:
- @if test -f /usr/lib/libcrypt.a; then
- if test -f /usr/lib/libresolv.a; then
- $(MAKE) KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DNOTERMCAP -DHAVE_CRYPT_H $(KFLAGS)"
- "LIBS=-lresolv -lcrypt" linuxa ;
- else
- $(MAKE) KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DNOTERMCAP -DHAVE_CRYPT_H $(KFLAGS)"
- "LIBS=-lcrypt" linuxa ;
- fi
- else
- if test -f /usr/lib/libresolv.a; then
- $(MAKE) KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DNOTERMCAP $(KFLAGS)"
- "LIBS=-lresolv" linuxa ;
- else
- $(MAKE) KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DNOTERMCAP $(KFLAGS)"
- "LIBS=" linuxa ;
- fi
- fi
- # A minimum-size version for Linux that does only scripting and
- # serial communication -- no networks, no file transfer.
- linuxso:
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS = -O -DLINUX -pipe -funsigned-char -DPOSIX -DCK_POSIX_SIG
- -DLINUXFSSTND -DNOCOTFMC -DNOXFER -DNODEBUG -DNOCSETS -DNOHELP
- -DNONET -DMINIDIAL -DNOSCRIPT -DNOIKSD -DNOPUSH $(KFLAGS)"
- "LNKFLAGS = $(LNKFLAGS)" "LIBS = "
- #Mklinux DR3 has horrible bug in <utmpbits.h> - see ckufio.c.
- mklinux:
- $(MAKE) KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DUTMPBUG"
- "LIBS=-lcrypt -lresolv" linuxa
- #LinuxPPC 1999
- linuxppc:
- @echo 'Making C-Kermit $(CKVER) for LinuxPPC 1999...'
- @if test -f /usr/lib/libcrypt.a; then
- if test -f /usr/lib/libresolv.a; then
- $(MAKE) KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H
- -DLOCK_DIR=\\\""/var/lock/modem\\\"" $(KFLAGS)"
- "LIBS=-lncurses -lresolv -lcrypt" linuxa ;
- else
- $(MAKE) KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(NCURSES_CPP) -DHAVE_CRYPT_H
- -DLOCK_DIR=\\\""/var/lock/modem\\\"" $(KFLAGS)"
- "LIBS=-lncurses -lcrypt" linuxa ;
- fi
- else
- if test -f /usr/lib/libresolv.a; then
- $(MAKE) KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(NCURSES_CPP)
- -DLOCK_DIR=\\\""/var/lock/modem\\\"" $(KFLAGS)"
- "LIBS=-lncurses -lresolv" linuxa ;
- else
- $(MAKE) KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(NCURSES_CPP)
- -DLOCK_DIR=\\\""/var/lock/modem\\\"" $(KFLAGS)"
- "LIBS=-lncurses" linuxa ;
- fi
- fi
- # The remaining Linux entries are for special or customized builds.
- # They have not been generalized like the two just above. Ideally, we
- # should allow for every combination of libc vs glibc, gcc vs egcs,
- # curses vs ncurses, Kerberos IV vs Kerberos V vs SRP (in any combination),
- # and so on -- volunteers welcome.
- # If you get "Internal compiler error xxx, output pipe has been closed",
- # try removing -pipe.
- # Like "make linux" but built with egcs rather than gcc.
- linuxegcs:
- @echo 'Making C-Kermit $(CKVER) for Linux 1.2 or later with egcs...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)} "CC = egcs" "CC2 = egcs"
- "CFLAGS = -O -DLINUX -pipe -funsigned-char
- -DPOSIX -DCK_POSIX_SIG -DCK_NCURSES -DNOCOTFMC
- -DTCPSOCKET -DLINUXFSSTND $(KFLAGS)"
- "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lncurses -lcrypt -lresolv"
- #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05 (no K4 compatibility).
- linux+krb5:
- @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
- $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC
- -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5
- -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG
- -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H -I/usr/local/include/
- -I/usr/local/include/krb5/
- $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)"
- "LIBS = -L/usr/local/lib -lncurses -ltermcap -ldes425 -lkrb5
- -lcom_err -lk5crypto -lcrypt -lresolv"
- #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05 with K4 compat.
- #
- # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
- linux+krb5+krb4:
- @echo 'Making C-Kermit $(CKVER) for Linux on Intel with Kerberos...'
- $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC
- -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524
- -DCK_ENCRYPTION -DCK_DES -DCK_CURSES -DCK_POSIX_SIG
- -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H -I/usr/local/include/
- -I/usr/local/include/krb5/
- $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)"
- "LIBS = -L/usr/local/lib -lncurses -ltermcap -lkrb4 -ldes425 -lkrb5
- -lcom_err -lk5crypto -lcrypt -lresolv"
- #Linux on Intel PC with SRP 1.4.5.
- #
- # remove the -DCK_DES, -DLIBDES and -ldes if you do not have Eric Young's
- # libdes.a installed. libsrp.a should be build with GNU MP (libgmp.a)
- # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
- # standard distribution Linux libraries.
- #
- linux+srp:
- @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
- $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC
- -DCK_AUTHENTICATION -DCK_SRP
- -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES
- -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H
- -I/usr/src/srp-1.4.5/include/
- $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)"
- "LIBS = -L/usr/src/srp-1.4.5/lib
- -lncurses -ltermcap -lsrp -lgmp -ldes -lcrypt -lresolv"
- linux+srp+no-des:
- @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP ...'
- $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC
- -DCK_AUTHENTICATION -DCK_SRP
- -DCK_ENCRYPTION -DCK_CAST
- -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H
- -I/usr/src/srp-1.4.5/include/
- $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)"
- "LIBS = -L/usr/src/srp-1.4.5/lib
- -lncurses -ltermcap -lsrp -lgmp -lcrypt -lresolv"
- linux+srp-export:
- @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
- $(MAKE) srpmit-export KTARGET=$${KTARGET:-$(@)}
- "CC = gcc" "CC2 = gcc"
- "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC
- -DCK_AUTHENTICATION -DCK_SRP -DFNFLOAT
- -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H
- -I/usr/src/srp-1.4.5/include/
- $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)"
- "LIBS = -L/usr/src/srp-1.4.5/lib
- -lncurses -ltermcap -lsrp -lgmp -lcrypt -lm -lresolv"
- linux+srp+pam:
- @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
- $(MAKE) srpmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC
- -DCK_AUTHENTICATION -DCK_SRP
- -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES
- -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H
- -DCK_PAM -DFNFLOAT
- -I/usr/src/srp-1.4.5/include/
- $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)"
- "LIBS = -L/usr/src/srp-1.4.5/lib
- -lncurses -ltermcap -lsrp -lgmp -ldes -lcrypt -lpam -ldl -lm -lresolv"
- #Linux configured for SSL/TLS
- linux+openssl:
- @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
- $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC
- -DCK_AUTHENTICATION -DCK_SSL
- -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H
- -DFNFLOAT
- -I/usr/local/ssl/include/
- $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)"
- "LIBS= -L/usr/local/ssl/lib/
- -lncurses -ltermcap -lssl -lsslcrypto -lm -lresolv"
- #Linux configured for SSL/TLS and Shadow Passwords
- linux+openssl+shadow:
- @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SSL/TLS...'
- $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC
- -DCK_AUTHENTICATION -DCK_SSL
- -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H
- -DFNFLOAT -DCK_SHADOW
- -I/usr/local/ssl/include/
- $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)"
- "LIBS= -L/usr/local/ssl/lib/
- -lncurses -ltermcap -lssl -lsslcrypto -lm -lresolv"
- #Linux on Intel PC with SRP and SSL/TLS.
- #
- # libsrp.a should be build with GNU MP (libgmp.a)
- # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
- # standard distribution Linux libraries.
- # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
- linux+srp+openssl:
- @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
- $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC
- -DCK_AUTHENTICATION -DCK_SRP
- -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL
- -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H
- -I/usr/local/include/
- -I/usr/src/srp-1.4.5/include/
- -I/usr/local/ssl/include/
- $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)"
- "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib
- -L/usr/local/ssl/lib/
- -lncurses -ltermcap -lsrp -lgmp
- -ldes -lssl -lsslcrypto
- -lcrypt -lresolv"
- #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05 and SRP.
- #
- # libsrp.a should be build with GNU MP (libgmp.a)
- # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
- # standard distribution Linux libraries.
- # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
- linux+krb5+krb4+srp:
- @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB54+SRP...'
- $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC
- -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524
- -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES
- -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H
- -I/usr/local/include/
- -I/usr/local/include/krb5/
- -I/usr/src/srp-1.4.5/include/
- $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)"
- "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib
- -lncurses -ltermcap -lsrp -lgmp
- -ldes -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv"
- #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05, SRP and SSL/TLS.
- #
- # libsrp.a should be build with GNU MP (libgmp.a)
- # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
- # standard distribution Linux libraries.
- # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
- linux+krb5+krb4+srp+openssl:
- @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
- $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC
- -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524
- -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL
- -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H
- -I/usr/local/include/
- -I/usr/local/include/krb5/
- -I/usr/src/srp-1.4.5/include/
- -I/usr/local/ssl/include/
- $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)"
- "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib
- -L/usr/local/ssl/lib/
- -lncurses -ltermcap -lsrp -lgmp
- -ldes -lkrb4 -ldes425 -lssl -lsslcrypto
- -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv"
- #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05, SSL/TLS.
- #
- # libsrp.a should be build with GNU MP (libgmp.a)
- # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
- # standard distribution Linux libraries.
- # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
- linux+krb5+krb4+openssl:
- @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SSL...'
- $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC
- -DCK_AUTHENTICATION -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524
- -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL
- -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H
- -I/usr/local/include/
- -I/usr/local/include/krb5/
- -I/usr/local/ssl/include/
- $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)"
- "LIBS = -L/usr/local/lib
- -L/usr/local/ssl/lib/
- -lncurses -ltermcap
- -ldes -lkrb4 -ldes425 -lssl -lsslcrypto -lkrb5 -lcom_err
- -lk5crypto -lcrypt -lresolv"
- linux+krb5+krb4+srp-export:
- @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
- $(MAKE) krbmit-export KTARGET=$${KTARGET:-$(@)}
- "CC = gcc" "CC2 = gcc"
- "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC
- -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524
- -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H
- -I/usr/local/include/
- -I/usr/local/include/krb5/
- -I/usr/src/srp-1.4.5/include/
- $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)"
- "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib
- -lncurses -ltermcap -lsrp -lgmp
- -lkrb4 -ldes425 -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv"
- linux+krb5+krb4+srp+pam:
- @echo 'Making C-Kermit $(CKVER) for Linux on i386 with SRP...'
- $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS = -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC
- -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524
- -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES
- -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H
- -DCK_PAM
- -I/usr/local/include/
- -I/usr/local/include/krb5/
- -I/usr/src/srp-1.4.5/include/
- $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)"
- "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib
- -lncurses -ltermcap -lsrp -lgmp -ldes -lkrb4 -ldes425 -lkrb5
- -lcom_err -lk5crypto -lcrypt -lpam -ldl -lresolv"
- #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05, SRP and SSL/TLS.
- # and PAM.
- #
- # libsrp.a should be build with GNU MP (libgmp.a)
- # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
- # standard distribution Linux libraries.
- # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
- linux+krb5+krb4+srp+openssl+pam-debug:
- @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
- $(MAKE) krbmit-debug KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC
- -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524
- -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM
- -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H
- -w -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG -I/usr/local/include/
- -I/usr/local/include/krb5/
- -I/usr/src/srp-1.4.5/include/
- -I/usr/local/ssl/include/
- $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)"
- "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib
- -L/usr/local/ssl/lib/
- -lncurses -ltermcap -lsrp -lgmp
- -ldes -lkrb4 -ldes425 -lssl -lsslcrypto
- -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl"
- #Linux on Intel PC with Cygnus or MIT Kerberos 5 1.05, SRP and SSL/TLS.
- # and PAM.
- #
- # libsrp.a should be build with GNU MP (libgmp.a)
- # instead of AT&T CryptoLib (libcrypt.a) due to naming conflicts with
- # standard distribution Linux libraries.
- # Requires the Kerberos 1.0.5 be compiled with KRB4 compatibility.
- linux+krb5+krb4+srp+openssl+pam:
- @echo 'Making C-Kermit $(CKVER) for Linux on i386 with KRB,SRP,SSL...'
- $(MAKE) krbmit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS = -g -O -funsigned-char -pipe -DPOSIX -DLINUX -DNOCOTFMC
- -DCK_AUTHENTICATION -DCK_SRP -DCK_KERBEROS -DKRB5 -DKRB4 -DKRB524
- -DCK_ENCRYPTION -DCK_CAST -DCK_DES -DLIBDES -DCK_SSL -DCK_PAM
- -DCK_CURSES -DCK_POSIX_SIG -DTCPSOCKET -DLINUXFSSTND -DHAVE_CRYPT_H
- -I/usr/local/include/
- -I/usr/local/include/krb5/
- -I/usr/src/srp-1.4.5/include/
- -I/usr/local/ssl/include/
- $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)"
- "LIBS = -L/usr/src/srp-1.4.5/lib -L/usr/local/lib
- -L/usr/local/ssl/lib/
- -lncurses -ltermcap -lsrp -lgmp
- -ldes -lkrb4 -ldes425 -lssl -lsslcrypto
- -lkrb5 -lcom_err -lk5crypto -lcrypt -lresolv -lpam -ldl"
- linuxnotcp:
- $(MAKE) linux KTARGET=$${KTARGET:-$(@)} "KFLAGS = -DNONET $(KFLAGS)"
- # "make linuxnotcp" with lcc (see http://www.cs.princeton.edu/software/lcc)
- # lcc does not understand various gcc extensions:
- # "__inline__" -- can be eliminated by adding "-D__inline__="
- # "__asm__ and "long long" -- in header files, should be surrounded by
- # "#ifndef(__STRICT_ANSI__)"/"#endif"
- # however, TCP requires some __asm__ functions, so cannot be compiled
- linuxnotcp-lcc:
- @echo 'Making C-Kermit $(CKVER) for Linux with lcc ...'
- @echo 'Read comments in makefile for additional information.'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = lcc" "CC2 = lcc"
- "CFLAGS = -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG
- -UTCPSOCKET -DLINUXFSSTND $(KFLAGS)"
- "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
- # Linux 0.99.14 thru 1.0 with gcc, dynamic libraries, curses, TCP/IP.
- # For Linux 1.2 or later, use "make linux" (above).
- #
- # -DLINUXFSSTND (Linux File System Standard) gives UUCP lockfil /var/lock with
- # string pid. Remove this and get /usr/spool/uucp with int pid, which was used
- # in early Linux versions.
- #
- # If you get compiler errors regarding <linux/serial.h>, add -DNOHISPEED.
- #
- # -DCK_POSIX_SIG (POSIX signal handling) is good for Linux releases back to at
- # least 0.99.14; if it causes trouble for you, just remove it.
- #
- # -DCK_CURSES: Here we link with the regular curses library. But you should
- # be using ncurses. Internally, the ckuusx.c module includes <curses.h>, but
- # this really should be <ncurses.h>. Thus if you have the new curses
- # material, you should either install it with the standard names, or else
- # create symbolic links from the standard names to the new ones. If you get
- # compile-time errors complaining about data definitions in termcap.h, it
- # means you have new kernel material mixed with older libc header files. To
- # fix, add "#include <termios.h>" to the <termcap.h> file. Or if all this is
- # too confusing, create a new makefile entry based on this one, but with
- # -DCK_CURSES removed from CFLAGS and the entire LIBS= clause removed.
- #
- # But wait, there's more. On most Linux systems, -ltermcap must be included
- # in LIBS. But on others, the linker complains that libtermcap can't be
- # found. In that case, try removing -ltermcap from LIBS=.
- #
- # But wait, there's more. The format of the PID string in the UUCP lockfile
- # changed between Linux FSSTND 1.0 and 1.2. In the earlier standard, it had
- # leading zeros; in the second, it has leading spaces. By default this entry
- # uses the newer standard. To force the older one, add -DFSSTND10.
- #
- # "The nice thing about the Linux standard is there are so many to choose from"
- #
- # NOTE: Remove -DBIGBUFOK for small-memory or limited-resource systems.
- linux10:
- @echo 'Making C-Kermit $(CKVER) for Linux 1.0 or earlier...'
- @echo 'IMPORTANT: Read the comments in the linux section of the'
- @echo 'makefile if you get compilation or link errors.'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS = -O -DPOSIX -DCK_CURSES -DCK_POSIX_SIG -DLINUX
- -DTCPSOCKET -DLINUXFSSTND -DOLINUXHISPEED $(KFLAGS)"
- "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
- #This version was used for Linux prior to C-Kermit 6.0.192.
- #Now the "Linux File System Standard" is considered standard, ditto TCP/IP.
- linuxold:
- @echo 'Making C-Kermit $(CKVER) for Linux...'
- @echo 'For FSSTND-recommended UUCP lockfiles, use:'
- @echo ' make linux "KFLAGS=-DLINUXFSSTND".'
- @echo 'Read comments in makefile for additional options.'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS = -O -DLINUX -DPOSIX -DCK_CURSES -DCK_POSIX_SIG
- $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS)" "LIBS = -lcurses -ltermcap"
- # LynxOS 2.2 with GCC compiler, TCP/IP and fullscreen display.
- # Probably also works with Lynx 2.1, and maybe even Lynx 2.0.
- # -X means use termios serial drivers rather than BSD4.3-style sgtty drivers.
- # If you have trouble with this, try "make bsd KFLAGS=-DNOFDZERO".
- lynx:
- @echo 'Making C-Kermit $(CKVER) for LynxOS 2.2 with TCP/IP'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS= -O -DPOSIX -DDIRENT -DSETREUID -DCK_CURSES -DTCPSOCKET
- -DCK_ANSIC -DLYNXOS" "LNKFLAGS = -X" "LIBS = -lcurses -lbsd"
- lynx22:
- $(MAKE) lynx KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
- # LynxOS 2.1 with GCC compiler 1.40 and TCP/IP.
- lynx21:
- @echo 'Making C-Kermit $(CKVER) for LynxOS 2.1 with TCP/IP'
- $(MAKE) kermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS= -O -DSETREUID -DTCPSOCKET -DCK_ANSIC -DBSD4 -DLYNXOS"
- "LIBS = -lbsd"
- #SCO Xenix 2.2.1 for IBM PC, XT, PS2/30, or other 8088 or 8086 machine
- #Should this not work, try some of the tricks from sco286.
- #NOTE: -DRENAME is omitted for early SCO Xenix releases because it didn't
- #exist, or its semantics were different from the later POSIX-compliant
- #version of rename().
- sco86:
- @echo 'Making C-Kermit $(CKVER) for SCO Xenix/86...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOUNICODE
- $(KFLAGS) -Dunix -F 3000 -i -M0me"
- "LNKFLAGS = -F 3000 -i -s -M0me" "LIBS = -lx"
- #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
- #Reportedly, this "make" can fail simply because of the size of this
- #makefile. If that happens, use "makeL", or edit out some of the
- #other entries. No debugging or character-set translation.
- sco286:
- @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286...'
- @echo 'If make fails, try using makeL.'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -xenix -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP
- -DNOIKSD -DNODEBUG -DNOTLOG -DNOCSETS
- $(KFLAGS) -F 3000 -i -M2let16"
- "LIBS = -lx" "LNKFLAGS = -xenix -s -O -LARGE -F 3000 -i -M2let16"
- #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
- #As above, but with HDBUUCP (This one might need fixing -- see sco286).
- sco286hdb:
- @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286 with HDB UUCP...'
- @echo 'If make fails, try using makeL.'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP
- -DHDBUUCP -DNOIKSD -DNOUNICODE $(KFLAGS) -F 3000 -i -M2let32"
- "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
- #SCO Xenix/386 2.2.2 and 2.2.3
- sco386:
- @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.2...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DXENIX -DNOFILEH -DNOIKSD -DNOREDIRECT
- -Dunix -DRDCHK -DNAP -DNOUNICODE $(KFLAGS) -Otcl -M3e"
- "LNKFLAGS = -s" "LIBS = -lx"
- #SCO XENIX/386 2.2.3 with Excelan TCP/IP + curses.
- # NOTE: This one might need some work in C-Kermit 6.0.
- # You might need to include /usr/include/sys/types.h
- # containing "typedef char *caddr_t;". Then at least it compiles.
- sco386netc:
- @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.3 + Excelan TCP'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -I/usr/include/exos -DXENIX -DCK_CURSES -DNOUNICODE
- -Dunix -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC -DNOMKDIR -DNOFILEH
- -DNOREDIRECT -DNOIKSD -DNO_DNS_SRV $(KFLAGS) -Otcl -M3e"
- "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
- #SCO XENIX/386 2.3.3 with gcc 1.37 or later...
- sco386gcc:
- @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
- @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP
- -DNOJC -DNODEBUG -DNOUNICODE $(KFLAGS)
- -traditional -fpcc-struct-return -fstrength-reduce
- -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM
- -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5
- -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD -DNOREDIRECT
- -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx"
- #As above, but with curses...
- sco386gccc:
- @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
- @echo 'Add -D_NO_PROTOTYPE if you have trouble with Xenix header files'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2 = gcc"
- "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP
- -DNOJC -DNODEBUG -DCK_CURSES -DNOUNICODE $(KFLAGS)
- -traditional -fpcc-struct-return -fstrength-reduce
- -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOREDIRECT
- -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5
- -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX -DNOIKSD
- -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx -lcurses -ltermlib"
- #SCO UNIX (and ODT) entries...
- #
- #NOTE: All SCO UNIX entry LIBS should have "-lc_s -lc -lx" IN THAT ORDER (if
- #shared C library is desired), or else "-lc -lx" IN THAT ORDER. Use shared C
- #libraries to save memory, but then don't expect to run the resulting binary
- #on a different machine. When using -lc_s, you must also use -lc, because the
- #shared C library does not contain all of libc.a. And in all cases, -lc must
- #ALWAYS precede -lx.
- #
- #ANOTHER NOTE: -DRENAME is included in all SCO UNIX entries. Remove it if it
- #causes trouble. No harm is done by removing it (see ckuins.txt).
- #
- #AND ANOTHER: In theory, it should be possible to run SCO UNIX binaries on
- #SCO Xenix 2.3 and later. In practice, this might not work because of the
- #libraries, etc. Also, don't add the -link -z switch (which is supposed to
- #root out references to null pointers) because it makes UNIX binaries core
- #dump when they are run under Xenix.
- #NOTE: -Otcl removed and replaced by -O, since -Otcl produced incorrect code.
- #SCO UNIX/386 3.2.0, 3.2.1, and SCO Xenix 2.3.x
- sco3r2:
- @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.0 or 3.2.1 ...'
- @echo 'Warning: If make blows up, edit the makefile to join'
- @echo 'the following three continued lines into one line.'
- @echo 'Also, remove -DRENAME if _rename unresolved at link time.'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP
- -DRENAME -DNOIKSD -DNOJC $(KFLAGS) -O"
- "LNKFLAGS = -s" "LIBS = -lc -lx"
- #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
- #In case of compilation or runtime problems, try adding
- #"-DUID_T=int -DGID_T=int" to the CFLAGS. If that doesn't work, try
- #"-DUID_T=uid_t -DGID_T=gid_t".
- sco3r2net:
- @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH
- -DHDBUUCP -DRDCHK -DNAP -DRENAME -DTCPSOCKET -DEXCELAN -DNOJC
- -DNOIKSD -DNOREDIRECT $(KFLAGS) -O"
- "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket"
- #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
- #As above, with curses added.
- sco3r2netc:
- @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan / curses...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DNOFILEH
- -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC $(KFLAGS)
- -DRENAME -DCK_CURSES -DNOREDIRECT -DNOIKSD -O" "LNKFLAGS = -s"
- "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
- #SCO UNIX 3.2.x or SCO Xenix 2.3.x with Racal InterLan TCP/IP support
- # Extra compile flags for other version of Racal InterLan TCP/IP:
- # Xenix286/NP621-286, use -Ml -DPARAMH -DINTERLAN -Di286 -DSYSV
- # Xenix386/NP621-386, use -DPARAMH -DINTERLAN -Di386 -DSYSV
- # ISC386ix/NP622I, use -DSYSV -Di386
- # SCO Unix3.2/NP622S, use -DSYSV -Di386 -DSCO_UNIX
- # AT&T SVR3.2/NP622A, use -DSYSV -Di386 -DATT
- sco3r2netri:
- @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Racal InterLan...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -I/usr/include/interlan -DXENIX -DNOFILEH -DHDBUUCP
- -DSVR3 -DRDCHK -DNAP -DTCPSOCKET -DPARAMH -DINTERLAN -Di386 -DSYSV
- -DRENAME -DNOREDIRECT -DNOIKSD -DNOJC $(KFLAGS) -Otcl -M3e"
- "LNKFLAGS = -s" "LIBS = -lc -lx -ltcp"
- # SCO XENIX/386 2.3.3 SysV with SCO TCP/IP
- # System V STREAMS TCP developed by Lachman Associates Inc and
- # Convergent Technologies.
- # -DRENAME removed since some reports indicate it is not supported
- # (whereas others say it is.)
- sco3r2lai:
- @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK
- -DNAP -DTCPSOCKET -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS)
- -Otcl -i -M3e"
- "LNKFLAGS = -i -s" "LIBS = -lc -lx -lsocket"
- sco3r2laic:
- @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK
- -DNAP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DM_TERMINFO
- -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) -Otcl -i -M3e"
- "LNKFLAGS = -i -s" "LIBS = -ltinfo -lc -lx -lsocket"
- #SCO UNIX/386 3.2v2 (POSIX job control), shared libraries.
- sco3r22:
- @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
- make wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK
- -DNAP -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOIKSD
- -DNOREDIRECT $(KFLAGS) -O"
- "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
- #SCO UNIX/386 3.2v2, POSIX job control, fullscreen file transfer display,
- #dynamic memory allocation, shared C library
- sco3r22c:
- @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
- @echo 'Warning: If make blows up, edit the makefile to join'
- @echo 'the following four continued lines into one line.'
- make wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP
- -DCK_CURSES -DDIRENT -DRENAME -DNOREDIRECT -DNOIKSD
- -DPID_T=pid_t -DPWID_T=int $(KFLAGS) -O"
- "LNKFLAGS = -s" "LIBS = -lcurses -lc_s -lc -lx"
- #SCO UNIX/386 3.2v2 with gcc 1.40 or later (POSIX job control)
- sco3r22gcc:
- @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2, gcc'
- @echo 'Warning: If make blows up, edit the makefile to join'
- @echo 'the following seven continued lines into one line.'
- make wermit KTARGET=$${KTARGET:-$(@)} "CC = gcc"
- "CFLAGS= -O -DPOSIX -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP
- -DRENAME -traditional -fpcc-struct-return -fstrength-reduce
- -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM
- -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5
- -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix
- -DPID_T=pid_t -DPWID_T=int -DNOREDIRECT -DNOIKSD $(KFLAGS) "
- "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
- #SCO UNIX/386 3.2v2 (ODT 1.1) (POSIX job control) with SCO TCP/IP, shared libs
- #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
- sco3r22net:
- @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.2 + TCP/IP...'
- @echo 'Warning: If make blows up, edit the makefile to join'
- @echo 'the following three continued lines into one line.'
- make xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET
- -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DNOREDIRECT -DNOIKSD
- $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lsocket -lc_s -lc -lx"
- #As above, but with curses for fullscreen file transfer display.
- #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
- sco3r22netc:
- @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 + TCP/IP...'
- @echo 'Warning: If make blows up, edit the makefile to join'
- @echo 'the following three continued lines into one line.'
- make xermit KTARGET=$${KTARGET:-$(@)} "CFLAGS=
- -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DRENAME
- -DCK_CURSES -DDIRENT -DNOIKSD -DNOREDIRECT
- -DPID_T=pid_t -DPWID_T=int -O $(KFLAGS)"
- "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
- #SCO XENIX 2.3.4, no curses, no TCP/IP, no IKSD.
- #This one built and tested in C-Kermit 7.0.
- #lcfp is C library floating-point support.
- #Use -M3 to generate 32-bit i386 code instead of 16-bit segmented i286 code.
- #Use -Me to enable MS nonstandard keywords in system headers.
- #Use -W2 or W3 to increase the warning level.
- sco234:
- @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK
- -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER
- -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DSCO234 -DDCLGETCWD $(KFLAGS)
- -Otcl" "LNKFLAGS = -s" "LIBS = -lcfp -lc -lx"
- #SCO XENIX 2.3.4, no TCP/IP, no IKSD, but with curses.
- # Built and tested in C-Kermit 7.0.
- # Note: XENIX 2.3.4 does not have newterm() so no point in adding -DCK_NEWTERM.
- sco234c:
- @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + curses...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK
- -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER
- -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DM_TERMCAP -DCK_CURSES -DSCO234
- -DDCLGETCWD $(KFLAGS) -Otcl"
- "LNKFLAGS = -s" "LIBS = -lcfp -lc -lx -lcurses -ltermlib"
- #SCO XENIX 2.3.4 with SCO TCP/IP and curses, no IKSD.
- # Built and tested in C-Kermit 7.0. TCP/IP works and curses works.
- # Previous versions of this target included -lmalloc, but this caused "error:
- # " _calloc : symbol defined more than once" at link time so I removed it.
- # Results are likely to vary depending on exactly which version of the SDK
- # and TCP/IP SDK you have.
- sco234netc:
- @echo 'Making C-Kermit $(CKVER) for SCO XENIX 2.3.4 + TCP + curses...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DSCO32 -DXENIX -DNOFILEH -DHDBUUCP -DRDCHK
- -DNAP -DNOJC -DNOCOTFMC -DNOIKSD -DNOREDIRECT -DNOTNCODE -DNOGFTIMER
- -DNOTIMEVAL -DNOTIMEZONE -DNOSYMLINK -DM_TERMCAP -DCK_CURSES -DSCO234
- -DDCLGETCWD -DTCPSOCKET -DNO_DNS_SRV $(KFLAGS) -Otcl"
- "LNKFLAGS = -s"
- "LIBS = -lcurses -ltermlib -lsocket -lcfp -lc -lx"
- # SCO 3.2v4.x targets...
- # NOTE: Add -DDCLPOPEN and/or -DDCLFDOPEN to anySCO 3.2v4.x non-gcc entries
- # that complain about fdopen() or popen() at compile time. They compile OK
- # without these flags as of July 1999. However, the gcc entries seem to
- # need them, at least for gcc 2.7.2.2.
- # NOTE 2: To enable IKSD support, add:
- # -DCK_LOGIN -DNOGETUSERSHELL -DNOINITGROUPS
- # to CFLAGS (not tested).
- #SCO UNIX/386 3.2v4 (POSIX job control), curses, ANSI C compilation,
- #<dirent.h> (EAFS) file system. Remove -lmalloc if it causes trouble. It was
- #put there to avoid core dumps caused by regular libc.a malloc. Add -J to make
- #all chars unsigned. This version uses select() for CONNECT and also has
- #high-precision timers and so might not work on non-TCP systems, in which case
- #sco32v4ns should be used instead.
- # If you get _ftime redefinition_ complaint, try adding -DODT30 to CFLAGS.
- sco32v4:
- @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
- make xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO
- -DNOANSI -DSELECT -DNOIKSD -DDCLGETCWD -NOLSTAT
- -DNOLINKBITS -DDCLGETCWD $(KFLAGS) -O"
- "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lsocket -lc_s -lc -lx"
- # As above, but with no dependence on sockets library or select().
- sco32v4ns:
- @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
- @echo 'No select() and no sockets library.'
- make wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DCK_SCO32V4 -DNOFILEH -DHDBUUCP -DCK_CURSES -DM_TERMINFO
- -DNOANSI -DNOIKSD -DNOGFTIMER -DCK_POLL -DNAP -DDCLGETCWD -DNOLSTAT
- -DNOLINKBITS -DDCLGETCWD -O $(KFLAGS)"
- "LNKFLAGS = -s" "LIBS = -lcurses -lmalloc -lc_s -lc -lx"
- #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
- #<dirent.h> (EAFS) file system. With DIRENT, -lc must come before -lx.
- #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
- #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
- #See sco32v4 above for additional comments.
- #NOTE: No more room for -Dxxx -- 25 seems to be the limit. Move some to
- #ckcdeb.h or somewhere...
- sco32v4net:
- @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
- @echo 'If you get _ftime redefinition_ complaint,'
- @echo 'use make sco-odt30.'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES
- -DNAP -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DNOLSTAT
- -DDCLGETCWD -DCK_SCO32V4 -DNOIKSD -O
- $(KFLAGS)" "LNKFLAGS = $(LNKFLAGS) -s"
- "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
- #SCO UNIX/386 3.2v4 with gcc 1.40 or later, POSIX job control.
- #Also see comments in sco32r4 entry.
- sco32v4gcc:
- make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc"
- "CFLAGS= -O -DNOFILEH -DHDBUUCP -DNOANSI -DCK_CURSES -DM_TERMINFO
- -traditional -fpcc-struct-return -fstrength-reduce -funsigned-char
- -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS
- -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DSELECT -DNOLSTAT
- -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD
- -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix
- -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) "
- "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
- #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
- #Requires SCO TCP/IP or ODT development system for telnet.h, etc.
- #<dirent.h> (EAFS) file system. With DIRENT, -lc must come before -lx.
- #gcc 1.40 or later. Also see comments in sco32r4 entry.
- sco32v4netgcc:
- make xermit KTARGET=$${KTARGET:-$(@)} "CC = gcc" "CC2=gcc"
- "CFLAGS= -O2 -DNOFILEH -DHDBUUCP -DSELECT -DNOLSTAT
- -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO
- -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLINKBITS
- -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DDCLGETCWD
- -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5
- -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix
- -DDCLPOPEN -DDCLFDOPEN $(KFLAGS)"
- "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
- #As above but with bgcc BOUNDS CHECKING (for developers only). -lcheck has
- #bounds-checking replacements for malloc, memcpy, bcopy, etc, so must come
- #before -lsocket and -lc.
- sco32v4netbgcc:
- make xermit KTARGET=$${KTARGET:-$(@)}
- "CC = bgcc -pipe -m386" "CC2=bgcc -pipe -m386"
- "CFLAGS= -O1 -g -DNOFILEH -DHDBUUCP -DSELECT
- -DNOANSI -DTCPSOCKET -DCK_CURSES -DM_TERMINFO
- -D_KR -D_NO_PROTOTYPE -D_SVID -DNOIKSD -DCK_SCO32V4 -DNOLSTAT
- -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM -DNOLINKBITS
- -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 -DDCLGETCWD
- -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix
- -DDCLPOPEN -DDCLFDOPEN $(KFLAGS) "
- "LNKFLAGS = -g" "LIBS = -lcurses -lcheck -lsocket -lx"
- sco32v4netnd:
- @echo sco32v4net with no debug
- $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
- sco3r2netnd:
- @echo sco32v4netnd built for SCO XENIX 2.3 under SCO UNIX...
- @echo requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
- @echo getting /lib/386/Slibsocket.a from a XENIX devkit.
- @echo WARNING: poll/CK_POLL supported only on XENIX 2.3.4
- echo For earlier XENIX systems, replace CK_POLL with RDCHK.
- $(MAKE) "MAKE=$(MAKE)" sco32v4netnd KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK"
- "LNKFLAGS = $(LNKFLAGS) -x2.3"
- "LIBS=-ldir -lcfp $(LIBS)"
- #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
- #<dirent.h> (EAFS) file system. With DIRENT, -lc must come before -lx.
- #Reportedly it's OK to add -DCK_REDIR and -DCK_WREFRESH, and to remove -lc_s.
- #Requires SCO TCP/IP development system or ODT for telnet.h, etc.
- #See sco32v4 above for additional comments.
- # Note: "xermit" means use the select() version of the CONNECT module.
- sco32v4netx:
- @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
- @echo 'If you get _ftime redefinition_ complaint,'
- @echo 'use make sco-odt30.'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DNOFILEH -DHDBUUCP -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DNAP
- -DCK_WREFRESH -DNOLINKBITS -D_IBCS2 -DSELECT -DDCLGETCWD
- -DCK_SCO32V4 -DNOIKSD -DNOLSTAT -O $(KFLAGS)"
- "LNKFLAGS = $(LNKFLAGS) -s"
- "LIBS = $(LIBS) -lcurses -lsocket -lmalloc -lsocket -lc_s -lc -lx"
- sco32v4netndx:
- @echo sco32v4netx with no debug
- $(MAKE) "MAKE=$(MAKE)" sco32v4netx KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(KFLAGS) -DNODEBUG -DNOTLOG" "LIBS=$(LIBS)"
- sco3r2netndx:
- @echo sco32v4netndx built for SCO XENIX 2.3 under SCO UNIX...
- @echo requires copying /lib/386/Slibc.a to /lib/386/Slibc_s.a and
- @echo getting /lib/386/Slibsocket.a from a XENIX devkit.
- @echo WARNING: poll/CK_POLL supported only on XENIX 2.3.4
- echo For earlier XENIX systems, replace CK_POLL with RDCHK.
- $(MAKE) "MAKE=$(MAKE)" sco32v4netndx KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(KFLAGS) -x2.3 -DNORENAME -DNOSYMLINK"
- "LNKFLAGS = $(LNKFLAGS) -x2.3"
- "LIBS=-ldir -lcfp $(LIBS)"
- sco-odt30:
- @echo SCO ODT 3.0
- $(MAKE) "MAKE=$(MAKE)" sco32v4net KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=$(KFLAGS) -DODT30"
- #SCO OpenServer 5.0 (SCO UNIX 3.2v5.0) with SCO development tools, no TCP/IP.
- #SCO OSR5 is much more like standard System V than previous SCO releases.
- #The SCO development tools include TCP/IP, so this target is only for creating
- #artificially limited versions of kermit required by site policy rather than
- #the operating system. NOSYSLOG is included because syslog() requires the
- #sockets library.
- sco32v500:
- @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
- $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS
- -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H
- -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DNOSYSLOG $(KFLAGS)"
- "LIBS=-lcurses $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
- sco32v5:
- $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500
- #SCO OpenServer 5.0 with networking, SCO development tools.
- #Networking libraries are now provided with the OS.
- sco32v500net:
- @echo Making C-Kermit $(CKVER) for SCO OpenServer Release 5...
- $(MAKE) xermit CC=$(CC) CC2=$(CC2) KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -O -DDIRENT -DHDBUUCP -DSVR4 -DCK_SCOV5 -DCK_RTSCTS
- -DCK_CURSES -DCK_WREFRESH -DCK_NEWTERM -DSELECT -DSELECT_H
- -DNOGETUSERSHELL -DNOLSTAT -DNOLINKBITS -DTCPSOCKET $(KFLAGS)"
- "LIBS=-lcurses -lsocket $(LIBS)" "LNKFLAGS=$(LNKFLAGS)"
- sco32v5net:
- $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v500net
- #SCO OpenServer 5.0 with gcc, no networking.
- #Note: NOSYSLOG required for non-net entries because it requires <socket.h>
- sco32v500gcc:
- @echo Using gcc...
- $(MAKE) "MAKE=$(MAKE)" sco32v500CC=gcc CC2=gcc
- KTARGET=$${KTARGET:-$(@)} "KFLAGS= $(KFLAGS)"
- #SCO OpenServer 5.0 with networking, gcc.
- sco32v500netgcc:
- @echo TCP/IP networking added - using gcc...
- $(MAKE) "MAKE=$(MAKE)" sco32v500net CC=gcc CC2=gcc
- KTARGET=$${KTARGET:-$(@)} "KFLAGS=$(KFLAGS)"
- #SCO OpenServer 5.0 with networking, gcc, elf.
- sco32v500netgccelf:
- @echo TCP/IP networking added - using gcc, dynamic elf library
- $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc"
- KTARGET=$${KTARGET:-$(@)} "KFLAGS=-O3 -belf" "LNKFLAGS=-belf"
- sco32v502:
- $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DSCO_OSR502 $(KFLAGS)"
- #SCO OpenServer 5.0.2 with networking, SCO development tools.
- sco32v502net:
- @echo TCP/IP networking added...
- $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-b elf -DSCO_OSR502 $(KFLAGS)"
- #SCO OpenServer 5.0.4 (SCO UNIX 3.2v5.0.4) with SCO development tools.
- #Like 5.0, but adds high serial speeds. First POSIX-based SCO version.
- sco32v504:
- $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DSCO_OSR504 -b elf -DPOSIX $(KFLAGS)"
- #SCO OpenServer 5.0.4 with gcc, no networking.
- sco32v504gcc:
- @echo Using gcc...
- $(MAKE) "MAKE=$(MAKE)" sco32v500"CC=gcc" "CC2=gcc"
- KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSCO_OSR504 -DPOSIX $(KFLAGS)"
- #SCO OpenServer 5.0.4 with networking, SCO development tools.
- sco32v504net:
- @echo TCP/IP networking added...
- $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-b elf -DSCO_OSR504 -DPOSIX $(KFLAGS)"
- #SCO OpenServer 5.0.4 with networking, gcc.
- sco32v504netgcc:
- @echo TCP/IP networking added - using gcc...
- @echo If gcc crashes on ckwart.c then build it by hand:
- @echo " gcc -o wart -DCK_SCOV5 ckwart.c"
- $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc"
- KTARGET=$${KTARGET:-$(@)} "KFLAGS=-DSCO_OSR504 -DPOSIX $(KFLAGS)"
- #SCO OpenServer 5.0.4 with networking, gcc, elf.
- sco32v504netgccelf:
- @echo TCP/IP networking added - using gcc, dynamic elf library
- $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc"
- KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DSCO_OSR504 -DPOSIX -O3 -belf $(KFLAGS)"
- LNKFLAGS="-belf"
- #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with SCO development tools.
- #Like 5.0, but adds high serial speeds. First POSIX-based SCO version.
- sco32v505:
- $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DSCO_OSR505 -b elf -DPOSIX $(KFLAGS)"
- #SCO OpenServer 5.0.5 (SCO UNIX 3.2v5.0.5) with UDK.
- sco32v505udk:
- $(MAKE) "MAKE=$(MAKE)" sco32v500 KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DSCO_OSR505 -DDCLTIMEVAL -b elf -DPOSIX $(KFLAGS)"
- #SCO OpenServer 5.0.5 with gcc, no networking.
- sco32v505gcc:
- @echo Using gcc...
- $(MAKE) "MAKE=$(MAKE)" sco32v500"CC=gcc" "CC2=gcc"
- KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char $(KFLAGS)"
- #SCO OpenServer 5.0.5 with networking, SCO development tools.
- sco32v505net:
- @echo TCP/IP networking added...
- $(MAKE) "MAKE=$(MAKE)" sco32v500net KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DSCO_OSR505 -b elf -DPOSIX $(KFLAGS)"
- #SCO OpenServer 5.0.5 with networking, gcc.
- sco32v505netgcc:
- @echo TCP/IP networking added - using gcc...
- @echo If gcc crashes on ckwart.c then build it by hand:
- @echo " gcc -o wart -DCK_SCOV5 ckwart.c"
- $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc"
- KTARGET=$${KTARGET:-$(@)}
- "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char $(KFLAGS)"
- #egcs is just like gcc but generates ELF by default.
- #Or you can include -melf (not -belf) to force it.
- sco32v505netegcs:
- $(MAKE) "MAKE=$(MAKE)" "KFLAGS=$(KFLAGS)" sco32v505netgcc
- KTARGET=$${KTARGET:-$(@)}
- #SCO OpenServer 5.0.5 with networking, gcc, elf.
- sco32v505netgccelf:
- @echo TCP/IP networking added - using gcc, dynamic elf library
- $(MAKE) "MAKE=$(MAKE)" sco32v500net "CC=gcc" "CC2=gcc"
- "KFLAGS=-DSCO_OSR505 -DPOSIX -funsigned-char -O3 -belf $(KFLAGS)"
- KTARGET=$${KTARGET:-$(@)} LNKFLAGS="-belf"
- #Tandy 16/6000 with Xenix 3.0
- #Add more -DNOxxx options to remove features if program won't load.
- #Successful operation is a function of program size, physical memory,
- #available swap space, etc. The following stripped-down configuration
- #seems to work on most Tandy 6000s. NOTE: "-+" means allow long variable
- #names, needed for C-Kermit 6.0 because some identifiers are not unique
- #within the first six characters.
- #C-Kermit 7.0 does not build here; "too many defines".
- trs16:
- @echo 'Making C-Kermit $(CKVER) for Tandy 16/6000, Xenix 3.0...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -+ -DATTSV -DTRS16 -DNOMKDIR -DDCLPOPEN -DCK_CURSES
- -DNODEBUG -DNOTLOG -DNOHELP -DNOSCRIPT -DNOCSETS -DNOIKSD
- -DNOREDIRECT -DNOSYSLOG -DNOPUTENV -DNOREALPATH
- $(KFLAGS) -O" "LIBS= -lcurses -ltermcap" "LNKFLAGS = -+ -n -s"
- #MINIX/2.0 32 Bit version for intel 386+ running the POSIX-compliant MINIX
- # version 2.0 (The definition of fatal avoids a conflict with a symbol by
- # the same name in the curses library.) It is impossible to compile with
- # network support since Minix does not support Berkeley sockets.
- # Note: use chmem liberally on the compiler passes, make, and the final
- # kermit executable. (3 megabytes of memory for each is sufficient.)
- # From Terry McConnell, Syracuse U, and Will Rose. Will says:
- # The stacks for make and some compiler passes needed to be increased
- # with chmem as follows:
- # make 1MB
- # /usr/lib/em_cemcom.ansi 3MB
- # /usr/lib/em_opt 1MB
- # /usr/lib/i386/cg 1MB
- # /usr/lib/i386/as 1MB
- # The compiler temporary directory was set to /usr/tmp via the TMPDIR
- # environment variable; more than 1MB of temporary space was needed.
- # Kermit itself needs at least 1MB of stack.
- minix20:
- @echo 'Making C-Kermit $(CKVER) for MINIX 2.0/386...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} EXT=o
- "CFLAGS= -wo -DV7 -DMINIX2 -DMINIX -DSIG_V -D_POSIX_SOURCE
- -DCKCPU=\"i-386\" -DNOIKSD -Dfatal=myfatal -DCK_CURSES
- -DNOSYSLOG -DUSE_MEMCPY -DNOREALPATH $(KFLAGS)" "LIBS= -lcurses"
- #MINIX/386 (PC Minix modified by Bruce Evans in Australia for 386 addressing)
- # For MINIX 1.5+ (but < 2.0)
- minix386:
- @echo 'Making C-Kermit $(CKVER) for MINIX/386...'
- @echo 'TOTALLY UNTESTED!'
- $(MAKE) wermit EXT=s KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE $(KFLAGS)"
- #MINIX/386 (PC Minix modifed by Bruce Evans in Australia to use 386 addressing)
- minix386gcc:
- @echo 'Making C-Kermit $(CKVER) for MINIX/386 with gcc...'
- @echo 'TOTALLY UNTESTED!'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)} "CC=gcc -g -O" "CC2=gcc -g"
- "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE $(KFLAGS)"
- #MINIX - 68k version with ACK compiler.
- # If you have trouble compiling or running wart, "touch wart".
- # If it still doesn't work, "touch ckcpro.c".
- # The version configured below has many features removed, including
- # the TRANSMIT, MSEND, HELP, and SCRIPT commands, international
- # character set support, and the entire script programming language.
- # But it does have an interactive command parser.
- # Make sure make(1) has (at least) 100000 chmemory!
- # If you are using the Amsterdam C compiler, you might have to add "-D__ACK__".
- minix68k:
- @echo 'Making C-Kermit $(CKVER) for MINIX 68k with ACK...
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE
- -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG
- -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS)
- -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
- #MINIX - 68k version with c68 compiler.
- # If you have trouble compiling or running wart, "touch wart" or
- # "touch ckcpro.c". Compiling ckudia.c (no -DNODIAL!) might fail. :-(
- # Give c68 250000 bytes of stack+heap; make sure make(1) has at least
- # 100000 chmemory. On a 1Mb Atari ST this means that the recursive
- # call of make fails due to memory shortage. Try "make -n minixc68 >makeit",
- # followed by ". makeit". Otherwise, as above.
- minixc68:
- @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
- $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE
- -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG
- -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS)
- -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
- #MINIX - 68k version with c68 compiler.
- #A variation on the above that was recently (Sep 95) reported to work.
- minixc68a:
- @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
- $(MAKE) wermit "CC= cc -c68" KTARGET=$${KTARGET:-$(@)}
- "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE
- -DCK_ANSIC -DNODEBUG -DNOTLOG -DMINIDIAL -DEXTEN -DMYCURSES
- -DNOSCRIPT -DNOCSETS -DNOSPL -DNOJC -DDIRENT
- -DNOSETKEY -DNOESCSEQ $(KFLAGS)
- -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
- #MIPS Computer Systems with UMIPS RISC/OS 4.52 = AT&T UNIX System V R3.0.
- #Remove -DNOJC if job control can be safely used.
- mips:
- @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC -DPID_T=int
- -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)"
- #As above, but with TCP/IP and fullscreen support.
- mipstcpc:
- @echo 'Making C-Kermit $(CKVER) for MIPS RISC/OS...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DMIPS -DDIRENT -DCK_POLL -DNOJC
- -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd
- -DPID_T=int -DGID_T=gid_t -DUID_T=uid_t -i -O1500 $(KFLAGS)"
- "LIBS = -lcurses -lbsd"
- #Motorola Delta System V/68 R3, signal() is void rather than int.
- #Uses dirent.h and Honey DanBer uucp. Supports TCP/IP.
- #After building, use "mcs -d" to reduce size of the executable program.
- sv68r3:
- @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3...'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNO_DNS_SRV -DTCPSOCKET
- -DNOUNICODE $(KFLAGS) -O" "LNKFLAGS ="
- #Motorola Delta System V/68 R3V5, signal() is void rather than int.
- #Uses dirent.h and Honey DanBer UUCP. Supports TCP/IP.
- #After building, use "mcs -d" to reduce size of the executable program.
- sv68r3v5:
- @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNO_DNS_SRV
- -DTCPSOCKET -DINADDRX -DNOUNICODE $(KFLAGS) -O"
- "LNKFLAGS =" "LIBS = -linet"
- #Motorola MVME147 System V/68 R3 V5.1. Requires gcc 2.1 to compile.
- #After building, use "mcs -d" to reduce size of the executable program.
- sv68r3v51:
- @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5.1'
- $(MAKE) wermit "CC=gcc-delta" "CC2=gcc-delta"
- KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNODEBUG -DNO_DNS_SRV
- -DNOUNICODE $(KFLAGS) -O2 -v -ftraditional"
- "LNKFLAGS = -s -v" "LIBS = -lm881"
- #Motorola MVME147 System V/68 R3V6. derived from Motorola Delta System R3V5.
- #Checked on larger Motorola System V/68 R3V6 (with NSE Network Services Ext.)
- #After building, use "strip" to reduce size of the executable program.
- #Try removing the LIBS clause if it causes trouble (libnsl might not actually
- #be necessary, and reportedly it is missing on some systems).
- # "LIBS = -lnsl" removed in C-Kermit 6.1 - put back if needed.
- sv68r3v6:
- @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V6'
- $(MAKE) wermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSV68R3V6 -DDIRENT -DHDBUUCP -DNOLOGIN -DNOINITGROUPS
- -DNOSYMLINK -DNOREDIRECT -DNOGFTIMER -DTCPSOCKET -DDCLGETCWD
- -DNO_DNS_SRV -DNOUNICODE $(KFLAGS) -O" "LNKFLAGS ="
- #Motorola Delta System V/88 R32, signal() is void rather than int.
- #Uses dirent.h and Honey DanBer uucp. Needs <sys/utime.h> for setting
- #file dates. Supports TCP/IP.
- #After building, use "mcs -d" to reduce size of the executable program.
- sv88r32:
- @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R32...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -DSV88R32 -DDIRENT -DHDBUUCP -DTCPSOCKET
- -DSYSUTIMEH -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS) -O"
- "LIBS= -lcurses -lresolv" "LNKFLAGS = -s"
- #Motorola Delta System V/88 R40. 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. curses support added. Reportedly, the
- #/usr/include/sys/vnode.h file has a bug which must be fixed before this
- #makefile entry can work correctly. The "if DEBUG" directive at about line
- #320 must be changed to "ifdef DEBUG" (Reportedly, this was fixed in
- #in System V/88 R4.3).
- #After building, use "mcs -d" to reduce size of the executable program.
- sv88r40:
- @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- "CFLAGS = -O -DSVR4 -DMOTSV88R4 -DDIRENT -DHDBUUCP -DSTERMIOX
- -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL -DGTODONEARG $(KFLAGS)"
- "LIBS= -lsocket -lnsl -lcurses -lresolv" "LNKFLAGS = -s"
- #Olivetti X/OS R2.3, 3.x.
- #NOTES:
- # . If you build the executable on 2.x X/OS, it will also run on 3.x.
- # . If you build it on 3.x X/OS, it will NOT run on 2.x.
- # . Kermit can run with no privileges unless the uucp lines are protected,
- # in which case kermit must be owned by uucp with suid bit set:
- # chown uucp kermit ; chmod 4111 kermit.
- xos23:
- @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- 'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP $(KFLAGS)'
- "LIBS=" "LNKFLAGS="
- #As above, but with curses.
- xos23c:
- @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS with curses...'
- $(MAKE) xermit KTARGET=$${KTARGET:-$(@)}
- 'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP -DCK_CURSES $(KFLAGS)'
- "LIBS=-lcurses" "LNKFLAGS="
- ckuuid:
- @echo 'building C-Kermit $(CKVER) set-UID/set-GID test programs'
- $(CC) -DANYBSD -DSAVEDUID -o ckuuid1 ckuuid.c
- $(CC) -DANYBSD -o ckuuid2 ckuuid.c
- $(CC) -DANYBSD -DNOSETREU -o ckuuid3 ckuuid.c
- $(CC) -DANYBSD -DSETEUID -DNOSETREU -o ckuuid4 ckuuid.c
- $(CC) -o ckuuid5 ckuuid.c
- @echo 'Read the top of ckuuid.c for directions...for testing'
- @echo 'you must make these programs setuid and setgid'
- ############################################################################
- # A N T I Q U I T I E S
- #
- # The following are antique targets from C-Kermit 5A or earlier. They have
- # not been updated or tested in years. Most of them will need recent features
- # disabled, usually with some combination of -DNOUNICODE, -DNOIKSD, -DNOANSI,
- # -DNOCKGHNLHOST, -DNO_DNS_SRV, -DNOREDIRECT, -DNOREALPATH, -DNOCURSES, etc.
- # They are also missing the KTARGET=$${KTARGET:-$(@)} business.
- # For details see ckuins.txt and ckccfg.txt.
- #
- ############################################################################
- #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"
- bsd210:
- @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.10BSD.
- bsd211:
- @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.11BSD.
- #Charles River Data Systems Universe with UNOS Version 9.2
- crds:
- @echo 'Making C-Kermit $(CKVER) for Charles River Data Systems...'
- make xermit
- "CFLAGS = -DATTSV -DNOANSI -DDIRENT -DLONGFN -DTCPSOCKET
- -DLOCK_DIR=\"/usr/spool/uucp\" -DNOSETREU
- -Dsuspend=ksuspend $(KFLAGS) -O" "LNKFLAGS ="
- #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
- #The -O flag may fail on some modules (like ckuus2.c), in which case you
- #should compile them by hand, omitting the -O. If you get "hash table
- #overflow", try adding -DNODEBUG.
- #Also, reportedly this compiles better with gcc than with cc.
- mpsysv:
- @echo 'Making C-Kermit $(CKVER) for Microport SV/AT 286...'
- $(MAKE) wermit
- "CFLAGS= -DATTSV $(KFLAGS) -O -Ml" "LNKFLAGS = -Ml"
- #Microsoft "Xenix/286" e.g. for IBM PC/AT
- xenix:
- @echo 'Making C-Kermit $(CKVER) for Xenix/286'
- $(MAKE) wermit
- "CFLAGS= -DXENIX -DNOFILEH $(KFLAGS) -Dunix -F 3000 -i"
- "LNKFLAGS = -F 3000 -i"
- #PC/IX, Interactive Corp System III for IBM PC/XT
- pcix:
- @echo 'Making C-Kermit $(CKVER) for PC/IX...'
- $(MAKE) wermit
- "CFLAGS= -DPCIX -DISIII $(KFLAGS) -Dsdata=sdatax -O -i" "LNKFLAGS = -i"
- #Integrated Solutions Inc V8S VME 68020
- isi:
- @echo Making C-Kermit $(CKVER) for 4.2BSD on ISI...
- $(MAKE) wermit "CC = cc"
- "CFLAGS= -DBSD4 -DTCPSOCKET -DINADDRX -DDCLPOPEN -DDEBUG -DNOSETREU
- -DCK_CURSES $(KFLAGS)" "LIBS = -lcurses -ltermcap"
- #Interactive Corp version of AT&T System III
- #is3: (very old, probably not sufficient for 5A or later)
- # @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
- # make wermit "CFLAGS = -DISIII -Ddata=datax -O -i" "LNKFLAGS = -i"
- #The following should work, use it if you don't have gcc.
- #Use is3gcc if you have gcc.
- is3:
- @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
- $(MAKE) wermit
- "CFLAGS= -DISIII $(KFLAGS) -Ddata=datax -DNAP -DHDBUUCP
- -DLOCK_DIR="/usr/spool/uucp" -DSIGTYP=void -O -i" "LNKFLAGS = -i"
- #Interactive UNIX System V R3, no network support. Uses <dirent.h> and Honey
- #DanBer UUCP. If this entry does not compile correctly, try any or all of the
- #following. These suggestions also apply more or less to the other is5r3xxx
- #entries that follow this one.
- # . Remove the UID_T and GID_T definitions, or change them as required.
- # . Change -DDIRENT to -DSDIRENT.
- # . Add -DSIGTYP=void.
- # . Remove -g from LNKFLAGS.
- # . Add -DNOANSI to remove compiler complaints about ANSI C constructions
- # . Add other -DNOxxx's to save space (e.g. -DNOCSETS)
- # See the next few makefile entries for related examples.
- is5r3:
- @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
- @echo 'If this does not work please read the makefile entry.'
- $(MAKE) wermit
- "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS
- -DUID_T=ushort -DGID_T=ushort -DI386IX $(KFLAGS)"
- "LNKFLAGS = -g"
- #Interactive Corp System System V R3 with gcc
- is3gcc:
- @echo 'Making C-Kermit $(CKVER) for Interactive System V R3 / gcc...'
- $(MAKE) wermit CC=gcc CC2=gcc
- 'CFLAGS = -D_SYSV3 -DISIII -Ddata=datax -DNAP -DHDBUUCP
- -DLOCK_DIR="/usr/spool/uucp" -DSIGTYP=void -O' "LNKFLAGS ="
- #Interactive UNIX System V R3, POSIX variant. Untested.
- #Uses dirent.h and Honey DanBer uucp. Read comments in is5r3 entry.
- is5r3p:
- @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
- $(MAKE) wermit
- "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS
- -DI386IX -DPOSIX $(KFLAGS)" "LNKFLAGS=" "LIBS=-lcposix"
- #Interactive UNIX SVR3 2.2.1, job control, curses, no net, gcc.
- is5r3gcc:
- $(MAKE) wermit CC=gcc CC2=gcc
- "CFLAGS=-g -posix -DSVR3 -DDIRENT
- -DHDBUUCP -O -DNOCSETS -DI386IX -DSVR3JC -DCK_CURSES
- $(KFLAGS)" LNKFLAGS="-posix" LIBS="-lcurses -lc_s"
- #Interactive UNIX System V R3 with TCP/IP network support.
- #Needs -linet for net functions. signal() is void rather than int.
- #Uses dirent.h and Honey DanBer uucp. Read comments in is5r3 entry.
- #Also see is5r3net2 if you have trouble with this entry.
- is5r3net:
- @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
- @echo 'If this does not work please read the makefile entry.'
- $(MAKE) wermit CC="$(CC)" CC2="$(CC2)"
- "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET
- -DI386IX $(KFLAGS) -O" "LIBS = -linet"
- is5r3netgcc:
- $(MAKE) is5r3net CC=gcc CC2=gcc
- #Interactive UNIX System V R3, no job control, signal() void rather than int.
- #Uses dirent.h and Honey DanBer uucp. Needs -linet for net functions.
- #Read comments in is5r3 entry. Use this entry if is5r3net fails.
- #Saves some space by stripping (-s) and using shared library (-lc_s).
- is5r3net2:
- @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
- $(MAKE) wermit
- "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET -DNOJC
- -DSIGTYP=void -DNOANSI -DI386IX $(KFLAGS) -O"
- "LNKFLAGS= -s" "LIBS = -linet -lc_s"
- #Interactive UNIX System V R3 (version 2.2 or later) with job control & curses.
- #Uses dirent.h and Honey DanBer UUCP.
- is5r3jc:
- @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
- $(MAKE) wermit CC="$(CC)" CC2="$(CC2)"
- "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS
- -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES
- -DPOSIX_JC -DCK_REDIR -DCK_POLL -DDCLGETCWD
- $(KFLAGS)" "LIBS=-lcurses -lc_s -linet"
- is5r3jcgcc:
- $(MAKE) is5r3jc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc
- KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
- #Sunsoft/Interactive UNIX System V R3 (version 2.2 or later)
- #with job control, curses, and TCP/IP networking.
- #Uses dirent.h and Honey DanBer UUCP.
- is5r3netjc:
- @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
- $(MAKE) wermit CC="$(CC)" CC2="$(CC2)"
- "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS
- -DUID_T=ushort -DGID_T=ushort -DI386IX -DSVR3JC -DCK_CURSES
- -DPOSIX_JC -DCK_REDIR -DTCPSOCKET -DSELECT
- $(KFLAGS)" "LIBS=-linet -lcurses -lc_s"
- is5r3netjcgcc:
- $(MAKE) is5r3netjc CC="gcc -DCK_ANSILIBS -DDCGPWNAM -O4" CC2=gcc
- KFLAGS="$(KFLAGS)" LNKFLAGS="$(LNKFLAGS)"
- #Masscomp System III
- rtu:
- @echo 'Making C-Kermit $(CKVER) for Masscomp RTU System III...'
- $(MAKE) wermit
- "CFLAGS= -UFIONREAD -DATTSV $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -ljobs"
- #Masscomp/Concurrent RTU 4.0 or later, Berkeley environment.
- #Includes <ndir.h> = /usr/include/ndir.h
- #Note "LIBS = -lndir" might not be necessary because of "ucb make".
- rtubsd:
- @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
- ucb make wermit
- "CFLAGS= -DBSD4 -DRTU -DNDIR -DHDBUUCP -DTCPSOCKET $(KFLAGS)"
- "LIBS = -lndir"
- #Masscomp/Concurrent RTU 4.0 or later, same as above,
- #Includes "usr/lib/ndir.h"
- #Note "LIBS = -lndir" might not be necessary because of "ucb make".
- rtubsd2:
- @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
- ucb make wermit
- "CFLAGS= -DBSD4 -DRTU -DXNDIR -DHDBUUCP $(KFLAGS)"
- "LIBS = -lndir"
- #Masscomp/Concurrent RTU 4.0 or later, same as above,
- #Includes <sys/ndir.h>
- #Note "LIBS = -lndir" might not be necessary because of "ucb make".
- rtubsd3:
- @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x BSD...'
- ucb make wermit "CFLAGS= -DBSD4 -DRTU -DHDBUUCP $(KFLAGS)"
- "LIBS = -lndir"
- #Masscomp/Concurrent RTU 4.0 or later, System V R2, using <dirent.h>.
- #In case of problems, add back the -DRTU switch.
- #In case -DTCPSOCKET gives trouble, remove it.
- rtus5:
- @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x...'
- $(MAKE) wermit
- "CFLAGS= -DATTSV -DHDBUUCP -DDIRENT -DTCPSOCKET $(KFLAGS)"
- #Masscomp/Concurrent RTU 4.x, System V R3, using <dirent.h>.
- #Use this one if rtus5 gives warnings about pointer type mismatches.
- #In case of problems, add back the -DRTU switch.
- rtus5r3:
- @echo 'Making C-Kermit $(CKVER) for Masscomp RTU Sys V R3...'
- $(MAKE) wermit "CFLAGS= -DSVR3 -DHDBUUCP -DDIRENT $(KFLAGS)"
- #DEC Pro-3xx with Pro/Venix V1.0 or V1.1
- # Requires code-mapping on non-I&D-space 11/23 processor, plus some
- # fiddling to get interrupt targets into resident code section.
- # This almost certainly doesn't work any more.
- provx1:
- @echo 'Making C-Kermit $(CKVER) for DEC Pro-3xx, Pro/Venix 1.x...'
- $(MAKE) wart "CFLAGS= -DPROVX1 $(KFLAGS)" "LNKFLAGS= "
- $(MAKE) wermit "CFLAGS = -DPROVX1 -DNOFILEH -md780"
- "LNKFLAGS= -u _sleep -lc -md780"
- #Nixdorf Targon/31.
- #AT&T UNIX System V R3, signal() is void rather than int.
- #Uses dirent.h without Honey DanBer uucp.
- t31tos40x:
- @echo 'Making C-Kermit $(CKVER) for Targon/31 with TOS 4.0.xx...'
- $(MAKE) wermit
- "CFLAGS= -DSVR3 -DDIRENT $(KFLAGS) -O"
- "LNKFLAGS="
- #NCR Tower 1632, OS 1.02
- tower1:
- @echo 'Making C-Kermit $(CKVER) for NCR Tower 1632, OS 1.02...'
- $(MAKE) wermit "CFLAGS= -DTOWER1 $(KFLAGS)"
- #NCR Tower 32, OS Release 1.xx.xx
- tower32-1:
- @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 1 System V R2...'
- @echo 'Add KFLAGS=-DISDIRBUG if you get errors about S_ISREG/S_ISDIR.'
- $(MAKE) wermit
- "CFLAGS = -DATTSV $(KFLAGS) -O" "LNKFLAGS = -n"
- #NCR Tower 32, OS Release 2.xx.xx
- tower32-2:
- @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 2 System V R2...'
- $(MAKE) wermit
- "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -O2"
- "LNKFLAGS = -n"
- #NCR Tower 32, OS Releases based on System V R3
- #Don't add -DNAP (doesn't work right) or -DRDCHK (not available in libc).
- tower32:
- @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3...'
- $(MAKE) wermit
- "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS)
- -DUID_T=ushort -DGID_T=ushort -O1"
- #NCR Tower 32, OS Releases based on System V R3
- tower32g:
- @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3, gcc...'
- $(MAKE) wermit "CC = gcc"
- "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DNOSYSIOCTLH $(KFLAGS)
- DUID_T=ushort -DGID_T=ushort -O -fstrength-reduce -fomit-frame-pointer"
- #Fortune 32:16, For:Pro 1.8 (mostly like 4.1bsd)
- ft18:
- @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 1.8...'
- $(MAKE) wermit
- "CFLAGS= -DNODEBUG -DBSD4 -DFT18 -DNOFILEH $(KFLAGS)
- -DPID_T=short"
- #Fortune 32:16, For:Pro 2.1 (mostly like 4.1bsd).
- #The modules that break the optimizer are compiled separately.
- ft21:
- @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 2.1...'
- $(MAKE) ckuusx.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH
- -SYM 800 -DCK_CURSES $(KFLAGS) -DPID_T=short"
- "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
- $(MAKE) ckuxla.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH
- -SYM 800 -DCK_CURSES $(KFLAGS) -DPID_T=short"
- "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
- $(MAKE) ckudia.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH
- -SYM 800 -DCK_CURSES $(KFLAGS) -DPID_T=short"
- "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
- $(MAKE) wermit
- "CFLAGS= -O -DNODEBUG -DBSD4 -DFT21 -DNOFILEH -SYM 800
- -DCK_CURSES $(KFLAGS) -DPID_T=short"
- "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
- #Valid Scaldstar
- #Berkeleyish, but need to change some variable names.
- valid:
- @echo 'Making C-Kermit $(CKVER) for Valid Scaldstar...'
- $(MAKE) wermit
- "CFLAGS= -DBSD4 -DNODEBUG -DNOTLOG -Dcc=ccx -DFREAD=1 $(KFLAGS)"
- #IBM IX/370 on IBM 370 Series mainframes
- #Mostly like sys3, but should buffer packets.
- ix370:
- @echo 'Making C-Kermit $(CKVER) for IBM IX/370...'
- $(MAKE) wermit "CFLAGS = -DIX370 -DATTSV $(KFLAGS) -i -O"
- "LNKFLAGS = -i"
- #Amdahl UTS 2.4 on IBM 370 series compatible mainframes.
- #Mostly like V7, but can't do initrawq() buffer peeking.
- uts24:
- @echo 'Making C-Kermit $(CKVER) for Amdahl UTS 2.4...'
- $(MAKE) wermit "CFLAGS=-DV7 -DPROCNAME=\"$(PROC)\"
- -DUTS24 -DBOOTNAME=\"$(BOOTFILE)\" -DNPROCNAME=\"$(NPROC)\"
- -DNPTYPE=$(NPTYPE) $(DIRECT) $(KFLAGS)"
- #Amdahl UTSV UNIX System V = System V R2 or earlier.
- utsv:
- @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV...'
- $(MAKE) wermit
- "CFLAGS = -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
- #Amdahl UTSV UNIX System V = System V R2 or earlier, with TCP sockets library.
- utsvtcp:
- @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV w/tcp...'
- $(MAKE) wermit "CFLAGS =
- -DTCPSOCKET -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
- "LIBS = -lsocket"
- #BBN C/70 with IOS 2.0
- #Mostly Berkeley-like, but with some ATTisms
- c70:
- @echo 'Making C-Kermit $(CKVER) for BBN C/70 IOS 2.0...'
- $(MAKE) wermit "CFLAGS= -DBSD4 -DC70 $(KFLAGS)"
- #Zilog ZEUS 3.21
- zilog:
- @echo 'Making C-Kermit $(CKVER) for Zilog Zeus 3.21...'
- $(MAKE) wermit
- "CFLAGS = -DATTSV -DZILOG -DNODEBUG $(KFLAGS) -i -O"
- "LNKFLAGS = -i -lpw"
- #Whitechapel MG-1 Genix 1.3
- white:
- @echo 'Making C-Kermit $(CKVER) for Whitechapel MG-1 Genix 1.3...'
- @touch ckcpro.c
- $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0 $(KFLAGS)"
- #Pixel 1000
- pixel:
- @echo 'Making C-Kermit $(CKVER) for Pixel 1000...'
- $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0 $(KFLAGS)"
- ptx:
- $(MAKE) "MAKE=$(MAKE)" dynixptx12
- #CDC VX/VE 5.2.1
- vxve:
- @echo 'Making C-Kermit $(CKVER) for CDC VX/VE 5.2.1...'
- $(MAKE) wermit
- "CFLAGS = -DATTSV -DVXVE -DNODEBUG -DNOTLOG $(KFLAGS) -i -O"
- "LNKFLAGS = -i"
- #DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX. Sys V with nap() and rdchk().
- # nd = no opendir(), readdir(), closedir(), etc.
- # Some of the modules fail to compile with -O.
- dnixnd:
- @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with very old DNIX 5.2.'
- $(MAKE) wermit
- "CFLAGS = -DATTSV -DNAP -DRDCHK -DDCLPOPEN
- -U__STDC__ $(KFLAGS)"
- #DIAB DS90 with DNIX 5.2. Sys V with nap() and rdchk().
- # This one has opendir(), readdir(), closedir(), etc.
- # Some of the modules fail to compile with -O.
- dnix:
- @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
- $(MAKE) wermit
- "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT
- -U__STDC__ $(KFLAGS)"
- #DIAB DS90 with DNIX 5.2. Sys V with nap() and rdchk().
- # As above, but with curses and TCP/IP.
- # You might get complaints about redefinition of O_RDONLY, etc, because
- # of bugs in the DNIX header files, which can be fixed by adding #ifndef...
- # around the offending definitions in the header files.
- dnixnetc:
- @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
- $(MAKE) wermit
- "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT
- -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd -U__STDC__ $(KFLAGS)"
- "LIBS = -ln -lcurses"
- #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk().
- dnix5r3:
- @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
- @echo 'with Honey DanBer UUCP'
- $(MAKE) wermit
- "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT
- -DCK_CURSES -DRENAME $(KFLAGS) -O" "LIBS= -lcurses"
- #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk() + TCP/IP
- dnix5r3net:
- @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
- @echo 'with Honey DanBer UUCP and TCP/IP'
- $(MAKE) wermit
- "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT
- -DTCPSOCKET -DCK_CURSES -DRENAME $(KFLAGS) -O
- -I/usr/include/bsd" "LIBS = -ln -lcurses"
- #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
- #ANSI C compilation and libraries.
- #Note that for DNIX 5.3 2.2 you have to correct a bug in /usr/include/stdlib.h:
- #change "extern void free(char *str);"
- #to "extern void free(void *str);"
- #NOTE: This bug is reportedly fixed in DNIX 5.3 2.2.1.
- #Should you get fatal errors caused by harmless pointer-type mismatches,
- #like between signed and unsigned char, just remove -X7.
- dnix5r3ansi:
- @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
- @echo 'with ANSI C Honey DanBer UUCP'
- $(MAKE) wermit
- "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT
- -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS)"
- "LIBS= -lcurses"
- #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
- # + TCP/IP, ANSI C compilation and libraries.
- #Should you get fatal errors caused by harmless pointer-type mismatches,
- #like between signed and unsigned char, just remove -X7.
- dnix5r3ansinet:
- @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
- @echo 'with ANSI C Honey DanBer UUCP'
- $(MAKE) wermit
- "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT
- -DTCPSOCKET -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS)
- -I/usr/include/bsd" "LIBS= -ln -lcurses"
- # QNX 4.21 and above, 32-bit version, Watcom C32 10.6, register calling
- # conventions, fully configured, except no job control because QNX 4.x
- # does not support it. New NCURSES library used instead of CURSES.
- #
- # -Oatx optimizes to favor speed over size: loop optimization, inline fn's.
- # -Os favors size over speed. The size difference is about 30-40K.
- # -NOUUCP is included because QNX is shipped without UUCP and no native
- # QNX software uses UUCP lockfiles. Remove -DNOUUCP if you want to use
- # UUCP lockfiles for exclusive access to dialout devices.
- #
- # If you get warnings about HEADER or C_IN add -DNO_DNS_SRV.
- qnx32:
- @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit...'
- $(MAKE) xermit
- "LNKFLAGS = -3r"
- "CFLAGS = -3r -ms -DQNX -DTCPSOCKET -DCK_CURSES -DNOGETUSERSHELL
- -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC
- -DNOINITGROUPS -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)"
- "LIBS= -lsocket -lncurses -ltermcap"
- @wermit -h >use.qnx
- @usemsg wermit use.qnx
- @rm use.qnx
- # As above but no networking since some QNX systems do not have TCP/IP
- # installed, or the TCP/IP developers kit, which includes all the needed
- # header files. This entry has not been tested on a QNX system that, in
- # fact, does not have TCP/IP installed; some adjustments might be necessary,
- # in particular regarding the use of select(): is -lsocket needed, can we
- # get the needed definitions from non-TCP/IP header files (FD_SET, etc)?
- qnx32nonet:
- @echo 'Making C-Kermit $(CKVER) for QNX 4.2x, 32-bit, no net...'
- $(MAKE) xermit
- "LNKFLAGS = -3r"
- "CFLAGS = -3r -ms -DQNX -DNONET -DNOIKSD -DCK_CURSES
- -DCK_WREFRESH -DCK_REDIR -DSELECT -DSELECT_H -DCK_RTSCTS -DNOJC
- -DNOUUCP -DCK_ANSIC -DPID_T=pid_t -Oatx -zc $(KFLAGS)"
- "LIBS= -lsocket -lncurses -ltermcap"
- @wermit -h >use.qnx
- @usemsg wermit use.qnx
- @rm use.qnx
- # Synonym for qnx32.
- qnx:
- $(MAKE) qnx32 "KFLAGS=$(KFLAGS)"
- # QNX 4.21 and above, 16-bit version, Watcom C 8.5 - and higher on i286 PCs
- # and above.
- #
- # IMPORTANT: Do not use Watcom C 10.6!!!
- # If you have it installed, add "-v9.52 to CFLAGS"
- #
- # NOTE: QNX 4.23 onward does not work on 286's anyway.
- # Stacksize 26000, objects larger than 100 bytes in their own segments,
- # string constants to the codesegment, etc. Fully configured except job ctrl.
- # This entry works for building a 16-bit executable on a 32-bit system, but
- # has not been tested on a 16-bit system. Uses large memory model, links
- # explicitly with large-model sockets library. Correct-model curses library
- # is chosen automatically. See comment in qnx32 entry about -DNOUUCP.
- #
- # WARNING:
- #
- # Watcom C prior to 10.6 never had released curses library. To link against it,
- # you must obtain ported free curses source from ftp://ftp.qnx.com/usr/free,
- # then compile and build library (cursesl.lib) and place it in /usr/lib. You
- # must also copy curses.h to /usr/include. Be aware that if you have Watcom
- # 10.6 installed, you should already have curses.h, which is the new ncurses
- # library. You must back it up and use free curses.h instead, since ncurses is
- # only for 32-bit applications and some definitions in these files are
- # different (e.g., clearok()). For safety, curses is not defined in build.
- #
- # In 7.0 -DNOHELP added to keep ckuus2.c from blowing up; NOCSETS and NOSPL
- # added because ckuus4 was blowing up, and NOFLOAT just because it seemed
- # dangerous (remove -DNOFLOAT if you want to try it), The result works OK
- # except for some mysterious beeps upon termination of the top-level keyword.
- #
- # Things to try next time we get in trouble:
- # . Change -zt100 to something smaller like -zt25
- # . Change -Oatx to -Omilerat (enable stack checking)
- # . Maybe get rid of -v9.52 -- it's only there because we were warned.
- #
- qnx16:
- @echo 'Making C-Kermit $(CKVER) for QNX 4.21, 16-bit...'
- $(MAKE) xermit
- "LNKFLAGS = -2 -ml -N 26000"
- "CFLAGS = -2 -Oatx -zc -zt100 -ml -DQNX -DQNX16 -DNOUUCP -DNOHELP
- -DCK_REDIR -DSELECT -DSELECT_H -DNOJC -DNOGETUSERSHELL -DNOCSETS
- -v9.52 -DTCPSOCKET -DCK_RTSCTS -DCK_ANSIC -DNOINITGROUPS -DNOKVERBS
- -DNORANDOM -DNOCSETS -DNOSPL -DNOFLOAT -DPID_T=pid_t $(KFLAGS)"
- # QNX 4.1, 16-bit version, with Watcom C 8.5 on i286 PCs and above.
- # stacksize 26000, objects larger than 100 bytes in their own segments,
- # string constants to the codesegment, etc. Add -DNOUUCP if desired.
- qnx16_41:
- @echo 'Making C-Kermit $(CKVER) for QNX 4.1, 16-bit...'
- $(MAKE) xermit
- "LNKFLAGS = -mh -N 26000" "CFLAGS = -Wc,-fpc -Wc,-j -DNOGETUSERSHELL
- -Wc,-Ols -Wc,-zdf -Wc,-zc -Wc,-zt100 -mh -DPOSIX -DQNX -DDIRENT
- -DNOCYRIL -DNODEBUG -DNOMSEND -DMINIDIAL -DNOXMIT -DNOSCRIPT -DNOSPL
- -DNOSETKEY -DNOINITGROUPS -DPID_T=pid_t $(KFLAGS)"
- #Ridge 32 with ROS 3.2
- ridge32:
- @echo 'Making C-Kermit $(CKVER) Ridge 32 ROS 3.2'
- $(MAKE) wermit
- "CFLAGS = -DATTSV -DNOFILEH -DNODEBUG -DNOTLOG $(KFLAGS) -i -O"
- "LNKFLAGS = -i"
- #Altos 486, 586, or 986 with Xenix 3.0
- altos:
- @echo 'Making C-Kermit $(CKVER) for Altos x86 with Xenix 3.0...'
- $(MAKE) wermit
- "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG $(KFLAGS) -i -O"
- "LNKFLAGS= -i"
- #Altos 986 with Xenix 3.0, as above, but command-line only, minimal size.
- #For systems with small memories. It might also be necessary to chop certain
- #modules up into smaller pieces, e.g. ckuus3-6, because of symbol table
- #overflow. If this makefile is too big or complex for the Altos, compile
- #and link by hand or write shell scripts.
- altosc:
- @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, remote...'
- $(MAKE) wermit
- "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL
- -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOICP $(KFLAGS) -Mm -O"
- "LNKFLAGS= -Mm -s"
- #Altos 986 with Xenix 3.0, as above, but interactive only, minimal size.
- altosi:
- @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, local...'
- $(MAKE) wermit
- "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL
- -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOCMDL -DNOFRILLS -DNOHELP
- -DNOSETKEY $(KFLAGS) -Mm -O" "LNKFLAGS= -Mm -s"
- # Altos ACS68000 68000 System, UNIX System 3 Release 2, 512k memory.
- # also needs getcwd() external function; see ckuins.txt file.
- # also, sys/types.h needed modifying:
- # #ifdef __SYS_TYPES_H__, #define ..., #endif
- # also, ckuus2.c MUST be compiled NOOPT else symbol table is destroyed!
- # Submission by Robert Weiner/Programming Plus, rweiner@progplus.com.
- #
- altos3:
- @echo 'Making C-Kermit $(CKVER) for Altos ACS68k UNIX System III'
- $(MAKE) ckuus2.$(EXT) "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC
- -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i"
- $(MAKE) wermit
- "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC
- -DNODIAL -DDCLPOPEN -DNOSCRIPT -DNOHELP $(KFLAGS) -i -O"
- "LNKFLAGS = -i" "LIBS = getcwd.$(EXT)"
- #MINIX - Original PC version with 64K+64K limit.
- # Reportedly, the linker (asld) can run out of space while linking. The only
- # way around this is to make a copy of libc.a from which all modules that are
- # not used by Kermit are removed. If you have trouble compiling or running
- # wart, "touch wart". If that doesn't help, "touch ckcpro.c".
- # The version configured below has no interactive command parser.
- # If you can build this version successfully, maybe there will be room for
- # a minimal interactive command parser too; try replacing -DNOICP with
- # -DNOSPL, plus every other -DNOxxx flag there is, except for -DNOICP
- # (see ckccfg.txt).
- minix:
- @echo 'Making C-Kermit $(CKVER) for MINIX, no command parser...
- @echo 'TOTALLY UNTESTED!'
- $(MAKE) wermit EXT=s
- "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE
- -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V
- -DNOXMIT -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG
- -DNOSCRIPT -DNOCSETS -DNOICP -DNOSETKEY $(KFLAGS)"
- "LNKFLAGS= -i -T"
- #MINIX - PC version with 64K+64K limit, new (as yet unreleased) ACK 2.0 beta C
- #compiler, which outputs .o object files, rather than .s. But 'make' still
- #expects .s files, so must be patched to use .o. Tested on Minix 1.5.10.
- minixnew:
- @echo 'Making C-Kermit $(CKVER) for MINIX (new ACK 2.0 compiler),'
- @echo 'no command parser... TOTALLY UNTESTED!'
- $(MAKE) wermit
- "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE
- -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V -DNODIAL
- -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)"
- "LNKFLAGS= -i -T"
- #PFU Compact A Series UNIX System V R3, SX/A TISP V10/L50 (Japan)
- #Maybe the -i link option should be removed?
- sxae50:
- @echo 'Making C-Kermit $(CKVER) for PFU SX/A V10/L50...'
- $(MAKE) xermit
- "CFLAGS= -DSVR3 -DDIRENT -DsxaE50 -DTCPSOCKET $(KFLAGS) -i -O"
- "LNKFLAGS= "
- #Tektronix 6130, 4319, 4301, etc, with UTek OS, /usr/spool/uucp/LCK./...
- #The models that support hardware flow control.
- utek:
- @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, hardware flow control'
- $(MAKE) wermit
- "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET
- -DUTEK -DDCLPOPEN -DLOCK_DIR=\"/usr/spool/uucp/LCK.\"
- -DTRMBUFL=2048 -DCK_DTRCTS $(KFLAGS)"
- #Tektronix 4315, 4316, 4317 with UTek OS, /usr/spool/uucp/LCK./...
- #The models that do not fully support hardware flow control.
- uteknohwfc:
- @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, no h/w flow control'
- $(MAKE) wermit
- "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET
- -DUTEK -DDCLPOPEN -DLOCK_DIR=\"/usr/spool/uucp/LCK.\"
- -DTRMBUFL=2048 $(KFLAGS)"
- #Tektronix XD88 with UTekV OS
- utekvr3:
- @echo 'Making C-Kermit $(CKVER) for Tektronix XD88 UTekV R3...'
- $(MAKE) wermit
- "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP
- -DTCPSOCKET -DSYSUTIMEH -DCK_CURSES $(KFLAGS) -O"
- "LIBS= -lcurses" "LNKFLAGS= -s"
- #Perkin-Elmer 3200 Xelos R02 or earlier
- ccop1:
- @echo 'Making C-Kermit $(CKVER) for Xelos & Public Domain Dirent calls'
- @echo 'or System V R2 or earlier...'
- $(MAKE) wermit
- "CFLAGS = -DATTSV -Dvoid=int -DDIRENT -DCK_CURSES
- $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -lcurses -ltermlib"
- #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 xermit
- "CFLAGS= -DBSD43 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
- #Encore, UMAX 4.2 (BSD)
- umax42:
- @echo Making C-Kermit $(CKVER) for Encore UMAX 4.2...
- $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 xermit
- "CFLAGS= -DBSD4 -DENCORE -DTCPSOCKET $(KFLAGS) -O"
- #Encore 88K UMAX 5.3 with TCP/IP support
- encore88k:
- @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP...'
- $(MAKE) xermit
- "CFLAGS = -q ext=pcc -DSVR3 -DTCPSOCKET -DDIRENT
- -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
- #Encore 88K UMAX 5.3 with TCP/IP support
- encore88kgcc:
- @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP, gcc...'
- $(MAKE) xermit CC=gcc CC2=gcc
- "CFLAGS = -DSVR3 -DTCPSOCKET -DDIRENT
- -DNOGETID_PROTOS -DHDBUUCP $(KFLAGS) -O" "LNKFLAGS ="
- #SONY NEWS, NEWS-OS 4.01C
- sonynews:
- @echo Making C-Kermit $(CKVER) for SONY NEWS-OS 4.01C...
- $(MAKE) xermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O"
- #Run Lint on this mess for selected versions.
- #These are pretty much obsolete since ANSI C / gcc.
- lintsun:
- @echo 'Running Lint on C-Kermit $(CKVER) sources for SunOS version...'
- lint -x -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID
- ck[cu]*.c > ckuker.lint.sun
- lintbsd:
- @echo 'Running Lint on C-Kermit $(CKVER) sources for BSD 4.2 version..'
- lint -x -DBSD4 -DTCPSOCKET ck[cu]*.c > ckuker.lint.bsd42
- lints5:
- @echo 'Running Lint on C-Kermit $(CKVER) sources for Sys V version...'
- lint -x -DATTSV ck[cu]*.c > ckuker.lint.s5
- #Who remembers TECO?
- love:
- @echo 'Not war?'