annotate src/pthreads.mk @ 3256:7fb479d0241c

Update build tools for native mingw * src/build-m4.mk: do nothing for native mingw build * Makefile.in: - add bison, m4 as natve mingw, and python as jit build requirements. - remove build-bison as a mingw build dependancy * index.html: Add msys-bison to mingw required packages and mention ghostscript and python.
author John Donoghue <john.donoghue@ieee.org>
date Thu, 26 Sep 2013 21:18:39 -0400
parents 5ef49fb3299d
children 13be64f9f16d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 1390
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
938
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := pthreads
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
2559
480cba57f1bf update package pthreads
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
6 $(PKG)_CHECKSUM := 24d40e89c2e66a765733e8c98d6f94500343da86
938
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := pthreads-w32-$($(PKG)_VERSION)-release
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_FILE := pthreads-w32-$($(PKG)_VERSION)-release.tar.gz
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_URL := ftp://sourceware.org/pub/pthreads-win32/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
10 $(PKG)_DEPS :=
938
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2803
bd0fe0e0dac1 package pthreads: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents: 2559
diff changeset
13 $(WGET) -q -O- 'ftp://sourceware.org/pub/pthreads-win32/dll-latest/include/pthread.h' | \
bd0fe0e0dac1 package pthreads: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents: 2559
diff changeset
14 $(SED) -n 's/^#define PTW32_VERSION \([^,]*\),\([^,]*\),\([^,]*\),.*/\1-\2-\3/p;'
938
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 endef
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16
3028
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
17 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
18 define $(PKG)_BUILD
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
19 $(MAKE) -C '$(1)' -j 1 GC-static
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
20 $(INSTALL) -d '$(HOST_LIBDIR)'
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
21 $(INSTALL) -m644 '$(1)/libpthreadGC2.a' '$(HOST_LIBDIR)/libpthread.a'
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
22
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
23 if [ $(BUILD_SHARED) = yes ]; then \
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
24 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CC)' '$(HOST_LIBDIR)/libpthread.a' --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)'; \
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
25 fi
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
26
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
27 $(INSTALL) -d '$(HOST_INCDIR)'
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
28 $(INSTALL) -m644 '$(1)/pthread.h' '$(HOST_INCDIR)'
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
29 $(INSTALL) -m644 '$(1)/sched.h' '$(HOST_INCDIR)'
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
30 $(INSTALL) -m644 '$(1)/semaphore.h' '$(HOST_INCDIR)'
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
31 endef
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
32
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
33 else
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2886
diff changeset
34 ifeq ($(MXE_SYSTEM),mingw)
938
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 define $(PKG)_BUILD
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3028
diff changeset
36 $(MAKE) -C '$(1)' -j 1 GC-static CROSS='$(MXE_TOOL_PREFIX)'
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
37 $(INSTALL) -d '$(HOST_LIBDIR)'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
38 $(INSTALL) -m644 '$(1)/libpthreadGC2.a' '$(HOST_LIBDIR)/libpthread.a'
2886
b11464811f7f build shared library for pthreads
John W. Eaton <jwe@octave.org>
parents: 2803
diff changeset
39
b11464811f7f build shared library for pthreads
John W. Eaton <jwe@octave.org>
parents: 2803
diff changeset
40 if [ $(BUILD_SHARED) = yes ]; then \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3028
diff changeset
41 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_CC)' '$(HOST_LIBDIR)/libpthread.a' --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(HOST_BINDIR)'; \
2886
b11464811f7f build shared library for pthreads
John W. Eaton <jwe@octave.org>
parents: 2803
diff changeset
42 fi
b11464811f7f build shared library for pthreads
John W. Eaton <jwe@octave.org>
parents: 2803
diff changeset
43
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
44 $(INSTALL) -d '$(HOST_INCDIR)'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
45 $(INSTALL) -m644 '$(1)/pthread.h' '$(HOST_INCDIR)'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
46 $(INSTALL) -m644 '$(1)/sched.h' '$(HOST_INCDIR)'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
47 $(INSTALL) -m644 '$(1)/semaphore.h' '$(HOST_INCDIR)'
938
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
48 endef
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2886
diff changeset
49 else
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2886
diff changeset
50 define $(PKG)_BUILD
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2886
diff changeset
51 endef
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2886
diff changeset
52 endif
3028
d024ce7bdaf0 Update pthread for native mingw build
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
53 endif