mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 22:05:06 +00:00
Fix some portability problems; clean up some compiler droppings (IRIX); remove CVS stuff from the tarball; really remove the extension registry from the tarball
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@83 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
6f0457b50e
commit
ed0c3891f4
22
Makefile
22
Makefile
@ -66,10 +66,7 @@ P.BIN =
|
|||||||
# dependency information (several versions of RedHat and SuSE among
|
# dependency information (several versions of RedHat and SuSE among
|
||||||
# others). Stuff needed by both GLUT and GL is included only in GL's
|
# others). Stuff needed by both GLUT and GL is included only in GL's
|
||||||
# LDFLAGS. Same thnig for GLU and GL. Include the stuff needed only by
|
# LDFLAGS. Same thnig for GLU and GL. Include the stuff needed only by
|
||||||
# GLUT *before* the GL flags. This probably breaks down on IRIX since
|
# GLUT *before* the GL flags. This probably breaks down on IRIX. (mem)
|
||||||
# their linker works "the other way arround", but since that POS doesn't
|
|
||||||
# support glXGetProcAddress, GLEW is rather uninteresting on that
|
|
||||||
# platform. (mem)
|
|
||||||
|
|
||||||
GL_LDFLAGS = -lGL -lXext -lX11 -lm
|
GL_LDFLAGS = -lGL -lXext -lX11 -lm
|
||||||
GLU_LDFLAGS = -lGLU
|
GLU_LDFLAGS = -lGLU
|
||||||
@ -141,6 +138,9 @@ bin/$(BIN): $(BIN.SRCS)
|
|||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -c $(CFLAGS) -o $@ $<
|
$(CC) -c $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
|
src/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h
|
||||||
|
$(CC) $(CFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
# directories
|
# directories
|
||||||
$(INSTALL) -d -m 0755 $(GLEW_DEST)/bin
|
$(INSTALL) -d -m 0755 $(GLEW_DEST)/bin
|
||||||
@ -168,22 +168,22 @@ clean:
|
|||||||
$(RM) $(LIB.OBJS)
|
$(RM) $(LIB.OBJS)
|
||||||
$(RM) lib/$(LIB.STATIC) lib/$(LIB.SHARED) lib/$(LIB.DEVLNK) lib/$(LIB.SONAME) $(LIB.STATIC)
|
$(RM) lib/$(LIB.STATIC) lib/$(LIB.SHARED) lib/$(LIB.DEVLNK) lib/$(LIB.SONAME) $(LIB.STATIC)
|
||||||
$(RM) $(BIN.OBJS) bin/$(BIN)
|
$(RM) $(BIN.OBJS) bin/$(BIN)
|
||||||
|
# Compiler droppings
|
||||||
|
$(RM) so_locations
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
find -name \*~ | xargs -r rm
|
find -name \*~ | xargs $(RM)
|
||||||
find -name .\*.sw\? | xargs -r rm
|
find -name .\*.sw\? | xargs $(RM)
|
||||||
|
|
||||||
tardist:
|
tardist:
|
||||||
$(RM) -r $(TARDIR)
|
$(RM) -r $(TARDIR)
|
||||||
mkdir $(TARDIR)
|
mkdir $(TARDIR)
|
||||||
cp -a . $(TARDIR)
|
cp -a . $(TARDIR)
|
||||||
|
find $(TARDIR) -name CVS -o -name .cvsignore | xargs $(RM) -r
|
||||||
$(MAKE) -C $(TARDIR) distclean
|
$(MAKE) -C $(TARDIR) distclean
|
||||||
$(MAKE) -C $(TARDIR)
|
$(MAKE) -C $(TARDIR)
|
||||||
$(MAKE) -C $(TARDIR) distclean
|
$(MAKE) -C $(TARDIR) distclean
|
||||||
$(RM) -r $(TARDIR)/doc/registry
|
$(RM) -r $(TARDIR)/auto/registry
|
||||||
env GZIP=-9 tar -C `dirname $(TARDIR)` -cvzf $(TARBALL) `basename $(TARDIR)`
|
env GZIP=-9 tar -C `dirname $(TARDIR)` -cvzf $(TARBALL) `basename $(TARDIR)`
|
||||||
|
|
||||||
src/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h
|
.PHONY: clean distclean tardist
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
|
||||||
|
|
||||||
.PHONY: clean
|
|
||||||
|
Loading…
Reference in New Issue
Block a user