1 #WARNING! Do not run a 'make install' unless you know what you're doing.
4 CPMBIN
= /usr
/local
/lib
/cpm
/bin80
10 diskimage
: CPM.BIN cpmdsk
/*
11 mkfs.cpm
-f avrcpm
-b CPM.BIN
-L
test diskimage
12 cd cpmdsk
; for x in
*; do cpmcp
-f avrcpm ..
/diskimage
$$x 0:$$x; done
; cd ..
14 CPM.BIN
: IPL.BIN BIOS.BIN CPM.SYS
15 dd conv
=sync bs
=128 count
=1 if
=IPL.BIN
> tmpCPM.BIN
16 dd conv
=sync bs
=128 count
=44 if
=CPM.SYS
>> tmpCPM.BIN
17 dd conv
=sync bs
=128 count
=7 if
=BIOS.BIN
>> tmpCPM.BIN
21 BIOS.PRN BIOS.REL
: AVRCPM.LIB CFGACPM.LIB
22 IPL.PRN IPL.REL
: CFGACPM.LIB
25 $(CPMEMU
) $(CPMBIN
)/m80.com
=$<
30 $(CPMEMU
) $(CPMBIN
)/m80.com
,$@
=$<
31 # zxcc m80.com -,$@=$<
34 $(CPMEMU
) $(CPMBIN
)/l80.com
$<,$@
/N
/E
35 # zxcc l80.com -$<,$@/N/E
37 .PHONY
: clean installcpm
install help
40 rm -f BIOS.LST BIOS.BIN BIOS.PRN BIOS.REL
41 rm -f IPL.LST IPL.BIN IPL.PRN IPL.REL
42 rm -f CPM.BIN diskimage
47 sudo dd if
=CPM.BIN of
=${DEV} bs
=128 conv
=sync oflag
=sync
52 @echo Error
: You must specify a device to
install to
!
53 @echo
" i.e. 'make $@ DEV=/dev/sdb1'"
58 sudo dd if
=diskimage of
=${DEV} conv
=sync oflag
=direct
,sync
60 cpmls
-f avrcpm
${DEV}
65 @echo Error
: You must specify a device to
install to
!
66 @echo
" i.e. 'make $@ DEV=/dev/sdb1'"
70 @echo
-e
"The following make targets are supported:\n"\
71 " diskimage - Build a complete CP/M image. (default)\n"\
72 " CPM.BIN - Build CP/M system (IPL+CCP+BDOS+BIOS).\n"\
74 " BIOS.PRN - Make a listing file from bios.asm\n"\
75 " IPL.PRN - Dito for ipl\n"\
77 " install - Copy diskimage to memory card.\n"\
78 " You must specify the card device on the command line.\n"\
79 " Example: 'DEV=/dev/sdb1'\n"\
80 " installcpm - Like install, but install only the system tracks,\n"\
81 " leaving the CP/M file system unaffected.\n"\
83 " clean - Remove intermediate and output files.\n"\
84 " help - Print this message and exit.\n"