Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4)

Delta Between Two Patch Sets: PC/os2emx/Makefile

Issue 15550: Trailing white spaces
Left Patch Set: Created 7 years, 6 months ago
Right Patch Set: Created 7 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « PC/example_nt/readme.txt ('k') | PC/os2emx/python33.def » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 #####################==================---------------- 1 #####################==================----------------
2 # 2 #
3 # Top-Level Makefile for Building Python 2.6 for OS/2 using GCC/EMX 3 # Top-Level Makefile for Building Python 2.6 for OS/2 using GCC/EMX
4 # Originally written by Andrew Zabolotny, <bit@eltech.ru> for Python 1.5.2 4 # Originally written by Andrew Zabolotny, <bit@eltech.ru> for Python 1.5.2
5 # Modified by Andrew MacIntyre, <andymac@pcug.org.au> for Python 2.6 5 # Modified by Andrew MacIntyre, <andymac@pcug.org.au> for Python 2.6
6 # 6 #
7 # This makefile was developed for use with [P]GCC/EMX compiler any 7 # This makefile was developed for use with [P]GCC/EMX compiler any
8 # version and GNU Make. 8 # version and GNU Make.
9 # 9 #
10 # The output of the build is a largish Python26.DLL containing the 10 # The output of the build is a largish Python26.DLL containing the
11 # essential modules of Python and a small Python.exe program to start 11 # essential modules of Python and a small Python.exe program to start
12 # the interpreter. When embedding Python within another program, only 12 # the interpreter. When embedding Python within another program, only
13 # Python26.DLL is needed. We also build python_s.a static library (which 13 # Python26.DLL is needed. We also build python_s.a static library (which
14 # can be converted into OMF (.lib) format using emxomf tool) and both 14 # can be converted into OMF (.lib) format using emxomf tool) and both
15 # python.a and python.lib import libraries. Then the optional 15 # python.a and python.lib import libraries. Then the optional
16 # extension modules, which are OS/2 DLLs renamed with a PYD file extension. 16 # extension modules, which are OS/2 DLLs renamed with a PYD file extension.
17 # 17 #
18 # Recommended build order: 18 # Recommended build order:
19 # make depend (if you have makedep) 19 # make depend (if you have makedep)
20 # make all 20 # make all
21 # make lx (if you have lxlite) 21 # make lx (if you have lxlite)
22 # make test (optional) 22 # make test (optional)
23 # 23 #
24 #####################==================---------------- 24 #####################==================----------------
25 25
26 # === Compilation mode: debug or release === 26 # === Compilation mode: debug or release ===
27 MODE= optimize 27 MODE= optimize
28 #MODE= debug 28 #MODE= debug
29 # === Assert() enabled === 29 # === Assert() enabled ===
30 ASSERTIONS=no 30 ASSERTIONS=no
31 #ASSERTIONS=yes 31 #ASSERTIONS=yes
32 # === Hard-wire installation location === 32 # === Hard-wire installation location ===
33 FIXED_PYHOME=no 33 FIXED_PYHOME=no
34 #FIXED_PYHOME=yes 34 #FIXED_PYHOME=yes
35 35
36 # === Optional modules === 36 # === Optional modules ===
37 # Do you have the InfoZip compression library installed? 37 # Do you have the InfoZip compression library installed?
38 HAVE_ZLIB= no 38 HAVE_ZLIB= no
39 # Do you have the Ultra Fast Crypt (UFC) library installed? 39 # Do you have the Ultra Fast Crypt (UFC) library installed?
40 HAVE_UFC= no 40 HAVE_UFC= no
41 # Do you have the Tcl/Tk library installed? 41 # Do you have the Tcl/Tk library installed?
42 HAVE_TCLTK= no 42 HAVE_TCLTK= no
43 # Do you have the GNU readline library installed? 43 # Do you have the GNU readline library installed?
44 # NOTE: I'm using a modified version of Kai Uwe Rommel's port that 44 # NOTE: I'm using a modified version of Kai Uwe Rommel's port that
45 # - is compiled with multithreading enabled 45 # - is compiled with multithreading enabled
46 # - is linked statically 46 # - is linked statically
47 # I have had no success trying to use a DLL version, even when 47 # I have had no success trying to use a DLL version, even when
48 # compiled with multithreading enabled. 48 # compiled with multithreading enabled.
49 HAVE_GREADLINE= no 49 HAVE_GREADLINE= no
50 # Do you have the BSD DB library (v1.85) as included in the EMXBSD package? 50 # Do you have the BSD DB library (v1.85) as included in the EMXBSD package?
51 # NOTE: this library needs to be recompiled with a structure member 51 # NOTE: this library needs to be recompiled with a structure member
52 # renamed to avoid problems with the multithreaded errno support 52 # renamed to avoid problems with the multithreaded errno support
53 # (there is a structure member called errno, used for shadowing the 53 # (there is a structure member called errno, used for shadowing the
54 # real errno, which conflicts with the errno redefinition of -Zmt) 54 # real errno, which conflicts with the errno redefinition of -Zmt)
55 HAVE_BSDDB= no 55 HAVE_BSDDB= no
56 # Do you have the ncurses library installed? EMX's BSD curses aren't enough! 56 # Do you have the ncurses library installed? EMX's BSD curses aren't enough!
57 HAVE_NCURSES= no 57 HAVE_NCURSES= no
58 # Do you have the GDBM library installed? 58 # Do you have the GDBM library installed?
59 HAVE_GDBM= no 59 HAVE_GDBM= no
60 # Do you have the BZ2 compression library installed? 60 # Do you have the BZ2 compression library installed?
61 HAVE_BZ2= no 61 HAVE_BZ2= no
62 # Do you have the OpenSSL libraries installed 62 # Do you have the OpenSSL libraries installed
63 HAVE_OPENSSL= no 63 HAVE_OPENSSL= no
64 64
65 # === install locations === 65 # === install locations ===
66 # default value of PYTHONHOME 66 # default value of PYTHONHOME
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 # Output file names 238 # Output file names
239 PYTHON_VER= 2.6 239 PYTHON_VER= 2.6
240 PYTHON_LIB= python33 240 PYTHON_LIB= python33
241 PYTHON.LIB= $(PYTHON_LIB)_s$A 241 PYTHON.LIB= $(PYTHON_LIB)_s$A
242 PYTHON.IMPLIB= $(PYTHON_LIB)$A 242 PYTHON.IMPLIB= $(PYTHON_LIB)$A
243 ifeq ($(EXEOMF),yes) 243 ifeq ($(EXEOMF),yes)
244 PYTHON.EXEIMP= $(PYTHON.IMPLIB) 244 PYTHON.EXEIMP= $(PYTHON.IMPLIB)
245 LDMODE.EXE= -Zomf 245 LDMODE.EXE= -Zomf
246 else 246 else
247 PYTHON.EXEIMP= $(PYTHON_LIB).a 247 PYTHON.EXEIMP= $(PYTHON_LIB).a
248 LDMODE.EXE = 248 LDMODE.EXE =
249 endif 249 endif
250 PYTHON.DLL= $(PYTHON_LIB).dll 250 PYTHON.DLL= $(PYTHON_LIB).dll
251 PYTHON.DEF= $(PYTHON_LIB).def 251 PYTHON.DEF= $(PYTHON_LIB).def
252 PYTHON.EXE= python.exe 252 PYTHON.EXE= python.exe
253 PYTHONPM.EXE= pythonpm.exe 253 PYTHONPM.EXE= pythonpm.exe
254 PGEN.EXE= pgen.exe 254 PGEN.EXE= pgen.exe
255 LIBRARY= $(PYTHON.LIB) 255 LIBRARY= $(PYTHON.LIB)
256 LD_LIBRARY= $(PYTHON.IMPLIB) 256 LD_LIBRARY= $(PYTHON.IMPLIB)
257 257
258 # Additional executable parameters 258 # Additional executable parameters
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 424
425 # Python modules to be dynamically loaded that: 425 # Python modules to be dynamically loaded that:
426 # 1) have only single source file and require no extra libs 426 # 1) have only single source file and require no extra libs
427 # 2) use the standard module naming convention 427 # 2) use the standard module naming convention
428 # (the 'module' in ?????module.c is assumed) 428 # (the 'module' in ?????module.c is assumed)
429 # - these can be built with implicit rules 429 # - these can be built with implicit rules
430 EASYEXTMODULES= fpectl \ 430 EASYEXTMODULES= fpectl \
431 fpetest \ 431 fpetest \
432 parser \ 432 parser \
433 pwd \ 433 pwd \
434 » » select 434 » » select
435 435
436 # Python modules to be dynamically loaded that need explicit build rules 436 # Python modules to be dynamically loaded that need explicit build rules
437 # (either multiple source files and/or non-standard module naming) 437 # (either multiple source files and/or non-standard module naming)
438 # (NOTE: use shortened names for modules affected by 8 char name limit) 438 # (NOTE: use shortened names for modules affected by 8 char name limit)
439 HARDEXTMODULES= _socket \ 439 HARDEXTMODULES= _socket \
440 _testcap \ 440 _testcap \
441 unicoded 441 unicoded
442 442
443 # Python modules that are used as libraries and therefore must use 443 # Python modules that are used as libraries and therefore must use
444 # a .DLL extension 444 # a .DLL extension
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 $(PYTHON.EXE): $(SRC.EXE) $(PYTHON.EXEIMP) $(OUT)python.def 554 $(PYTHON.EXE): $(SRC.EXE) $(PYTHON.EXEIMP) $(OUT)python.def
555 $(CC) -Zmt $(LDMODE.EXE) -Zcrtdll -Wall $(INCLUDE) -L. -lgcc -o $@ $(SRC .EXE) $(PYTHON.EXEIMP) $(LIBS) $(OUT)python.def 555 $(CC) -Zmt $(LDMODE.EXE) -Zcrtdll -Wall $(INCLUDE) -L. -lgcc -o $@ $(SRC .EXE) $(PYTHON.EXEIMP) $(LIBS) $(OUT)python.def
556 $(EXEOPT) -aq $(PYTHON.EXE) -h$(NFILES) 556 $(EXEOPT) -aq $(PYTHON.EXE) -h$(NFILES)
557 557
558 $(PYTHONPM.EXE): $(SRC.PMEXE) $(PYTHON.EXEIMP) $(OUT)pythonpm.def 558 $(PYTHONPM.EXE): $(SRC.PMEXE) $(PYTHON.EXEIMP) $(OUT)pythonpm.def
559 $(CC) -Zmt $(LDMODE.EXE) -Zcrtdll -Wall $(INCLUDE) -L. -lgcc -o $@ $(SRC .PMEXE) $(PYTHON.EXEIMP) $(LIBS) $(OUT)pythonpm.def 559 $(CC) -Zmt $(LDMODE.EXE) -Zcrtdll -Wall $(INCLUDE) -L. -lgcc -o $@ $(SRC .PMEXE) $(PYTHON.EXEIMP) $(LIBS) $(OUT)pythonpm.def
560 $(EXEOPT) -aq $(PYTHONPM.EXE) -h$(NFILES) 560 $(EXEOPT) -aq $(PYTHONPM.EXE) -h$(NFILES)
561 561
562 $(PGEN.EXE): $(OBJ.PGEN) $(OUT)pgen.def 562 $(PGEN.EXE): $(OBJ.PGEN) $(OUT)pgen.def
563 563
564 # Explicit building instructions for those external modules that require 564 # Explicit building instructions for those external modules that require
565 # awkward handling (due e.g. to non-std naming, or multiple source files) 565 # awkward handling (due e.g. to non-std naming, or multiple source files)
566 # - standard modules 566 # - standard modules
567 567
568 _socket$(MODULE.EXT): $(OUT)socketmodule$O $(OUT)_socket_m.def $(PYTHON.IMPLIB) 568 _socket$(MODULE.EXT): $(OUT)socketmodule$O $(OUT)_socket_m.def $(PYTHON.IMPLIB)
569 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS) 569 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS)
570 570
571 # _testcapi needs to be renamed to be useful 571 # _testcapi needs to be renamed to be useful
572 _testcapi$(MODULE.EXT): $(OUT)_testcapimodule$O $(OUT)_testcapi_m.def $(PYTHON.I MPLIB) 572 _testcapi$(MODULE.EXT): $(OUT)_testcapimodule$O $(OUT)_testcapi_m.def $(PYTHON.I MPLIB)
573 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS) 573 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS)
574 574
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 _ssl$(MODULE.EXT): $(OUT)_ssl$O $(OUT)_ssl_m.def $(PYTHON.IMPLIB) 663 _ssl$(MODULE.EXT): $(OUT)_ssl$O $(OUT)_ssl_m.def $(PYTHON.IMPLIB)
664 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS) -lssl -lcrypto 664 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS) -lssl -lcrypto
665 665
666 # the test target 666 # the test target
667 test: 667 test:
668 -find ../../Lib -name "*.py[co]" -exec rm {} ";" 668 -find ../../Lib -name "*.py[co]" -exec rm {} ";"
669 -./python -E ../../lib/test/regrtest.py -l -u "network" 669 -./python -E ../../lib/test/regrtest.py -l -u "network"
670 ./python -E ../../lib/test/regrtest.py -l -u "network" 670 ./python -E ../../lib/test/regrtest.py -l -u "network"
671 671
672 -include $(OUTBASE)python.dep 672 -include $(OUTBASE)python.dep
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+