#
# Generates platform dependent units from common code base
#
# $Id: Makefile.mak,v 1.13 2005/03/14 02:41:06 rrossmair Exp $
#

jpp		= ..\..\devtools\jpp.exe

Options         = -c -dJCL -dSUPPORTS_DEFAULTPARAMS -dSUPPORTS_INT64
CommonOptions   = $(Options) -f..\common\\
VclOptions      = $(Options) -dVCL -uVisualCLX -dMSWINDOWS -uUnix -dBitmap32 -x1:..\vcl\Jcl
VClxOptions	= $(Options) -uVCL -dVisualCLX -dHAS_UNIT_TYPES -uBitmap32 -x1:..\visclx\JclQ
WinOptions      = $(Options) -dMSWINDOWS -uUNIX -uHAS_UNIT_LIBC -f..\windows\\
Win32Options    = $(Options) -uHAS_UNIT_LIBC -f..\windows\\
UnixOptions     = $(Options) -uMSWINDOWS -dUNIX -f..\unix\\
ZlibOptions	= -uSTATIC_GZIO


release:	VCL VisualCLX Windows Unix

VCL:    	..\vcl\JclGraphics.pas \
		..\vcl\JclGraphUtils.pas

VisualCLX:    	..\visclx\JclQGraphics.pas \
		..\visclx\JclQGraphUtils.pas

Windows:        ..\windows\JclWin32.pas \
                ..\windows\Hardlinks.pas \
                ..\windows\zlibh.pas

Unix:		..\unix\zlibh.pas

zlib:		..\windows\zlibh.pas ..\unix\zlibh.pas

..\vcl\JclGraphics.pas: \
		_Graphics.pas
	$(jpp) $(VclOptions) $?

..\vcl\JclGraphUtils.pas: \
		_GraphUtils.pas
	$(jpp) $(VclOptions) $?

..\visclx\JclQGraphics.pas: \
		_Graphics.pas
	$(jpp) $(VClxOptions) $?

..\visclx\JclQGraphUtils.pas: \
		_GraphUtils.pas
	$(jpp) $(VClxOptions) $?

..\unix\JclWin32.pas: \
                JclWin32.pas
        $(jpp) -ijcl.inc $(UnixOptions) $?

..\unix\zlibh.pas: \
		zlibh.pas
        echo Unix-zlib
	$(jpp) $(UnixOptions) $(ZlibOptions) -dZLIB_DLL $?

..\windows\JclWin32.pas: \
                JclWin32.pas
        $(jpp) -ijcl.inc $(WinOptions) $?

..\windows\zlibh.pas: \
		zlibh.pas
        echo Win-zlib
	$(jpp) $(WinOptions) $(ZlibOptions) -uZLIB_DLL $?

{.}.pas{..\common}.pas:
	$(jpp) $(CommonOptions) $<

{.}.pas{..\windows}.pas:
	$(jpp) $(WinOptions) $<

{.}.pas{..\unix}.pas:
	$(jpp) $(UnixOptions) $<
