package glfw2: remove unnecessary patch and run make cleanup-style

This commit is contained in:
Tony Theodore 2013-11-12 01:18:17 +11:00
parent a35fbb2a43
commit 4e5ba64d11
3 changed files with 7 additions and 29 deletions

View File

@ -1,25 +0,0 @@
This file is part of MXE.
See index.html for further information.
Do not waste time building examples and tests. We use our test
--- a/Makefile
+++ b/Makefile
@@ -128,13 +128,13 @@
cross-mgw:
cd lib/win32 && $(MAKE) -f Makefile.win32.cross-mgw
- cd examples && $(MAKE) -f Makefile.win32.cross-mgw
- cd tests && $(MAKE) -f Makefile.win32.cross-mgw
+ #cd examples && $(MAKE) -f Makefile.win32.cross-mgw
+ #cd tests && $(MAKE) -f Makefile.win32.cross-mgw
cross-mgw-clean:
cd lib/win32 && $(MAKE) -f Makefile.win32.cross-mgw clean
- cd examples && $(MAKE) -f Makefile.win32.cross-mgw clean
- cd tests && $(MAKE) -f Makefile.win32.cross-mgw clean
+ #cd examples && $(MAKE) -f Makefile.win32.cross-mgw clean
+ #cd tests && $(MAKE) -f Makefile.win32.cross-mgw clean
###########################################################################

View File

@ -13,16 +13,16 @@ int main(void)
{
return EXIT_FAILURE;
}
/* Open a window and create its OpenGL context */
if( !glfwOpenWindow( 640, 480, 0,0,0,0, 0,0, GLFW_WINDOW ) )
{
glfwTerminate();
return EXIT_FAILURE;
}
/* Close OpenGL window and terminate GLFW*/
glfwTerminate();
return EXIT_SUCCESS;
}

View File

@ -19,7 +19,10 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
$(MAKE) -C '$(1)' -j '$(JOBS)' cross-mgw-install TARGET=$(TARGET)- PREFIX='$(PREFIX)/$(TARGET)'
cd '$(1)/lib/win32' && $(MAKE) -f Makefile.win32.cross-mgw \
TARGET=$(TARGET)- \
PREFIX='$(PREFIX)/$(TARGET)' \
install -j '$(JOBS)'
#Test
'$(TARGET)-gcc' \