-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile.mak
More file actions
112 lines (87 loc) · 3.5 KB
/
makefile.mak
File metadata and controls
112 lines (87 loc) · 3.5 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
# Pool of Radiance Config
# Copyright 2026 Bloodbat / La Serpiente y la Rosa Producciones
# Pool of Radiance Config is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
# Pool of Radiance Config is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
# You should have received a copy of the GNU General Public License along
# with Pool of Radiance Config. If not, see <http://www.gnu.org/licenses/>.
# Makefile for Pool of Radiance Config Borland version.
# REQUIRES Borland make, it WON'T work with GNU make.
# REQUIRES the following folders to be present:
# bin
# lib
# Binary target:
# config.exe : builds the program, this is the default target.
# Other targets:
# clean : deletes the compiled units from the LIB folder.
# cleanall : implies clean; implies cleanall;
# deletes the generated .exe file as well.
# Program generation can be controlled from the command line:
# make -DTPC : the program is compiled using the Turbo Pascal command
# line compiler instead of the Borland Pascal command
# line compiler.
# make -DDEBUG : compiles a version with debug information for the
# IDE.
# make -DDEBUGALL : compiles a version with debug information for the
# IDE. It includes Range, Stack and
# I/O checks (implies DEBUG).
# make -DDEBUGEXT : compiles a version with debug information for
# Turbo Debugger.
# make -DDEBUGEXTALL : compiles a version with debug information for the
# Turbo Debugger. It includes Range, Stack and
# I/O checks (implies DEBUGEXT).
# Definitions can be mixed, e.g.
# make -DTPC -DEBUG
# Compiles a version with debug information for the IDE using tpc.
PATHBIN = bin
PATHLIB = lib
COMPILERCOMMON = -$E-,G-,N-,O-,B-,P+,X+,F-
DEBUGCOMMON = -$D+,L+
DEBUGALLCOMMON = -$I+,R+,S+
!if $d(DEBUGEXTALL)
COMPILERFLAGS = -E$(PATHLIB) -V -DDEBUGALL -DDEBUG $(COMPILERCOMMON) $(DEBUGCOMMON) $(DEBUGALLCOMMON)
!elif $d(DEBUGALL)
COMPILERFLAGS = -E$(PATHLIB) -DDEBUG -DDEBUGALL $(COMPILERCOMMON) $(DEBUGCOMMON) $(DEBUGALLCOMMON)
!elif $d(DEBUGEXT)
COMPILERFLAGS = -E$(PATHLIB) -V -DDEBUG $(COMPILERCOMMON) $(DEBUGCOMMON)
!elif $d(DEBUG)
!if !$d(TPC)
BROWSEREXTRA = -$Y+
!endif
COMPILERFLAGS = -E$(PATHLIB) -DDEBUG $(COMPILERCOMMON) $(DEBUGCOMMON) $(BROWSEREXTRA)
!else
!if !$d(TPC)
BROWSEREXTRA = -$Y-
!endif
COMPILERFLAGS = -E$(PATHLIB) $(COMPILERCOMMON) $(BROWSEREXTRA) -$L-,I-,R-,S-
!endif
!if $d(TPC)
COMPILER = tpc
!else
COMPILER = bpc
!endif
# Add or override commands to compiler by uncommenting the macro below
# and adding parameters to it.
#EXTRAFLAGS =
.path.inc = .
.path.pas = .
.path.exe = $(PATHBIN)
.path.tpu = $(PATHLIB)
.pas.tpu:
$(COMPILER) $(COMPILERFLAGS) $(EXTRAFLAGS) $&.pas
.precious: config.exe
CONFIGEXEDEPENDENCIES = progmain.tpu
config.exe :: $(CONFIGEXEDEPENDENCIES)
$(COMPILER) $(COMPILERFLAGS) $(EXTRAFLAGS) config.pas
@copy $(PATHLIB)\config.exe $(PATHBIN)
@del $(PATHLIB)\config.exe
progmain.tpu: mainwnd.tpu dosutil.tpu
clean:
@del $(PATHLIB)\*.tpu
cleanall: clean
@del $(PATHBIN)\config.exe