FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gnuplot-old/config/makefile.oww at gnuplot-4-4-alpha · gnuplot/gnuplot-old · GitHub
gnuplot
gnuplot-old
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
gnuplot-old
/
config
/
makefile.oww
Copy path
More file actions
More file actions
Latest commit
History
History
History
224 lines (174 loc) · 6.24 KB
Breadcrumbs
gnuplot-old
/
config
/
makefile.oww
Copy path
File metadata and controls
224 lines (174 loc) · 6.24 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
#
Hello, emacs: this is a -*- Makefile -*-
#
$Id: makefile.oww,v 1.9 2006/10/22 11:56:03 broeker Exp $
#
#
GNUPLOT Makefile OpenWatcom 1.3 on Win32
#
To compile:
#
Either, from ..\src:
#
wmake -f ..\config\makefile.oww
#
or copy this file to ..\src, edit it to your liking, then
#
from ..\src:
#
wmake -f makefile.oww
#
#
History of this file:
#
2004-02-23: Created by massive editing of makefile.nt (and config.nt)
#
2004-04-25: Removed all remaining MS-isms (by peeking at how OW's
#
MS namesake replacement tools generate their command lines)
#
#
where to place gnuplot.gih helpfile
#
NOTE: compiled-in location governed by config.oww!
HELPFILE
= wgnuplot.hlp
TOP
= .
#
Programs:
#
The Microsoft Help compiler:
HCW
= "c:\program files\help workshop\hcw.exe"
#
OpenWatcom programs:
WCL
= wcl386
WCC
= wcc386
WLD
= wlink
WRC
= wrc
#
Speed up compilation a bit by running the compiler as a DLL from
#
inside wmake:
!ifdef __LOADDLL__
! loaddll wcc wccd
! loaddll wccaxp wccdaxp
! loaddll wcc386 wccd386
! loaddll wpp wppdi86
! loaddll wppaxp wppdaxp
! loaddll wpp386 wppd386
! loaddll wlink wlink
! loaddll wlib wlibd
!endif
#
Where to install the PostScript prologue files, relatively to the executable
#
wgnuplot.exe
GNUPLOT_PS_DIR
= share/PostScript
#
compiler flags:
#
#
Defines
CPPFLAGS
= -D_Windows -DHAVE_CONFIG_H -DUSE_MOUSE -DEAM_OBJECTS
#
library-dependent ones may have to be added, like:
#
-DHAVE_LIBPNG -DHAVE_LIBPDF
#
compiler flags, determined from MS ones by OW's "cl /showwopts"
#
-c : don't link
#
-I : add directory to include search path
#
-zq : don't show a version banner message
#
-5r : P5-optimized, 386-compatible code, register calling convention
#
-zm : put each function in its own section to improve dead code elimination
#
-bm : target multi-threaded environment
#
-sg : grow the stack if needed
#
-zlf: store library usage in .obj files
#
-ei : force sizeof(enum) >= sizeof(int)
#
-o : optimization options:
#
r: reorder for pipelining
#
i: inline intrinsics
#
l: loop optimizations
#
t: optimize for speed
#
-j : char is signed
#
-aa : allow non-const initializers for locals
#
-d2 : debug information
WCFLAGS
= -zlf -ei -zq -I. -zm -bm -5r -sg -orilt -j -za99 -aa -d2
$(
CPPFLAGS
)
#
paths for external libs added here...
LDLIBS
=
#
...and here.
#
see other terminal defines in term.h
TERMFLAGS
= -DGNUPLOT_PS_DIR="
$(
GNUPLOT_PS_DIR
)
" -I..\term
#
macros for makefile.all
O
=obj
T
=..\term
\
D=..\docs
\
M=..\demo
\
BINARYFILES
=
$(
M
)
binary1
$(
M
)
binary2
$(
M
)
binary3
#
Note: like makefile.wc, this need the special Watcom-style version of
#
makefile.all, because line continuation in WMake is different...
!INCLUDE makefile.awc
default
: wgnuplot.exe
$(
HELPFILE
)
wgnuplot.mnu &
$(BINARYFILES) pgnuplot.exe .SYMBOLIC
OBJS
=
$(
COREOBJS
)
version.obj
WINOBJS
= winmain.obj wgnuplib.obj wgraph.obj wprinter.obj wtext.obj &
wpause.obj wmenu.obj gpexecute.obj
#
default rule
.c.obj
: .AUTODEPEND
$(WCC) $(WCFLAGS) $*.c
$(
OBJS
)
: config.h .AUTODEPEND
#
file-specific rules
config.h
: ..\config\config.oww
copy ..\config\config.oww config.h
wgnuplot.exe
:
$(
OBJS
)
$(
WINOBJS
)
wgnuplot.res texticon.ico grpicon.ico
$(WLD) @<<linkopt1.oww $(LDLIBS)
RUNTIME windows=4.0
SYSTEM nt_win
DEBUG ALL
OPTION quiet
FILE {
$(OBJS)
$(WINOBJS)
}
LIBRARY kernel32.lib,user32.lib,gdi32.lib,winspool.lib,comdlg32.lib
LIBRARY advapi32.lib,shell32.lib
OPTION map
OPTION SYMFILE
NAME wgnuplot.exe
OPTION stack=1M
OPTION resource=wgnuplot.res
OPTION ELIMINATE
REFERENCE _wstart_
OPTION START=_wstart_
<<
#
NOTE: Unknown what /l 0x409 does in MS RC call --- seems to work without, though
wgnuplot.res
: win\wgnuplot.rc win\wgnuplib.rc &
win\wresourc.h texticon.ico grpicon.ico
$(WRC) -r -q -bt=nt -fowgnuplot.res -i=win &
-d_WIN32 -dNDEBUG -dWIN32 -dMSRC win\wgnuplot.rc
term.obj
: term.c term.h plot.h setshow.h bitmap.h
$(
CORETERM
)
$(WCC) $(WCFLAGS) $(TERMFLAGS) term.c
winmain.obj
: win\winmain.c win\wgnuplib.h win\wtext.h plot.h
$(WCC) $(WCFLAGS) win\winmain.c
wgnuplib.obj
: win\wgnuplib.c .AUTODEPEND
$(WCC) $(WCFLAGS) win\wgnuplib.c
wmenu.obj
: win\wmenu.c .AUTODEPEND
$(WCC) $(WCFLAGS) win\wmenu.c
wtext.obj
: win\wtext.c .AUTODEPEND
$(WCC) $(WCFLAGS) win\wtext.c
wpause.obj
: win\wpause.c .AUTODEPEND
$(WCC) $(WCFLAGS) win\wpause.c
wprinter.obj
: win\wprinter.c .AUTODEPEND
$(WCC) $(WCFLAGS) win\wprinter.c
wgraph.obj
: win\wgraph.c .AUTODEPEND .AUTODEPEND
$(WCC) $(WCFLAGS) win\wgraph.c
wgnuplot.mnu
: win\wgnuplot.mnu
copy win\wgnuplot.mnu wgnuplot.mnu
pgnuplot.exe
: win\pgnuplot.c version.obj .AUTODEPEND
$(WCL) -5r -zq -d2 -fm win\pgnuplot.c -fe=pgnuplot.exe -I. &
version.obj user32.lib
#
extract icons from wgnuplot.rc
texticon.ico
: geticon.exe win\wgnuplot.rc
geticon win\wgnuplot.rc
grpicon.ico
: geticon.exe win\wgnuplot.rc
geticon win\wgnuplot.rc
geticon.exe
: win\geticon.c
$(WCL) -zq -bt=nt -fe=geticon.exe win\geticon.c
#
convert gnuplot.doc to gnuplot.rtf
$(
HELPFILE
)
: doc2rtf.exe
$(
D
)
gnuplot.doc win\wgnuplot.hpj
doc2rtf $(D)gnuplot.doc win\gnuplot.rtf
$(HCW) /c /e win\wgnuplot.hpj
if exist win\wgnuplot.hlp copy win\wgnuplot.hlp .
doc2rtf.exe
:
$(
D
)
doc2rtf.c
$(
D
)
termdoc.c
$(
D
)
xref.c config.h
$(WCL) $(WCFLAGS) -w1 -DWINDOWS_NO_GUI /I..\docs;..\term -fedoc2rtf.exe $(D)doc2rtf.c $(D)termdoc.c $(D)xref.c
#
make binary demo files
bf_test.exe
: bf_test.c dbinary.obj alloc.obj
$(WCL) $(WCFLAGS) -w1 -DWINDOWS_NO_GUI -febf_test.exe bf_test.c dbinary.obj alloc.obj
$(
BINARYFILES
)
: bf_test.exe
.\bf_test
move binary? $(M).
#
_Windows causes wtext.h to define fread() etc
dbinary.obj
: binary.c
$(WCC) $(WCFLAGS) /U_Windows -w1 -fodbinary.obj binary.c
#
clean up temporary files
clean
: .SYMBOLIC
rm -f *.obj *.err *.ico
rm -f wgnuplot.res win\gnuplot.rtf win\wgnuplot.hlp
rm -f bf_test.exe linkopt1.oww doc2rtf.exe geticon.exe
rm -f wgnuplot.map wgnuplot.sym pgnuplot.map wgnuplot.gid
realclean
: clean .SYMBOLIC
rm -f wgnuplot.exe wgnuplot.hlp wgnuplot.mnu pgnuplot.exe
rm -f ..\demo\binary[123] ..\demo\fit.log ..\demo\soundfit.par
rm -f config.h
Back
|
FazBrowse Home
|
New Git URL