69 lines
2.6 KiB
Makefile
69 lines
2.6 KiB
Makefile
#--------------------------------------------------------------------------------------------------#
|
|
# #
|
|
# 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: install
|
|
#---------------------------------------------------------------------------------------------------
|
|
|
|
.dpr.exe:
|
|
@if exist "$(ROOT)\Lib\vcl.dcp" $(DCC) -LUvcl -LUrtl
|
|
@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: \
|
|
prototypes \
|
|
JediInstaller.dpr
|
|
|
|
$(BIN)\QJediInstaller.exe: \
|
|
prototypes \
|
|
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:
|
|
@if exist prototypes "$(MAKEDIR)\make.exe" -fprototypes.mak VclUnits
|
|
@if exist prototypes "$(MAKEDIR)\make.exe" -fprototypes.mak ClxUnits
|
|
|