Commit Graph

126 Commits

Author SHA1 Message Date
Ryan Schmidt b323ebf9ad Remove everything after digits in SYSTEM
Instead of just removing periods and digits from SYSTEM, remove periods
and digits and everything after any digits. This handles unusual system
identifiers like powerpc-apple-darwin10.0.0d2.

I wasn't sure if periods can appear anywhere other than in the release
number so I retained the previous behavior of removing all periods
regardless where they are.
2024-04-25 08:34:21 +10:00
Nigel Stewart 037635a192 Disable stripping in debug-mode builds 2021-10-05 08:29:14 +10:00
Nigel Stewart d7693eea09 Makefile: don't strip in install step
As discussed in Issue #310 stripping the binaries is
done by the link targets, not needed for the install step.
Along the lines of a Yocto batch by Ross Burton <ross.burton@intel.com>
2021-10-05 08:27:27 +10:00
Ross Burton 767e031645 Fix build race in Makefile
The current rule for the binaries is:

glew.bin: glew.lib bin bin/$(GLEWINFO.BIN) bin/$(VISUALINFO.BIN)

In parallel builds, all of those targets happen at the same time. This
means that 'bin' can happen *after* 'bin/$(GLEWINFO.BIN)', which is a
problem as the 'bin' target's responsibility is to create the directory
that the other target writes into.

Solve this by not having a separate 'create directory' target which is
fundamentally racy, and simply mkdir in each target which writes into it.
2021-07-23 18:21:23 +10:00
Ross Burton 679a3b17fa Install to /usr/local by default when using Makefiles
Software should install to /usr/local by default, as /usr is for the
operating system managed libraries.

