home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
old
/
ckermit80
/
edit206
/
ck9ker.ucc
< prev
next >
Wrap
Text File
|
2020-01-01
|
6KB
|
180 lines
# CK9KER.UCC, version 1, 04/30/87 Robert Larson
# version 2, 04/12/91 Christian Hemsing for kermit 5a
# version 3, 03/04/92 kermit 5a,beta; explicit 680x0 distinction
# version 4, 10/01/92 kermit 5a,beta; added MYCURSES
# version 5, 01/05/95 kermit 5A(190); add CK_APC, CK_REDIR, RENAME
# version 6, 06/18/96 C-Kermit 6.0.192, fdc, add ck[cu]sig.[ch]
# version 7, 06/28/96 C-Kermit 6.0.192, James Jones, modified for
# Microware Ultra C compiler
# based on ckuker.mak
#
# -- Makefile to build C-Kermit for os9/68k
#
# Before proceeding, read the instructions below, and also do read the file
# ck9ker.bwr (the "beware file"), and then rename this file to "makefile"
# or "Makefile", and then:
#
# for os9/68k: make
#
# or don't rename it and type: make -f=ck9ker.ucc
#
# for C-Kermit with network support type:
#
# make -b wermit_net [-f=ck9ker.ucc]
#
#
#############################################################################
#
# Notes:
#
# You should remove the -td=/r0 option if you don't have a
# ramdisk named /r0 or if it's too small to hold temporary files.
#
# Change ODIR to where you want the executable (give a full path).
# Change RDIR to where you want the rels (can be a relative path).
#
ODIR= /dd/cmds
RDIR = ./rels
#
# Edit the PROGRAM macro to the name you want kermit to have
# Use the apropriate TYPE macro depending on your processor
#
# If Kermit is too large for your machine you can add some
# defines to make it smaller:
# -dNODEBUG don't include debugging information
# -dNOHELP no on-line help
# -dNOTLOG no transaction logging
# -dNOSCRIPT no UUCP-style script command
# -dNOCSETS no character set translation
# -dNOMSEND no msend command
# -dNOICP no interactive command parser
# -dNODIAL no modem support
# -dNOXMIT no transmit command
# -dNOSPL no script programming language
# Edit the TYPE macro according to your machine.
#
# If you have problems changing the line speed do read ck9ker.bwr and
# add -dXMODE option to the CFLAGS if neccessary and wanted (see ck9ker.bwr)
#
# for futher information see ckuins.doc (installation manual)
###########################################################################
#
# Compile and Link variables:
#
CC = cc
KFLAGS =
KLFLAGS =
TYPE=68000c #use this if you compile for 68000,68008,68010 or 68070
#TYPE=68020c #use this if you compile for 68020,68030
#TYPE=cpu32c #use this if you compile for CPU32
#
# minimum size:
#
#CPPFLAGS= -dVOID=void -dSIG_V -dDYNAMIC -dNODEBUG -dNOHELP -dNOTLOG \
# -dNOSCRIPT -dNOCSETS -dNOMSEND -dNODIAL -dNOICP -dCK_ANSIC $(KFLAGS)
#
# maximum size:
#
#CPPFLAGS= -dVOID=void -dSIG_V -dDYNAMIC -dPARSENSE -dKANJI -dMYCURSES -dZFCDAT\
# -dCK_APC -dCK_REDIR -dRENAME -dCK_TTYFD -DNOOLDMODEMS -dCK_ANSIC $(KFLAGS)
# chosen size:
CPPFLAGS= -dVOID=void -dSIG_V -dDYNAMIC -dPARSENSE -dKANJI -dMYCURSES -dZFCDAT\
-dCK_APC -dCK_REDIR -dRENAME -dCK_TTYFD -DNOOLDMODEMS -dCK_ANSIC $(KFLAGS)
# CFLAGS are set for small code; we will override w/explicit commands
# for files that are commented as being time-critical
CFLAGS= -i -tp=$(TYPE) $(CPPFLAGS) -dOSK -s=2 # -td=/r0
LFLAGS= $(KLFLAGS) -i -tp=$(TYPE) # -td=/r0
SDIR = .
PROGRAM= wermit
#
###########################################################################
#
# Dependencies Section:
#
RFILES = ckcmai.r ckucmd.r ckuusr.r ckuus2.r ckuus3.r ckuus4.r ckuus5.r \
ckuus6.r ckuus7.r ckuusx.r ckuusy.r ckcpro.r ckcfns.r ckcfn2.r ckcfn3.r \
ckuxla.r ck9con.r ck9tio.r ck9fio.r ck9asm.r ckudia.r ckuscr.r \
ckusig.r
$(PROGRAM): $(RFILES)
chd $(RDIR);$(CC) $(LFLAGS) -olM=24K -l=sys_clib.l -f=$(ODIR)/$@ $(RFILES)
$(PROGRAM)_net:
make -f=ck9ker.ucc ckcnet.r $(PROGRAM) "KFLAGS=-DTCPSOCKET" \
"KLFLAGS=-l=ckcnet.r -l=netdb.l -l=socklib.l"
ckcmai.r: ckcmai.c ckcsym.h ckcasc.h ckcdeb.h ckcker.h ckcnet.h ckuusr.h \
ckcsig.h
ckcpro.r: ckcpro.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h
ckcpro.c: ckcpro.w wart # ckcsym.h ckcdeb.h ckcasc.h ckcker.h
$(ODIR)/wart ckcpro.w ckcpro.c
wart: ckwart.r
chd $(RDIR);$(CC) $(LFLAGS) -f=$(ODIR)/$@ ckwart.r
ckwart.r: ckwart.c ckcsym.h ckcdeb.h
ckcfns.r: ckcfns.c ckcsym.h ckcasc.h ckcdeb.h ckcker.h ckcxla.h
$(CC) $(CFLAGS) -t=5 -eas=$(RDIR) $*.c
ckcfn2.r: ckcfn2.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h
ckcfn3.r: ckcfn3.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h
ckuxla.r: ckuxla.c ckcsym.h ckcdeb.h ckcker.h ckucmd.h ckcxla.h ckuxla.h
ckuusr.r: ckuusr.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
ckcxla.h ckuxla.h ckcnet.h
ckuus2.r: ckuus2.c ckcsym.h ckcdeb.h ckcnet.h ckcasc.h ckcker.h ckuusr.h \
ckucmd.h ckcxla.h ckuxla.h
ckuus3.r: ckuus3.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h \
ckcnet.h ckuusr.h ckucmd.h
ckuus4.r: ckuus4.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
ckuver.h ckcnet.h ckcxla.h ckuxla.h
ckuus5.r: ckuus5.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
ckcnet.h ckcxla.h ckuxla.h
# compiling for 68xxx: explicit long data to avoid excess non-remote data
ckuus6.r: ckuus6.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
ckcxla.h ckuxla.h ckcnet.h
cc $(CFLAGS) -eas=$(RDIR) -tp=$(TYPE)d $*.c
ckuus7.r: ckuus7.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h \
ckcnet.h ckuusr.h ckucmd.h
cc $(CFLAGS) -eas=$(RDIR) -tp=$(TYPE)d $*.c
ckuusx.r: ckuusx.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
ckcxla.h ckuxla.h ckcsig.h
ckuusy.r: ckuusy.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckucmd.h ckcnet.h
ckucmd.r: ckucmd.c ckcsym.h ckcdeb.h ckucmd.h ckcker.h ckcasc.h
ck9fio.r: ck9fio.c ckcsym.h ckcdeb.h ckcker.h ckcasc.h
ck9tio.r: ck9tio.c ckcsym.h ckcdeb.h ckcnet.h
$(CC) $(CFLAGS) -dO_GOODDRIVER -t=5 -eas=$(RDIR) $*.c
ck9con.r: ck9con.c ckcsym.h ckcdeb.h ckucmd.h ckcker.h ckcasc.h ckcxla.h \
ckuxla.h ckcnet.h
ckudia.r: ckudia.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckucmd.h ckcnet.h \
ckuusr.h ckcsig.h
ckuscr.r: ckuscr.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
ckcnet.h ckcsig.h
ckcnet.r: ckcnet.c ckcsym.h ckcdeb.h ckcker.h ckcnet.h ckcsig.h
ckusig.r: ckusig.c ckcasc.h ckcdeb.h ckcker.h ckcnet.h ckuusr.h ckcsig.h