build.sh 681 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. #
  3. # San Angeles Observation OpenGL ES version example
  4. #
  5. # This shell script builds the demo application
  6. # with executable name "SanOGLES".
  7. #
  8. # Before running it, make sure that either libGLES_CM.so
  9. # or libGLES_CL.so is available in the library path.
  10. # Alternatively you can copy one of them to the same
  11. # directory with the executable, and start the executable
  12. # with this command:
  13. # LD_LIBRARY_PATH=. ./SanOGLES
  14. #
  15. # $Id: build.sh,v 1.3 2005/02/08 19:18:10 tonic Exp $
  16. # $Revision: 1.3 $
  17. CC=gcc
  18. SRC="demo.c importgl.c app-linux.c"
  19. OUT=SanOGLES
  20. CFLAGS="-I include -Wall"
  21. LDFLAGS="-L /usr/X11R6/lib -lX11 -lm"
  22. $CC -o $OUT $SRC $CFLAGS $LDFLAGS