Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skaslev committed Nov 22, 2010
1 parent 2b96f4b commit 9d02067
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -1,3 +1,6 @@
.sconsign.dblite
*.o
*.os
bin
include
src/gl3w.c
16 changes: 9 additions & 7 deletions SConstruct
@@ -1,11 +1,12 @@
import os

for f in ['include/GL3/gl3.h', 'include/GL3/gl3w.h', 'src/gl3w.c']:
try: os.unlink(f)
except: pass
import os, shutil

env = Environment()
if not env.GetOption('clean'):
if env.GetOption('clean'):
shutil.rmtree('bin', True)
shutil.rmtree('include', True)
try: os.unlink('src/gl3w.c')
except: pass
else:
print 'generating gl3w...'
execfile('gl3w_gen.py')

Expand All @@ -14,4 +15,5 @@ env.Append(CPPPATH='include')
env.SharedLibrary('bin/gl3w', 'src/gl3w.c')
o = env.Object('src/test', 'src/test.c')
env.Program('bin/test_static', [o, 'src/gl3w.c'], LIBS='glut')
env.Program('bin/test_shared', o, LIBS=['gl3w', 'glut'], LIBPATH='bin', RPATH=['.', 'bin'])
env.Program('bin/test_shared', o, LIBS=['gl3w', 'glut'],
LIBPATH='bin', RPATH=os.path.abspath('bin'))
2 changes: 0 additions & 2 deletions bin/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions include/GL3/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion src/.gitignore

This file was deleted.

0 comments on commit 9d02067

Please sign in to comment.