Removed tools executables to avoid repo bloat, and stale executables. Added makefile rule to build tools.

This commit is contained in:
Branimir Karadžić 2014-02-09 18:59:49 -08:00
parent 0719e748d7
commit caed3f9102
10 changed files with 42 additions and 0 deletions

View File

@ -156,3 +156,42 @@ docs:
clean:
@echo Cleaning...
-@rm -rf .build
###
SILENT ?= @
UNAME := $(shell uname)
ifeq ($(UNAME),$(filter $(UNAME),Linux Darwin))
ifeq ($(UNAME),$(filter $(UNAME),Darwin))
OS=darwin
BUILD_PROJECT_DIR=gmake-osx
BUILD_OUTPUT_DIR=linux64_gcc
EXE=
else
OS=linux
BUILD_PROJECT_DIR=gmake-linux
BUILD_OUTPUT_DIR=osx64_gcc
EXE=
endif
else
OS=windows
BUILD_PROJECT_DIR=gmake-mingw
BUILD_OUTPUT_DIR=win32_mingw
BUILD_TOOLS_CONFIG=release32
EXE=.exe
endif
.build/$(BUILD_OUTPUT_DIR)/bin/shadercRelease$(EXE): .build/projects/$(BUILD_PROJECT_DIR)
$(SILENT) make -C .build/projects/$(BUILD_PROJECT_DIR) -f shaderc.make config=$(BUILD_TOOLS_CONFIG)
tools/bin/$(OS)/shaderc$(EXE): .build/$(BUILD_OUTPUT_DIR)/bin/shadercRelease$(EXE)
$(SILENT) cp $(<) $(@)
.build/$(BUILD_OUTPUT_DIR)/bin/geometrycRelease$(EXE): .build/projects/$(BUILD_PROJECT_DIR)
$(SILENT) make -C .build/projects/$(BUILD_PROJECT_DIR) -f geometryc.make config=$(BUILD_TOOLS_CONFIG)
tools/bin/$(OS)/geometryc$(EXE): .build/$(BUILD_OUTPUT_DIR)/bin/geometrycRelease$(EXE)
$(SILENT) cp $(<) $(@)
tools: tools/bin/$(OS)/shaderc$(EXE) tools/bin/$(OS)/geometryc$(EXE)

1
tools/bin/darwin/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*

Binary file not shown.

Binary file not shown.

1
tools/bin/linux/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*

Binary file not shown.

Binary file not shown.

1
tools/bin/windows/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*

Binary file not shown.

Binary file not shown.