home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
archives
/
ck9196.zip
/
ck9ker.gcc
< prev
next >
Wrap
Text File
|
1996-07-05
|
6KB
|
189 lines
# CK9KER.MAK, version 1, 07/25/91 Christian Hemsing
# version 2, 10/01/92 Christian Hemsing, added MYCURSES
# version 3, 01/05/95 Ulli Schlueter for 5A(190); added CK_APC,
# CK_REDIR, and RENAME
# version 4, 07/05/96 James Jones, for 6.0.192; added ckcsig.h
# dependencies
# based on ckuker.mak
#
# -- Makefile to build C-Kermit for os9/68k with gcc compiler
#
# 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.gcc
#
#
# for C-Kermit with network support type:
#
# make -b wermit_net [-f=ck9ker.gcc]
#
#
#############################################################################
#
# Notes:
#
# You should remove the -T/r0 option if you don't have a
# ramdisk named /r0.
#
# 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= /r1/gccexe
RDIR = ./gccrels
#
# Edit the PROGRAM macro to the name you want kermit to have
#
# 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 tranmit command
# -DNOSPL no script programming language
#
# If you have problems changing the line speed do read ck9ker.bwr and
# add -DXMODE option to the CPPFLAGS if neccessary and wanted
# (see ck9ker.bwr)
# for futher information see ckuins.doc (installation manual)
###########################################################################
#
# Compile and Link variables:
#
CC = gcc
KFLAGS =
KLFLAGS =
#
# minimum size:
#
#CPPFLAG = -DCK_ANSIC -DSIG_V -DDYNAMIC -DNODEBUG -DNOHELP -DNOTLOG \
# -DNOSCRIPT -DNOCSETS -DNOMSEND -DNODIAL -DNOICP $(KFLAGS)
#
# maximum size:
#
CPPFLAG = -DCK_ANSIC -DSIG_V -DDYNAMIC -DPARSENSE -DKANJI -DMYCURSES -DZFCDAT\
-DCK_APC -DCK_REDIR -DRENAME -DCK_TTYFD -DNOOLDMODEMS $(KFLAGS)
SDIR = .
PROGRAM= wermit
GCCLFLAGS= $(KLFLAGS) #-cio
GCCFLAGS_WO = -O -T/r0 -ob
GCCFLAGS = $(GCCFLAGS_WO) -o68
COMPILE_WO = gcc -DOSK -W -c -ansi $(CPPFLAG) $(GCCFLAGS_WO)
COMPILE = gcc -DOSK -W -c -ansi $(CPPFLAG) $(GCCFLAGS)
#
###########################################################################
#
# 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 ck9ren.r ck9asm.r ckudia.r ckuscr.r \
ckusig.r
$(PROGRAM): $(RFILES)
chd $(RDIR);$(CC) $(GCCLFLAGS) -o $(ODIR)/$@ $(RFILES) -g -s 17
$(PROGRAM)_net:
make -f=ck9ker.gcc ckcnet.r $(PROGRAM) "KFLAGS=-DTCPSOCKET"\
"KLFLAGS=-lckcnet.r -l/dd/lib/netdb.l -l/dd/lib/socklib.l"
ckcmai.r: ckcmai.c ckcsym.h ckcasc.h ckcdeb.h ckcker.h ckcnet.h ckuusr.h \
ckusig.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ckcpro.r: ckcpro.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
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) $(GCCLFLAGS) -cio -o $(ODIR)/$@ ckwart.r
ckwart.r: ckwart.c ckcsym.h ckcdeb.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ckcfns.r: ckcfns.c ckcsym.h ckcasc.h ckcdeb.h ckcker.h ckcxla.h ckuxla.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ckcfn2.r: ckcfn2.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ckcfn3.r: ckcfn3.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ckuxla.r: ckuxla.c ckcsym.h ckcdeb.h ckcker.h ckucmd.h ckcxla.h ckuxla.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ckuusr.r: ckuusr.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
ckcxla.h ckuxla.h ckcnet.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ckuus2.r: ckuus2.c ckcsym.h ckcdeb.h ckcnet.h ckcasc.h ckcker.h ckuusr.h \
ckucmd.h ckcxla.h ckuxla.h
$(COMPILE_WO) -mlong-calls $*.c -o $(RDIR)/$*.r
ckuus3.r: ckuus3.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h \
ckcnet.h ckuusr.h ckucmd.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ckuus4.r: ckuus4.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
ckuver.h ckcnet.h ckcxla.h ckuxla.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ckuus5.r: ckuus5.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
ckcnet.h ckcxla.h ckuxla.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ckuus6.r: ckuus6.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
ckcxla.h ckuxla.h ckcnet.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ckuus7.r: ckuus7.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckcxla.h ckuxla.h \
ckcnet.h ckuusr.h ckucmd.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ckuusx.r: ckuusx.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
ckcxla.h ckuxla.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ckuusy.r: ckuusy.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckucmd.h ckcnet.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ckucmd.r: ckucmd.c ckcsym.h ckcdeb.h ckucmd.h ckcker.h ckcasc.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ck9fio.r: ck9fio.c ckcsym.h ckcdeb.h ckcker.h ckcasc.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ck9ren.r: ck9ren.c ckcsym.h ckcdeb.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ck9tio.r: ck9tio.c ckcsym.h ckcdeb.h ckcnet.h
$(COMPILE) -DO_GOODDRIVER $*.c -o $(RDIR)/$*.r
ck9con.r: ck9con.c ckcsym.h ckcdeb.h ckucmd.h ckcker.h ckcasc.h ckcxla.h \
ckuxla.h ckcnet.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ckudia.r: ckudia.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckucmd.h ckcnet.h \
ckuusr.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ckuscr.r: ckuscr.c ckcsym.h ckcdeb.h ckcasc.h ckcker.h ckuusr.h ckucmd.h \
ckcnet.h ckcsig.h
$(COMPILE) $*.c -o $(RDIR)/$*.r
ckcnet.r: ckcnet.c ckcsym.h ckcdeb.h ckcker.h ckcnet.h ckcsig.h
$(COMPILE) $*.c -o $(RDIR)/$*.r