mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 13:55:07 +00:00
For ID: 3287530 - Fix auto/ build for BSD platforms
This commit is contained in:
parent
e2dffd8dd7
commit
bb3e797929
@ -22,11 +22,11 @@ BLACKLIST = blacklist
|
|||||||
GL_CORE_SPEC := $(CORE)/GL_VERSION*
|
GL_CORE_SPEC := $(CORE)/GL_VERSION*
|
||||||
GLX_CORE_SPEC := $(CORE)/GLX_VERSION*
|
GLX_CORE_SPEC := $(CORE)/GLX_VERSION*
|
||||||
ifeq (custom,$(MAKECMDGOALS))
|
ifeq (custom,$(MAKECMDGOALS))
|
||||||
#GL_CORE_SPEC := $(shell grep GL_VERSION custom.txt | sed -e 's/\(.*\)/$(CORE)\/\1/g;')
|
#GL_CORE_SPEC := $(shell grep GL_VERSION custom.txt | perl -e 's/\(.*\)/$(CORE)\/\1/g;')
|
||||||
GL_EXT_SPEC := $(shell grep "^[ \t]*GL_" custom.txt | grep -v GL_VERSION | sed -e 's/\(.*\)/$(EXT)\/\1/g;')
|
GL_EXT_SPEC := $(shell grep "^[ \t]*GL_" custom.txt | grep -v GL_VERSION | perl -e 's/\(.*\)/$(EXT)\/\1/g;')
|
||||||
WGL_EXT_SPEC := $(shell grep "^[ \t]*WGL_" custom.txt | sed -e 's/\(.*\)/$(EXT)\/\1/g;')
|
WGL_EXT_SPEC := $(shell grep "^[ \t]*WGL_" custom.txt | perl -e 's/\(.*\)/$(EXT)\/\1/g;')
|
||||||
#GLX_CORE_SPEC := $(shell grep GLX_VERSION custom.txt | sed -e 's/\(.*\)/$(CORE)\/\1/g;')
|
#GLX_CORE_SPEC := $(shell grep GLX_VERSION custom.txt | perl -e 's/\(.*\)/$(CORE)\/\1/g;')
|
||||||
GLX_EXT_SPEC := $(shell grep "^[ \t]*GLX_" custom.txt | grep -v GLX_VERSION | sed -e 's/\(.*\)/$(EXT)\/\1/g;')
|
GLX_EXT_SPEC := $(shell grep "^[ \t]*GLX_" custom.txt | grep -v GLX_VERSION | perl -e 's/\(.*\)/$(EXT)\/\1/g;')
|
||||||
else
|
else
|
||||||
GL_EXT_SPEC := $(EXT)/GL_*
|
GL_EXT_SPEC := $(EXT)/GL_*
|
||||||
WGL_EXT_SPEC := $(EXT)/WGL_*
|
WGL_EXT_SPEC := $(EXT)/WGL_*
|
||||||
@ -321,7 +321,7 @@ $(D.DEST)/%.html: doc/%.html
|
|||||||
@echo "Creating $(@F)"
|
@echo "Creating $(@F)"
|
||||||
@echo "--------------------------------------------------------------------"
|
@echo "--------------------------------------------------------------------"
|
||||||
cat $(SRC)/header.html $< $(SRC)/footer.html | \
|
cat $(SRC)/header.html $< $(SRC)/footer.html | \
|
||||||
sed 's#<a href="$(@F)">\(.*\)</a>#\1#' > $@
|
perl -e 's#<a href="$(@F)">\(.*\)</a>#\1#' > $@
|
||||||
|
|
||||||
$(D.DEST)/glew.html: $(EXT)/.dummy
|
$(D.DEST)/glew.html: $(EXT)/.dummy
|
||||||
@echo "--------------------------------------------------------------------"
|
@echo "--------------------------------------------------------------------"
|
||||||
@ -331,7 +331,7 @@ $(D.DEST)/glew.html: $(EXT)/.dummy
|
|||||||
echo -e "<h2>Supported OpenGL Extensions</h2>\n" >> $@
|
echo -e "<h2>Supported OpenGL Extensions</h2>\n" >> $@
|
||||||
$(BIN)/make_html.pl $(GL_EXT_SPEC) >> $@
|
$(BIN)/make_html.pl $(GL_EXT_SPEC) >> $@
|
||||||
cat $(SRC)/footer.html >> $@
|
cat $(SRC)/footer.html >> $@
|
||||||
sed -i 's#<a href="$(@F)">\(.*\)</a>#\1#' $@
|
perl -i -e 's#<a href="$(@F)">\(.*\)</a>#\1#' $@
|
||||||
|
|
||||||
$(D.DEST)/wglew.html: $(EXT)/.dummy
|
$(D.DEST)/wglew.html: $(EXT)/.dummy
|
||||||
@echo "--------------------------------------------------------------------"
|
@echo "--------------------------------------------------------------------"
|
||||||
@ -341,7 +341,7 @@ $(D.DEST)/wglew.html: $(EXT)/.dummy
|
|||||||
echo -e "<h2>Supported WGL Extensions</h2>\n" >> $@
|
echo -e "<h2>Supported WGL Extensions</h2>\n" >> $@
|
||||||
$(BIN)/make_html.pl $(WGL_EXT_SPEC) >> $@
|
$(BIN)/make_html.pl $(WGL_EXT_SPEC) >> $@
|
||||||
cat $(SRC)/footer.html >> $@
|
cat $(SRC)/footer.html >> $@
|
||||||
sed -i 's#<a href="$(@F)">\(.*\)</a>#\1#' $@
|
perl -i -e 's#<a href="$(@F)">\(.*\)</a>#\1#' $@
|
||||||
|
|
||||||
$(D.DEST)/glxew.html: $(EXT)/.dummy
|
$(D.DEST)/glxew.html: $(EXT)/.dummy
|
||||||
@echo "--------------------------------------------------------------------"
|
@echo "--------------------------------------------------------------------"
|
||||||
@ -351,7 +351,7 @@ $(D.DEST)/glxew.html: $(EXT)/.dummy
|
|||||||
echo -e "<h2>Supported GLX Extensions</h2>\n" >> $@
|
echo -e "<h2>Supported GLX Extensions</h2>\n" >> $@
|
||||||
$(BIN)/make_html.pl $(GLX_EXT_SPEC) >> $@
|
$(BIN)/make_html.pl $(GLX_EXT_SPEC) >> $@
|
||||||
cat $(SRC)/footer.html >> $@
|
cat $(SRC)/footer.html >> $@
|
||||||
sed -i 's#<a href="$(@F)">\(.*\)</a>#\1#' $@
|
perl -i -e 's#<a href="$(@F)">\(.*\)</a>#\1#' $@
|
||||||
|
|
||||||
$(B.DEST)/%.rc: src/%.rc $(EXT)/.dummy
|
$(B.DEST)/%.rc: src/%.rc $(EXT)/.dummy
|
||||||
perl -e "s/GLEW_MAJOR/$(GLEW_MAJOR)/g;s/GLEW_MINOR/$(GLEW_MINOR)/g;s/GLEW_MICRO/$(GLEW_MICRO)/g;" -p $< > $@
|
perl -e "s/GLEW_MAJOR/$(GLEW_MAJOR)/g;s/GLEW_MINOR/$(GLEW_MINOR)/g;s/GLEW_MICRO/$(GLEW_MICRO)/g;" -p $< > $@
|
||||||
|
Loading…
Reference in New Issue
Block a user