Closes #52.
2021-07-23 18:21:23 +10:00
Nigel Stewart 0fa5d11024 Fixup: Install eglew.h too 2021-01-10 11:13:09 +10:00
Nigel Stewart 3f91cd177a For SYSTEM=msys put dll in bin directory 2019-09-27 23:32:44 +10:00
Nigel Stewart f5feecd46e Extend glew.pc output to mention GL linking (-framework on OSX) 2019-03-17 09:05:27 +10:00
Nigel Stewart bc3c5d4992 glew-20181010.tgz GLEW 2.2.0 RC1 snapshot available 2018-10-10 14:09:18 +10:00
Nigel Stewart 013667e3e1 PHONY make targets: glew.lib glew.lib.shared glew.lib.static 2016-10-15 14:56:30 +10:00
Danilo Margarido 3d9e4808d3 Finer control over glew.lib
Allows building both, shared-only or static-only.
2016-10-15 14:11:12 +10:00
Nigel Stewart 5505e52896 Bundle .md files in .zip and .tar source archives 2016-07-08 20:40:34 +10:00
Nigel Stewart 1ab282a9d3 Clarify that Makefile STRIP= does not affect install step, which always strips 2016-05-08 00:12:11 +10:00
Nigel Stewart c45763d790 Add make toolchains for msys, msys-win32 and msys-win64 2016-02-06 06:46:18 +10:00
Nigel Stewart a4aa9b2717 Remove MX support due to the complexity of supporting both MX and Core contexts 2015-12-06 12:49:24 +10:00
Nigel Stewart bf2cd13450 Travis and Makefile refinements - less logging, cmake build coverage in Travis 2015-10-10 11:18:35 +10:00
Nigel Stewart 06430b007b First try AR, then try LIBTOOL... 2015-03-26 19:52:10 +10:00
BastiaanOlij aee8b6ff69 Renamed ARFLAGS.STATIC to simply ARFLAGS 2015-03-26 13:24:03 +11:00
BastiaanOlij 69cbc3532f Changed approach to be slightly more resilient to regression issues 2015-03-23 21:16:49 +11:00
BastiaanOlij 0c9ab41431 Changing over makefiles so LDFLAGS.STATIC is used. Also added makefile.darwin-universal for creating a universal static library that can be used properly. 2015-03-15 18:55:29 +11:00
Nigel Stewart f796232672 For mingw builds, define GLEW_BUILD unconditionally for shared libs only. 2014-09-27 13:05:04 +10:00
Nigel Stewart f6bd1dab39 GLEW Patch #65 - Makefile: let "make glew.lib debug" actually build with debug 2014-07-13 23:45:30 +10:00
Nigel Stewart f76628b5bd GLEW Patch #66 - Fixups for pkg-config in MinGW build. 2014-07-13 23:41:45 +10:00
hasufell 094647cb14 BUILD: respect DESTDIR variable
DESTDIR is used for temporary install location
in package managers otherwise you have to add
the temporary locations to BINDIR and LIBDIR
which can cause trouble with the pkg-config file.
2013-07-24 01:41:27 +02:00
Nigel Stewart 2ce935a13f Revamp dist-src and dist-win32 Makefile targets. 2013-07-20 22:58:10 -05:00
Nigel Stewart 41c1305a89 Re-write .pc files unconditionally, in case GLEW_DEST is specified on command line.
#189 Generated .pc files are "easy to break"
2012-11-11 13:09:20 -06:00
Nigel Stewart 71b38cfeb4 dos2unix for Linux/Mac build from .zip package.
Issue #205 config.guess / MacOSX 10.8 / bad interpreter
2012-11-11 11:43:37 -06:00
Nigel Stewart 287c58f930 Add build support for NaCL - Google Native Client. 2012-08-16 14:26:32 -05:00
Nigel Stewart 0a04f18c01 Use -fPIC for Linux and Darwin builds.
See: https://bugs.launchpad.net/ubuntu/+source/glew/+bug/811789
2012-08-07 21:54:20 -05:00
Nigel Stewart 3460dd42f1 Fixup: makefile typo. 2012-07-17 22:46:09 -05:00
Nigel Stewart 538147f387 GLEWAPIENTRY no longer needed in Makefile 2012-05-04 23:35:12 -05:00
Nigel Stewart cb7c643fab Fixups for GLEWAPIENTRY on Apple 2012-05-04 15:58:44 -05:00
Nigel Stewart 0af3be62b0 Optional symlink step for GLEW build. For Cygwin, Mingw32, etc. 2012-02-15 13:15:40 -06:00
Nigel Stewart aa7da9242a Makefile refinements: Move strip step from install to build, make it optional. Don't use exotic .o suffixes. Put temporary files in tmp/ for easy seperation and deltion 2012-02-12 14:12:36 -06:00
Nigel Stewart 6075e477b8 For dist-src target, ensure Makefile line-endings are platform consistant. 2011-11-23 15:45:21 -06:00
Nigel Stewart 85c3078cc4 Fixup for GLEW 1.6.0 dist-win target: package the GLEWmx libraries too. 2011-04-28 18:51:46 -05:00
Nigel Stewart dea5a6143c For ID: 3148451 - bad dll perms on default cygwin 1.7.7 install 2011-04-25 23:21:28 -05:00
Nigel Stewart 4a9b2a7b42 Fix for setting the soname of GLEWmx shared libraries - Thanks to Adam Williamson (Fedora QA Community Monkey) 2011-03-28 20:22:45 -05:00
Nigel Stewart 18455eb40f Update the GLEW build to build both vanilla and MX GLEW libraries. MX libraries now have mx suffix. Targets for building and installing are changed accordingly. Logic for glewmx.pc 2011-02-18 23:02:26 -06:00
Nigel Stewart 10ad0592df Remove git .patch files for tardist, dist-win32 and dist-src targets" 2011-01-31 08:10:28 -06:00
Nigel Stewart ed21c4a151 Filter our git .patch files for dist-src and dist-win32 targets. 2011-01-29 07:47:16 -06:00
Tom Fogal 266f2b4ceb Remove lib and bin directories when cleaning.
To ensure developers will end up with the same configuration as a
freshly-cloned repository -- and thereby making sure we catch bugs
like edc3c1 earlier.
2011-01-25 14:38:44 -07:00
Tom Fogal e564a97c81 Make sure output directories exist.
The targets themselves cannot have these dependencies, because they
use $^ and thus putting the dependent target in there screws up
the build.
2011-01-25 14:38:41 -07:00
nigels 0b890ef852 Improved Cygwin support as proposed in Feature Request ID: 3081290
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@626 783a27ee-832a-0410-bc00-9f386506c6dd
2010-10-29 05:14:45 +00:00
nigels bdfbf18f14 Improved mingw32 support, including cross-compile from Linux
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@622 783a27ee-832a-0410-bc00-9f386506c6dd
2010-09-22 19:38:25 +00:00
nigels 814999051c Apply patch for ID: 3007103 - Add missing mkdir
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@603 783a27ee-832a-0410-bc00-9f386506c6dd
2010-05-31 14:40:31 +00:00
nigels 0eb615148f Last minute touch-ups for 1.5.3 release
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@583 783a27ee-832a-0410-bc00-9f386506c6dd
2010-03-01 05:09:30 +00:00
nigels 15471cbd9f Create bin and lib dir for dist-src, do dos2unix/unix2dos for .pm and .rc files too
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@579 783a27ee-832a-0410-bc00-9f386506c6dd
2010-02-28 18:40:09 +00:00
nigels 0d04f76ced Add pkg-config support, based on patch by Eric Anholt
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@575 783a27ee-832a-0410-bc00-9f386506c6dd
2010-01-07 17:03:40 +00:00
nigels e72fe268e8 Touch-ups for GLEW 1.5.2 release. Add dist-src target
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@573 783a27ee-832a-0410-bc00-9f386506c6dd
2009-12-31 17:05:56 +00:00