FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gnuplot-old/config/makefile.nt 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.nt
Copy path
More file actions
More file actions
Latest commit
History
History
History
284 lines (227 loc) · 9.19 KB
Breadcrumbs
gnuplot-old
/
config
/
makefile.nt
Copy path
File metadata and controls
284 lines (227 loc) · 9.19 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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
#
# $Id: makefile.nt,v 1.22 2008/11/07 11:55:46 mikulik Exp $
#
# GNUPLOT Makefile Microsoft Visual C++ and nmake on WinNT and Win95/98/..
# John Bollinger bbands@yahoo.com, 4 March 2002:
# Added png support with zlib and libpng as subs of .\src
# libpng and zlib can be downloaded from ftp://ftp.uu.net/graphics/png
# Added pdf support with pdflib as a sub of .\src
# pdflib can be downloaded from http://www.pdflib.com
# Added MSC multi-thread support for compatibility with pdflib
# Bastian Maerkisch bmaerkisch@web.de:
# Added support for binary version of the GD library (bgd.dll)
# gdlib can be downloaded from http://www.boutell.com/gd
# Removed zlib and libpng again as they're already included in bgd.dll
#
# To compile with Visual C:
# Download gdlib to ..\src\gdwin32
# Download pdflib to ..\src\pdflib and compile it if you choose the source
#
# Find and run VCVARS32.BAT (or maybe VSVARS32.BAT)
# change to the gnuplot\src directory
# Now run:
# nmake -f ..\config\makefile.nt
# You can also do it like this:
# copy ..\config\makefile.nt makefile.nt
# edit the copy to your liking
# nmake -f makefile.nt
# where to place gnuplot.gih helpfile
HELPFILE = wgnuplot.hlp
# directory for PostScript prolog and associated files
GNUPLOT_PS_DIR = share\\PostScript
TOP = .
# /c means don't link
# /I means extra include directory
# /Fm means produce link map
# /Od means suppress optimizations (esp. for debug)
# /O2 mans optimize for speed
# /Zi mean prepare for codeview
# /G6 means optimize code for pentium pro
# /G5 means optimize code for pentium
# /G4 means optimize code for 486
# /G3 means optimize code for 386
# /MT means include multi-thread support
# /MD means include multi-thread support (DLL)
CC = cl /c
LD = link
# compiler flags
OPTIONS = /DUSE_MOUSE
OPTIONS = $(OPTIONS) /DHAVE_LIBGD /DHAVE_GD_GIF /DGIF_ANIMATION /DHAVE_GD_PNG /DHAVE_GD_JPEG /DHAVE_GD_TTF
OPTIONS = $(OPTIONS) /DHAVE_LIBPDF
OPTIONS = $(OPTIONS) /DGNUPLOT_HISTORY
CBASEFLAGS = /G5 /GX /GR /MD /O2 /nologo
CFLAGS = $(CBASEFLAGS) /I$(TOP) /D_Windows /DWIN32 /DHAVE_CONFIG_H /D__MSC__ /DHELPFILE=\"$(HELPFILE)\" $(OPTIONS)
CONSOLE_CFLAGS = /DWGP_CONSOLE
!IF "$(PROCESSOR_ARCHITECTURE)" == "ALPHA"
MACHINE = $(PROCESSOR_ARCHITECTURE)
!ELSE
MACHINE = IX86
!ENDIF
# paths for external libs added here...
LDFLAGS = /subsystem:windows /nologo /MACHINE:$(MACHINE) /MAP:GNUPLOT /libpath:..\src\pdflib\pdflib /libpath:..\src\gdwin32
# ...and here.
# see other terminal defines in term.h
TERMFLAGS = /I..\\term /I..\\src\\pdflib\\pdflib /I..\\src\\gdwin32 /DGNUPLOT_PS_DIR=\"$(GNUPLOT_PS_DIR)\"
# macros for makefile.all
O=obj
T=..\\term\\
D=..\\docs\\
M=..\\demo\\
default: wgnuplot.exe $(HELPFILE) wgnuplot.mnu $(M)bf_test.exe pgnuplot.exe wgnuplot_pipes.exe
!INCLUDE makefile.all
OBJS = $(COREOBJS) version.obj
WINOBJS = winmain.obj wgnuplib.obj wgraph.obj wprinter.obj wtext.obj \
wpause.obj wmenu.obj gpexecute.obj
WINDOWS = makefile.win makefile.nt README.win win\wcommon.h \
win\wgnuplib.c win\wgnuplib.def win\wgnuplib.h win\wgnuplib.rc \
win\wgnuplot.def win\wgnuplot.hpj win\wgnuplot.mnu win\wgraph.c \
win\winmain.c win\wmenu.c win\wpause.c win\wprinter.c \
win\wresourc.h win\wtext.c win\wtext.h win\geticon.c \
$(D)doc2rtf.c $(T)win.trm win\grpicon.ico win\texticon.ico
ALL_CONSOLE_OBJS = $(OBJS:.obj=.cobj) $(WINOBJS:.obj=.cobj)
# default rules
.c.obj:
$(CC) $(CFLAGS) $*.c
.c.cobj:
$(CC) $(CFLAGS) $(CONSOLE_CFLAGS) $*.c /Fo$@
$(OBJS): config.h
linkopt1.msw: makefile.nt
copy gnuplot.opt linkopt1.msw
echo winmain >> linkopt1.msw
echo gpexecute >> linkopt1.msw
echo readline >> linkopt1.msw
echo wgnuplib >> linkopt1.msw
echo wtext >> linkopt1.msw
echo wmenu >> linkopt1.msw
echo wpause >> linkopt1.msw
echo wgraph >> linkopt1.msw
echo wprinter >> linkopt1.msw
echo kernel32.lib >> linkopt1.msw
echo user32.lib >> linkopt1.msw
echo gdi32.lib >> linkopt1.msw
echo winspool.lib >> linkopt1.msw
echo comdlg32.lib >> linkopt1.msw
echo advapi32.lib >> linkopt1.msw
echo shell32.lib >> linkopt1.msw
echo pdflib.lib >> linkopt1.msw
echo bgd.lib >> linkopt1.msw
echo wgnuplot.res >> linkopt1.msw
makefile.nt: ..\config\makefile.nt
copy ..\config\makefile.nt makefile.nt
config.h: ..\config\config.nt
copy ..\config\config.nt config.h
wgnuplot.exe: $(OBJS) $(WINOBJS) win\wgnuplot.def wgnuplot.res linkopt1.msw texticon.ico grpicon.ico
$(LD) $(LDFLAGS) /out:wgnuplot.exe @linkopt1.msw
# rules
wgnuplot.res : win\wgnuplot.rc win\wgnuplib.rc win\wresourc.h texticon.ico grpicon.ico
rc /l 0x409 /fowgnuplot.res /i "win" /d "NDEBUG" /d WIN32 /d MSRC win\wgnuplot.rc
term.obj: term.c term.h plot.h setshow.h bitmap.h $(CORETERM)
$(CC) $(CFLAGS) $(TERMFLAGS) term.c /Fo$@
term.cobj: term.c term.h plot.h setshow.h bitmap.h $(CORETERM)
$(CC) $(CFLAGS) $(CONSOLE_CFLAGS) $(TERMFLAGS) term.c /Fo$@
winmain.obj: win\winmain.c win\wgnuplib.h win\wtext.h plot.h
$(CC) $(CFLAGS) win\winmain.c /Fo$@
winmain.cobj: win\winmain.c win\wgnuplib.h win\wtext.h plot.h
$(CC) $(CFLAGS) $(CONSOLE_CFLAGS) win\winmain.c /Fo$@
WINDEPS = win\wgnuplib.h win\wcommon.h win\wresourc.h
wgnuplib.obj: win\wgnuplib.c $(WINDEPS)
$(CC) $(CFLAGS) win\wgnuplib.c /Fo$@
wgnuplib.cobj: win\wgnuplib.c $(WINDEPS)
$(CC) $(CFLAGS) $(CONSOLE_CFLAGS) win\wgnuplib.c /Fo$@
wmenu.obj: win\wmenu.c $(WINDEPS)
$(CC) $(CFLAGS) win\wmenu.c /Fo$@
wmenu.cobj: win\wmenu.c $(WINDEPS)
$(CC) $(CFLAGS) $(CONSOLE_CFLAGS) win\wmenu.c /Fo$@
wtext.obj: win\wtext.c $(WINDEPS)
$(CC) $(CFLAGS) win\wtext.c /Fo$@
wtext.cobj: win\wtext.c $(WINDEPS)
$(CC) $(CFLAGS) $(CONSOLE_CFLAGS) win\wtext.c /Fo$@
wpause.obj: win\wpause.c $(WINDEPS)
$(CC) $(CFLAGS) win\wpause.c /Fo$@
wpause.cobj: win\wpause.c $(WINDEPS)
$(CC) $(CFLAGS) $(CONSOLE_CFLAGS) win\wpause.c /Fo$@
wprinter.obj: win\wprinter.c $(WINDEPS)
$(CC) $(CFLAGS) win\wprinter.c /Fo$@
wprinter.cobj: win\wprinter.c $(WINDEPS)
$(CC) $(CFLAGS) $(CONSOLE_CFLAGS) win\wprinter.c /Fo$@
wgraph.obj: win\wgraph.c $(WINDEPS)
$(CC) $(CFLAGS) win\wgraph.c /Fo$@
wgraph.cobj: win\wgraph.c $(WINDEPS)
$(CC) $(CFLAGS) $(CONSOLE_CFLAGS) win\wgraph.c /Fo$@
wgnuplot.mnu: win\wgnuplot.mnu
copy win\wgnuplot.mnu wgnuplot.mnu
wgnuplot_pipes.exe: win\pgnuplot.c
cl $(CBASEFLAGS) /I$(TOP) win\pgnuplot.c /Fe$@ /link version.obj user32.lib
pgnuplot.exe: $(ALL_CONSOLE_OBJS) win\wgnuplot.def wgnuplot.res texticon.ico grpicon.ico
$(LD) $(LDFLAGS) /out:$@ @<<
$(ALL_CONSOLE_OBJS)
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib comctl32.lib
gd.lib wxmsw28.lib wxtiff.lib
jpeg.lib png.lib
glib-2.0.lib gobject-2.0.lib gmodule-2.0.lib
cairo.lib pango-1.0.lib pangocairo-1.0.lib
wgnuplot.res
<<
# extract icons from wgnuplot.rc
texticon.ico: grpicon.ico
grpicon.ico: geticon.exe win\wgnuplot.rc
geticon win\wgnuplot.rc
geticon.exe: win\geticon.c
cl /DMSDOS /F 5000 /W1 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
cl $(CFLAGS) /F 5000 /W1 /I. /DWINDOWS_NO_GUI /I$(D) /I$(T) -Fedoc2rtf.exe $(D)doc2rtf.c $(D)termdoc.c $(D)xref.c
#make binary demo files
$(M)bf_test.exe : bf_test.c dbinary.obj alloc.obj
cl $(CFLAGS) /F 5000 /W1 /DWINDOWS_NO_GUI /Fe$(M)bf_test.exe bf_test.c dbinary.obj alloc.obj
cd ..\demo
bf_test
cd ..\src
# _Windows causes wtext.h to define fread() etc
dbinary.obj: binary.c
$(CC) $(CFLAGS) /U_Windows /F 5000 /W1 /Fodbinary.obj binary.c
# clean up temporary files
clean:
if exist *.obj del *.obj
if exist *.cobj del *.cobj
if exist *.ico del *.ico
if exist wgnuplot.res del wgnuplot.res
if exist win\gnuplot.rtf del win\gnuplot.rtf
if exist win\wgnuplot.hlp del win\wgnuplot.hlp
if exist ..\demo\bf_test.exe del ..\demo\bf_test.exe
if exist linkopt1.msw del linkopt1.msw
if exist doc2rtf.exe del doc2rtf.exe
if exist geticon.exe del geticon.exe
if exist GNUPLOT del GNUPLOT
veryclean: clean
if exist wgnuplot.exe del wgnuplot.exe
if exist wgnuplot.hlp del wgnuplot.hlp
if exist wgnuplot.mnu del wgnuplot.mnu
if exist pgnuplot.exe del pgnuplot.exe
if exist wgnuplot_pipes.exe del wgnuplot_pipes.exe
if exist ..\demo\binary1 del ..\demo\binary1
if exist ..\demo\binary2 del ..\demo\binary2
if exist ..\demo\binary3 del ..\demo\binary3
if exist ..\demo\fit.log del ..\demo\fit.log
if exist ..\demo\soundfit.par del ..\demo\soundfit.par
if exist config.h del config.h
if exist makefile.nt del makefile.nt
if exist *.manifest del *.manifest
install: default
if not exist $(DESTDIR) mkdir $(DESTDIR)\bin
copy /Y wgnuplot.exe $(DESTDIR)\bin\wgnuplot.exe
copy /Y win\wgnuplot.mnu $(DESTDIR)\bin\wgnuplot.mnu
# copy /Y wgnuplot.hlp $(DESTDIR)\bin\wgnuplot.hlp
copy /Y pgnuplot.exe $(DESTDIR)\bin\pgnuplot.exe
copy /Y wgnuplot_pipes.exe $(DESTDIR)\bin\wgnuplot_pipes.exe
if not exist $(DESTDIR)\$(GNUPLOT_PS_DIR) mkdir $(DESTDIR)\$(GNUPLOT_PS_DIR)
xcopy /Y ..\term\PostScript\*.ps $(DESTDIR)\$(GNUPLOT_PS_DIR)
if not exist $(DESTDIR) mkdir $(DESTDIR)
for %f in (BUGS README FAQ Copyright NEWS) do copy ..\%f $(DESTDIR)\%f
if not exist $(DESTDIR)\share\gnuplot\demo mkdir $(DESTDIR)\share\gnuplot\demo
xcopy /Y ..\demo $(DESTDIR)\share\gnuplot\demo
Back
|
FazBrowse Home
|
New Git URL