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:
mem 2003-07-06 19:27:40 +00:00
parent 6f0457b50e
commit ed0c3891f4

View File

@ -66,10 +66,7 @@ P.BIN =
# dependency information (several versions of RedHat and SuSE among
# 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
# GLUT *before* the GL flags. This probably breaks down on IRIX since
# their linker works "the other way arround", but since that POS doesn't
# support glXGetProcAddress, GLEW is rather uninteresting on that
# platform. (mem)
# GLUT *before* the GL flags. This probably breaks down on IRIX. (mem)
GL_LDFLAGS = -lGL -lXext -lX11 -lm
GLU_LDFLAGS = -lGLU
@ -141,6 +138,9 @@ bin/$(BIN): $(BIN.SRCS)
%.o: %.c
$(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
# directories
$(INSTALL) -d -m 0755 $(GLEW_DEST)/bin
@ -168,22 +168,22 @@ clean:
$(RM) $(LIB.OBJS)
$(RM) lib/$(LIB.STATIC) lib/$(LIB.SHARED) lib/$(LIB.DEVLNK) lib/$(LIB.SONAME) $(LIB.STATIC)
$(RM) $(BIN.OBJS) bin/$(BIN)
# Compiler droppings
$(RM) so_locations
distclean: clean
find -name \*~ | xargs -r rm
find -name .\*.sw\? | xargs -r rm
find -name \*~ | xargs $(RM)
find -name .\*.sw\? | xargs $(RM)
tardist:
$(RM) -r $(TARDIR)
mkdir $(TARDIR)
cp -a . $(TARDIR)
find $(TARDIR) -name CVS -o -name .cvsignore | xargs $(RM) -r
$(MAKE) -C $(TARDIR) distclean
$(MAKE) -C $(TARDIR)
$(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)`
src/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h
$(CC) $(CFLAGS) -o $@ -c $<
.PHONY: clean
.PHONY: clean distclean tardist