home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
APPS
/
rzsz_3_36_3_src.lzh
/
Makefile.OS9
< prev
next >
Wrap
Makefile
|
1996-01-28
|
3KB
|
127 lines
MAJOR_EDITION = 3
MINOR_EDITION = 36
REVISION = 3
ARCHIVE = rzsz_$(MAJOR_EDITION)_$(MINOR_EDITION)_$(REVISION)
CC = cc $(CFLAGS)
ZFLAGS = $(TUNEFLAGS) -dMD2 -dMD=2 -dREADCHECK -dCANBREAK
OBJS = rbsb.r zm.r zmr.r crctab.r os9.r
SRC = rz.c sz.c rbsb.c zm.c zmr.c crctab.c crc.c minirb.c zmodem.h os9.h \
os9.c updcrc_asm.c UPDC32_asm.c Makefile.OS9 Makefile.UNIX
DOC = mailer.rz rz.doc sz.doc README Readme.OS9
OTHER = zupl.t crc.doc minirb.doc
EXE = CMDS/rz CMDS/sz
all:
@echo "Please type one of the following:"
@echo " make osk For OS-9/68000 version"
@echo " make coco For CoCo OS-9/6809 Level 2 version"
@echo " make lha_src For lha format source archive"
@echo " make ar_src For ar format source archive"
@echo " make lha_osk For lha format OSK executable archive"
@echo " make ar_osk For ar format OSK executable archive"
@echo " make lha_coco For lha format CoCo executable archive"
@echo " make ar_coco For ar format CoCo executable archive"
# Target for CoCo OS-9 Level 2
# TBXSIZE and HOWMANY can be fine tuned for optimum performance.
#
coco:
make "TUNEFLAGS=-dTXBSIZE=8192 -dHOWMANY=128" \
"LFLAGS=-e$(MINOR_EDITION)" \
"CFLAGS=-s -dOS9 -dm6809" rz
vfy -x -ur=$$$(REVISION) rz
make "TUNEFLAGS=-dTXBSIZE=8192 -dHOWMANY=21" \
"LFLAGS=-e$(MINOR_EDITION)" \
"CFLAGS=-s -dOS9 -dm6809" sz
vfy -x -ur=$$$(REVISION) sz
# Target to OS-9/68000
# TBXSIZE and HOWMANY can be fine tuned for optimum performance.
osk:
make "TUNEFLAGS=-dTXBSIZE=32768 -dHOWMANY=128" \
"LFLAGS=-e=$(MAJOR_EDITION)$(MINOR_EDITION)" \
"CFLAGS=-dOS9 -q -t=/R0" rz
fixmod rz -x -ua800$(REVISION)
attr rz -x -pe -e
make "TUNEFLAGS=-dTXBSIZE=32768 -dHOWMANY=21" \
"LFLAGS=-e=$(MAJOR_EDITION)$(MINOR_EDITION)" \
"CFLAGS=-dOS9 -q -t=/R0" sz
fixmod sz -x -ua800$(REVISION)
attr sz -x -pe -e
lha_src:
-del $(ARCHIVE)_src.lzh
lha -ar $(ARCHIVE)_src $(SRC) $(DOC) Notes.CoCo $(OTHER)
# Assumes Executables are up to date
lha_osk:
-del $(ARCHIVE)_OSK.lzh
-makdir CMDS
-del CMDS/rz CMDS/sz
copy /dd/CMDS/rz CMDS/rz
copy /dd/CMDS/sz CMDS/sz
lha -ar $(ARCHIVE)_OSK $(EXE) $(DOC)
# Assumes Executables are up to date
lha_coco:
-del $(ARCHIVE)_CoCo.lzh
lha -ar $(ARCHIVE)_CoCo $(EXE) $(DOC) Notes.CoCo
ar_src:
-del $(ARCHIVE)_src.ar
ar -uo $(ARCHIVE)_src $(SRC) $(DOC) Notes.CoCo $(OTHER)
# Assumes Executables are up to date
ar_osk:
-del $(ARCHIVE)_OSK.ar
-makdir CMDS
-del CMDS/rz CMDS/sz
copy /dd/CMDS/rz CMDS/rz
copy /dd/CMDS/sz CMDS/sz
ar -uo $(ARCHIVE)_OSK $(EXE) $(DOC)
# Assumes Executables are up to date
ar_coco:
-del $(ARCHIVE)_CoCo.ar
ar -uo $(ARCHIVE)_CoCo $(EXE) $(DOC) Notes.CoCo
rz: rz.r $(OBJS)
$(CC) rz.r $(OBJS) $(LFLAGS) -f=rz -m=6k
sz: sz.r $(OBJS)
$(CC) sz.r $(OBJS) $(LFLAGS) -f=sz -m=6k
rz.r: rz.c zmodem.h os9.h
$(CC) -r $(ZFLAGS) rz.c
sz.r: sz.c zmodem.h os9.h
$(CC) -r $(ZFLAGS) sz.c
rbsb.r: rbsb.c zmodem.h os9.h
$(CC) -r $(ZFLAGS) rbsb.c
touch rbsb.c
zm.r: zm.c zmodem.h os9.h
$(CC) -r $(ZFLAGS) zm.c
zmr.r: zmr.c zmodem.h os9.h
$(CC) -r $(ZFLAGS) zmr.c
crctab.r: crctab.c updcrc_asm.c UPDC32_asm.c
$(CC) -r $(ZFLAGS) crctab.c
os9.r: os9.c os9.h
$(CC) -r os9.c