[go: up one dir, main page]

Menu

[r19]: / source / onguard.mak  Maximize  Restore  History

Download this file

143 lines (114 with data), 3.6 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#-------------------------------------------------------------------------
# ONGUARD.MAK
#-------------------------------------------------------------------------
# Make file used to build OnGuard
#
# This make file is designed to be used only with Borland's MAKE utility.
#
# MAKE -fONGUARD.MAK [optional parameters]
#
# at the DOS command line or in response to Window's File|Run dialog.
#
#-------------------------------------------------------------------------
# Compiler choice
#-------------------------------------------------------------------------
# Define only one of the following to by uncommenting the appropriate line
# or undefine all and state the define as part of the make command line
#Delphi1=1
#Delphi2=1
Delphi3=1
#set to the current version (for package naming)
ver=106
Setup1=1 # At work
#Setup2=1 # At home
#-------------------------------------------------------------------------
# Macros
#-------------------------------------------------------------------------
# Path to compiler
!if $d(Setup1)
dcc1=c:\borland\delphi\bin\dcc.exe
dcc2=c:\borland\delphi~1.0\bin\dcc32.exe
dcc3="c:\borland\delphi 3\bin\dcc32.exe"
!else
!if $d(Setup2)
dcc1=d:\progra~1\borland\delphi\bin\dcc.exe
dcc2=d:\progra~1\borland\delphi~1.0\bin\dcc32.exe
dcc3=d:\progra~1\borland\delphi3\bin\dcc32.exe
!endif
!endif
# Path to resource compiler
!if $d(Setup1)
brc1=c:\borland\delphi\bin\brcc.exe
brc2=c:\borland\delphi~1.0\bin\brcc32.exe
brc3=c:\borland\delphi~1\bin\brcc32.exe
srmgr=d:\srmgr\srmc.exe
!else
!if $d(Setup2)
brc1=d:\progra~1\borland\delphi\bin\brcc.exe
brc2=d:\progra~1\borland\delphi~1.0\bin\brcc32.exe
brc3=d:\progra~1\borland\delphi3\bin\brcc32.exe
srmgr=d:\srmgr\srmc.exe
!endif
!endif
opts=/M /$$D- /$$L- /L
!if $d(Delphi1)
dcc=$(dcc1) $(opts)
brc=$(brc1) -31 -dwin16 -fo$&.r16
res=r16
srmc=$(srmgr) -16 -fo$&.s16
srm=s16
!endif
!if $d(Delphi2)
dcc=$(dcc2) $(opts)
brc=$(brc2) -w32 -fo$&.r32
res=r32
srmc=$(srmgr) -32 -fo$&.s32
srm=s32
!endif
!if $d(Delphi3)
dcc=$(dcc3) $(opts)
brc=$(brc3) -w32 -fo$&.r32
res=r32
srmc=$(srmgr) -32 -fo$&.s32
srm=s32
!endif
#-------------------------------------------------------------------------
# Implicit rules
#-------------------------------------------------------------------------
.pas.exe:
$(dcc) $<
.dpr.exe:
$(dcc) $<
.pas.dcu:
$(dcc) $<
.pas.dll:
$(dcc) $<
.dpr.dll:
$(dcc) $<
.dpk.dcp:
$(dcc) $<
.dpk.dpl:
$(dcc) $<
.rc.$(res):
$(brc) $<
.str.$(srm):
$(srmc) $<
#-------------------------------------------------------------------------
# Explicit rules
#-------------------------------------------------------------------------
!if $d(Delphi3)
allog : onguard resources packages
!else
allog : onguard resources
!endif
onguard : ogreg.dcu onguard.dcu onguard1.dcu onguard2.dcu onguard3.dcu \
onguard4.dcu onguard5.dcu onguard6.dcu onguard7.dcu onguard8.dcu \
ogconst.dcu ognetwrk.dcu ogproexe.dcu ogutil.dcu onguard.inc \
onguard1.dfm onguard2.dfm onguard3.dfm onguard4.dfm \
onguard6.dfm onguard8.dfm
resources : ogconst.$(srm) ogconst.dcu ogconst.$(res) ogReg.$(res)
!if $d(Delphi3)
packages : onguard resources \
tog$(ver)_r.dpl tog$(ver)_r.dcp \
tog$(ver)_d.dpl tog$(ver)_d.dcp
!endif