From 57d00016cab9afa3e7853d9830044a8ece9541c4 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Fri, 23 Jan 2009 12:32:35 +0000 Subject: glew: Initial import. From glew 1.5.1 release. --- src/glew/Makefile | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/glew/Makefile (limited to 'src/glew/Makefile') diff --git a/src/glew/Makefile b/src/glew/Makefile new file mode 100644 index 0000000000..c0389df6f1 --- /dev/null +++ b/src/glew/Makefile @@ -0,0 +1,55 @@ +# src/glew/Makefile + +TOP = ../.. +include $(TOP)/configs/current + + +##### MACROS ##### + +GLEW_LIB_NAME = libglew.a + +MAJOR = 1 +MINOR = 5 +TINY = 0 + +SOURCES = \ + glew.c + + +OBJECTS = $(SOURCES:.c=.o) + + +##### RULES ##### + +.c.o: + $(CC) -c -I$(TOP)/include $(X11_INCLUDES) $(CFLAGS) $< + + + +##### TARGETS ##### + +default: $(TOP)/$(LIB_DIR)/$(GLEW_LIB_NAME) + + + +# Make the library +$(TOP)/$(LIB_DIR)/$(GLEW_LIB_NAME): depend $(OBJECTS) + $(MKLIB) -o $(GLEW_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \ + -major $(MAJOR) -minor $(MINOR) -patch $(TINY) \ + $(MKLIB_OPTIONS) -install $(TOP)/$(LIB_DIR) \ + -id $(INSTALL_LIB_DIR)/lib$(GLEW_LIB).$(MAJOR).dylib \ + $(GLEW_LIB_DEPS) $(OBJECTS) + + +clean: + -rm -f *.o *~ + -rm -f depend depend.bak + + +depend: $(SOURCES) + @ rm -f depend + @ touch depend + @ $(MKDEP) $(MKDEP_OPTIONS) -I$(TOP)/include $(SOURCES) \ + $(X11_INCLUDES) > /dev/null + +include depend -- cgit v1.2.3 From fcf9353fea8343a1a86c8c6e0144c8429440c648 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Sat, 24 Jan 2009 16:54:59 +0000 Subject: glew: Build it as a static lib. --- configs/default | 2 +- src/glew/Makefile | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'src/glew/Makefile') diff --git a/configs/default b/configs/default index 6fb8d58820..40f3a2a02d 100644 --- a/configs/default +++ b/configs/default @@ -57,7 +57,7 @@ OSMESA_LIB = OSMesa GL_LIB_NAME = lib$(GL_LIB).so GLU_LIB_NAME = lib$(GLU_LIB).so GLUT_LIB_NAME = lib$(GLUT_LIB).so -GLEW_LIB_NAME = lib$(GLEW_LIB).so +GLEW_LIB_NAME = lib$(GLEW_LIB).a GLW_LIB_NAME = lib$(GLW_LIB).so OSMESA_LIB_NAME = lib$(OSMESA_LIB).so diff --git a/src/glew/Makefile b/src/glew/Makefile index c0389df6f1..49ee8b6594 100644 --- a/src/glew/Makefile +++ b/src/glew/Makefile @@ -34,11 +34,7 @@ default: $(TOP)/$(LIB_DIR)/$(GLEW_LIB_NAME) # Make the library $(TOP)/$(LIB_DIR)/$(GLEW_LIB_NAME): depend $(OBJECTS) - $(MKLIB) -o $(GLEW_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \ - -major $(MAJOR) -minor $(MINOR) -patch $(TINY) \ - $(MKLIB_OPTIONS) -install $(TOP)/$(LIB_DIR) \ - -id $(INSTALL_LIB_DIR)/lib$(GLEW_LIB).$(MAJOR).dylib \ - $(GLEW_LIB_DEPS) $(OBJECTS) + $(MKLIB) -o $(GLEW_LIB) -static -install $(TOP)/$(LIB_DIR) $(OBJECTS) clean: -- cgit v1.2.3 From c273dfe6a28d4bb64ce167685b4053d22db5a727 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Fri, 13 Feb 2009 07:31:24 -0800 Subject: Add dummy install target for glew to fix 'make install' Signed-off-by: Dan Nicholson --- src/glew/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/glew/Makefile') diff --git a/src/glew/Makefile b/src/glew/Makefile index 49ee8b6594..8e6ccb4f7c 100644 --- a/src/glew/Makefile +++ b/src/glew/Makefile @@ -37,6 +37,9 @@ $(TOP)/$(LIB_DIR)/$(GLEW_LIB_NAME): depend $(OBJECTS) $(MKLIB) -o $(GLEW_LIB) -static -install $(TOP)/$(LIB_DIR) $(OBJECTS) +install: + + clean: -rm -f *.o *~ -rm -f depend depend.bak -- cgit v1.2.3 From c10df26a31b6af5a720fbfd06411d580cd38a2c8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 25 Mar 2009 08:59:31 -0600 Subject: glew: fix GLEW_LIB_NAME This fixes rebuilding of the library every time we run make. --- src/glew/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/glew/Makefile') diff --git a/src/glew/Makefile b/src/glew/Makefile index 8e6ccb4f7c..cd692f3ef7 100644 --- a/src/glew/Makefile +++ b/src/glew/Makefile @@ -6,7 +6,7 @@ include $(TOP)/configs/current ##### MACROS ##### -GLEW_LIB_NAME = libglew.a +GLEW_LIB_NAME = libGLEW.a MAJOR = 1 MINOR = 5 -- cgit v1.2.3