Skript file: /~heha/hsn/kcemu/[Download]kcemu_050.exe/SRC/MAKEFILE

# 1. Lauf: "make distrib"
# 2. Lauf: "exechain kcemu.exe" (da dusseligerweise Windows-Programm)
# 3. Lauf: "make patch"
# 4. Lauf: "make zip" oder "make ais"
#
# Weitere Ziele:
# make help		Hilfedateien aktualisieren
# make kchelp.zip	Hilfedateien einpacken
# make ais		A-I-S Distribution anfertigen

HC=d:/ms/bin/hcp.exe
ZIP=pkzip -u
BPC=bpc -cw /UC:\BP\UNITS;D:\PROGWIN\COMMON -$W-,G+,S-,R-,D-,E-,I-,L-,Y-
RC=brcc -v
RL=rlink -v -31 -t -k
AIS=d:/progwin/common
ASM=tasm -z -zi -m5
LINK386=d:/ms/bin/link386 /ALI:2
STRIP=tdstrip

################# A-I-S #################
ais: kcemu_.exe

kcemu_.exe: $(AIS)/ais.exe ais_.pkg kcemu.exe kcload.exe
	$(STRIP) kcemu.exe
	$(STRIP) kcload.exe
	$(AIS)/mkzipres ais_.pkg -e kcemu_.exe $(AIS)/ais.exe

#################  ZIP  #################

zip: kcemu.zip kcemusrc.zip

kcemu.zip: kcemu.exe kcemu.386 kcemu.hlp kcload.exe
	$(ZIP) $< $?

kcemusrc.zip: kcemu.pas kcemu.res \progwin\common\wutils.pas kchdr.pas\
 kcdeb.pas kc880.asm disasm.asm roms.res kcemu.rtf kcemu.hpj kccaos.rtf\
 kcload.pas kcload.res makefile
	& $(ZIP) $< {$? }

distrib: roms.res
	$(BPC) kcemu
	$(BPC) kcload

roms.res: roms.rc
	$(RC) $?

patch: patch_header patch_ver

patch_header: kcemu.exe kcload.exe kcemu.386
	- fpatch -s"This program req"\
 -r"KC-Emulator 0.40 (03/98): Dieses Programm ben”tigt Windows",0d,0a,"$"\
 kcemu.exe
	- fpatch -s"This program req"\
 -r"KC-Load 0.40 (03/98): Dieses Programm ben”tigt Windows",0d,0a,"$"\
 kcload.exe
#	- fpatch -s"This program cannot"\
# -r"KC-Emulator: Speicherschalttreiber 0.40 (03/98)",0d,0a,"$"\
# kcemu.386

patch_ver: kcemu.exe kcemu.386 kcload.exe
	- fpatch -s"Freeware (" -p+0a -r"10/99" ais.res kcemu_.exe
	- fpatch -m -s"0.40 (03/98)" -r"0.50 (10/99)" $?
	- fpatch -p13e -r0a kcemu.exe kcload.exe

kcemu.386: kcemuvxd.obj
	$(LINK386) $?,$<,,,&&!
LIBRARY  KCEMU
DESCRIPTION 'Win386 KCEMU pagemap support 0.45 (04/98)'
EXETYPE  DEV386
SEGMENTS
	_LTEXT PRELOAD NONDISCARDABLE
	_LDATA PRELOAD NONDISCARDABLE
	_ITEXT CLASS 'ICODE' DISCARDABLE
	_IDATA CLASS 'ICODE' DISCARDABLE
	_TEXT  CLASS 'PCODE' NONDISCARDABLE
	_DATA  CLASS 'PCODE' NONDISCARDABLE
EXPORTS
	KCEMU_DDB @1
!
############################### EXE ##############################

exe: kcemu.exe kcload.exe

kchdr.tpw: kchdr.pas
	$(BPC) kchdr.pas

disasm.obj: disasm.asm
	$(ASM) $?

kcdeb.tpw: kcdeb.pas kchdr.tpw disasm.obj
	$(BPC) kcdeb.pas

kcscr.obj: kcscr.asm
	$(ASM) $?

kc880.obj: kc880.asm
	$(ASM) $?

kcemu.exe: kcemu.pas kchdr.tpw kcdeb.tpw kcscr.obj kc880.obj
	$(BPC) kcemu.pas

kcload.exe: kcload.pas
	$(BPC) kcload.pas

############################### HELP ##############################

help: kcemu.hlp kcbasic.hlp kccaos.hlp kcz9001.hlp kcz1013.hlp kcload.hlp

kcemu.hlp: kcemu.hpj kcemu.rtf
	$(HC) kcemu.hpj

kcbasic.hlp: kcbasic.hpj kcbasic.rtf
	$(HC) kcbasic.hpj

kccaos.hlp: kccaos.hpj kccaos.rtf
	$(HC) kccaos.hpj

kcz9001.hlp: kcz9001.hpj kcz9001.rtf kbd87.shg mem87.shg z/z128.bmp
	$(HC) kcz9001.hpj

kcz1013.hlp: kcz1013.hpj kcz1013.rtf kbdz1013.shg memz1013.shg
	$(HC) kcz1013.hpj

kcload.hlp: kcload.hpj kcload.rtf
	$(HC) kcload.hpj

kchelp.zip: help
	$(ZIP) $< kcemu.hlp kcbasic.hlp kccaos.hlp kcz9001.hlp kcz1013.hlp kcload.hlp
Detected encoding: UTF-80