#--------------------------------------------------------------------------------------------------# # # # JCL Install Helper # # # #--------------------------------------------------------------------------------------------------# !ifndef ROOT ROOT = $(MAKEDIR)\.. !endif #--------------------------------------------------------------------------------------------------- VClxOptions = -c -dVisualCLX -dHAS_UNIT_TYPES -uDevelop -uVCL -x.\Q VclOptions = -c -dVCL -dVCL -dMSWINDOWS -uDevelop -uVisualCLX -uUnix -uKYLIX -x.\\ #--------------------------------------------------------------------------------------------------- SRC = ..\source UNIT = "$(ROOT)\Lib;$(ROOT)\Lib\Obj;$(SRC)\common;$(SRC)\windows" RES = BIN = ..\bin MAP = $(BIN)\$&.map DRC = $&.drc #--------------------------------------------------------------------------------------------------- MAKE = "$(ROOT)\bin\make.exe" -$(MAKEFLAGS) -f$** DCC = "$(ROOT)\bin\dcc32.exe" -dJCLINSTALL -e$(BIN) -i$(SRC) -q -r$(RES) -u$(UNIT) -w $< BRCC = "$(ROOT)\bin\brcc32.exe" $** jpp = ..\devtools\jpp.exe #--------------------------------------------------------------------------------------------------- default: clean install #--------------------------------------------------------------------------------------------------- .dpr.exe: @if exist "$(ROOT)\Lib\Obj\vcl.dcp" $(DCC) -LUvcl -LUrtl @if exist "$(ROOT)\Lib\Obj\vcl50.dcp" $(DCC) -LUvcl50 @if not exist "$(ROOT)\Lib\Obj" $(DCC) @if exist *.dcu del *.dcu $(BIN)\JediInstaller.exe: \ JediInstallerMain.pas \ ProductFrames.pas \ JediInstaller.dpr $(BIN)\QJediInstaller.exe: \ QJediInstallerMain.pas \ QProductFrames.pas \ QJediInstaller.dpr install: $(BIN)\JediInstaller.exe cd .. bin\JediInstaller.exe cd install qinstall: $(BIN)\QJediInstaller.exe cd .. bin\QJediInstaller.exe cd install .PHONY: clean prototypes clean: cd .. @echo cleaning up first... -@for %f in (bin\*.exe) do @if not %f==bin\JediInstaller.exe if not %f==bin\QJediInstaller.exe (del %f) -@del /f /s *.~* bin\*.dll *.a *.bpi *.dcp *.dcu *.dpu *.hpp *.jdbg *.map *.o cd lib -@del /f /s *.obj *.res cd ..\install prototypes: JediInstallerMain.pas \ ProductFrames.pas \ QJediInstallerMain.pas \ QProductFrames.pas JediInstallerMain.pas ProductFrames.pas: @if exist prototypes "$(MAKEDIR)\make.exe" -fprototypes.mak VclUnits QJediInstallerMain.pas QProductFrames.pas: @if exist prototypes "$(MAKEDIR)\make.exe" -fprototypes.mak ClxUnits