open-src/lib/freeglut/Makefile
changeset 1111 582653852b4c
parent 1042 d0172f4fafac
child 1176 22a62d074ec1
equal deleted inserted replaced
1110:49ceb96104f0 1111:582653852b4c
     1 ###############################################################################
     1 ###############################################################################
     2 #
     2 #
     3 # FreeGLUT 2.6.0 Makefile
     3 # FreeGLUT 2.6.0 Makefile
     4 #
     4 #
     5 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
     5 # Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
     6 #
     6 #
     7 # Permission is hereby granted, free of charge, to any person obtaining a
     7 # Permission is hereby granted, free of charge, to any person obtaining a
     8 # copy of this software and associated documentation files (the "Software"),
     8 # copy of this software and associated documentation files (the "Software"),
     9 # to deal in the Software without restriction, including without limitation
     9 # to deal in the Software without restriction, including without limitation
    10 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
    10 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
    67 MODULE_LD_OPTIONS += -z combreloc -z redlocsym -z ignore
    67 MODULE_LD_OPTIONS += -z combreloc -z redlocsym -z ignore
    68 
    68 
    69 # We want GNU cp
    69 # We want GNU cp
    70 GNUCP=/usr/gnu/bin/cp
    70 GNUCP=/usr/gnu/bin/cp
    71 
    71 
    72 # And GNU sed
       
    73 GSED=/usr/gnu/bin/sed
       
    74 
       
    75 # We must build with GNU make
    72 # We must build with GNU make
    76 MODULE_MAKE=$(GNUMAKE)
    73 MODULE_MAKE=$(GNUMAKE)
    77 MODULE_MAKE_SET=yes
    74 MODULE_MAKE_SET=yes
    78 
    75 
    79 # Command line options to GNU autoconf configure script
    76 # Command line options to GNU autoconf configure script
   101 
    98 
   102 # We must use GNU make
    99 # We must use GNU make
   103 MODULE_ENV = \
   100 MODULE_ENV = \
   104 	     SHELL="/bin/bash" \
   101 	     SHELL="/bin/bash" \
   105 	     MAKESHELL="/bin/bash" \
   102 	     MAKESHELL="/bin/bash" \
   106 	     CONFIG_SHELL="/bin/bash" \
       
   107 	     PROTODIR="$(PROTODIR)" \
   103 	     PROTODIR="$(PROTODIR)" \
   108 	     CC="$(CC)" \
   104 	     CC="$(CC)" \
   109 	     CPPFLAGS="$(MODULE_CPPFLAGS) $(CPPFLAGS)" \
   105 	     CPPFLAGS="$(MODULE_CPPFLAGS) $(CPPFLAGS)" \
   110 	     CFLAGS="$(MODULE_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)" \
   106 	     CFLAGS="$(MODULE_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)" \
   111 	     LDFLAGS="$(LDFLAGS) $(MODULE_LDFLAGS)" \
   107 	     LDFLAGS="$(LDFLAGS) $(MODULE_LDFLAGS)" \
   119 MODULE_CONFIG_ENV = $(MODULE_ENV)
   115 MODULE_CONFIG_ENV = $(MODULE_ENV)
   120 MODULE_BUILD_ENV = $(MODULE_ENV)
   116 MODULE_BUILD_ENV = $(MODULE_ENV)
   121 
   117 
   122 include ../Makefile.inc
   118 include ../Makefile.inc
   123 
   119 
   124 # Freeglut needs libtool
   120 # Freeglut's $(VERSION_INFO) breaks delibtoolize.pl
   125 DELIBTOOLIZE=no
   121 DELIBTOOLIZE=no
   126 
       
   127 # But we don't want autoreconf
       
   128 AUTORECONF=no
       
   129 
   122 
   130 install: install_extra_symlinks
   123 install: install_extra_symlinks
   131 
   124 
   132 install_extra_symlinks:
   125 install_extra_symlinks:
   133 	( cd $(PROTODIR)/usr/lib/GL ; \
   126 	( cd $(PROTODIR)/usr/lib/GL ; \