Skript file: /~heha/messtech/pasmex.zip/MAKEFILE

all: pasmex.tpw cmex.dll example.dll pasmex.hlp dlgdemo.dll
delphi: pasmex.dcu
zip: pasmex.zip

### Stammverzeichnisse ###

MAT_SDK=C:\DIPLOM\CMEX
BC_ROOT=C:\BC
BP=C:\BP
HC=D:\MS\BIN\hcp
DELPHI=C:\DELPHI

### Regeln PASCAL-MEX ###

pasmex.obj: pasmex.asm
	tasm -v -z $?

pasmex.tpw: pasmex.pas pasmex.obj
	bpc -cw pasmex.pas

example.dll: example.pas pasmex.tpw
	bpc -cw example.pas

dlgdemo.dll: dlgdemo.pas pasmex.tpw
	bpc -cw dlgdemo.pas

pasmex.dcu: pasmex.pas
	$(DELPHI)\bin\dcc.exe pasmex.pas

### Regeln CMEX.DLL ###

cmex.obj: cmex.c
	bcc -c -WDE -ml! -f287 -2 -Od -v -y -I$(MAT_SDK)\include cmex.c

cmexa.obj: cmexa.asm
	tasm -ml -v -z $?

cmex.dll: cmex.obj cmexa.obj cmex.def
	tlink /A:16 /c /v /e /m /3 /P=16384 /L$(MAT_SDK)\LIB;$(BC_ROOT)\LIB /Twd @&&!
c0dl.obj cmex.obj cmexa.obj, cmex.dll,
import+libmexbc+libengbc+cwl+fp87+mathwl
cmex.def
!

### Regeln für Hilfe und Distribution ###

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

pasmex.zip: pasmex.pas cmex.c cmex.def makefile cmex.dll pasmex.tpw pasmex.hpj \
pasmex.rtf pasmex.hlp pasmex.asm cmexa.asm cmex.h
	tdstrip cmex.dll
	&pkzip -3 $< {$? }
	pkzip -z $< <<!
DLL und Unit für Pascal-MEX-Programme
!
Detected encoding: OEM (CP437)1
Wrong umlauts? - Assume file is ANSI (CP1252) encoded