Skip to content

Commit

Permalink
Merge pull request #1563 from halide/interp
Browse files Browse the repository at this point in the history
Convert apps/interpolate to use bin/ directory for intermediate products
  • Loading branch information
steven-johnson committed Oct 21, 2016
2 parents ec06402 + 1e2bba9 commit 7d56f1d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -177,7 +177,6 @@ apps/*/passes.txt
apps/*/*.ll
apps/*/*.sass
apps/*/filter
apps/interpolate/interpolate
apps/seam_carving/seam_carving.h
apps/snake/halide_snake
apps/HelloAndroid*/bin
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -1149,7 +1149,7 @@ test_apps: $(LIB_DIR)/libHalide.a $(BIN_DIR)/libHalide.$(SHARED_EXT) $(INCLUDE_D
make -C apps/local_laplacian clean HALIDE_BIN_PATH=$(CURDIR) HALIDE_SRC_PATH=$(ROOT_DIR)
make -C apps/local_laplacian bin/out.png HALIDE_BIN_PATH=$(CURDIR) HALIDE_SRC_PATH=$(ROOT_DIR)
make -C apps/interpolate clean HALIDE_BIN_PATH=$(CURDIR) HALIDE_SRC_PATH=$(ROOT_DIR)
make -C apps/interpolate out.png HALIDE_BIN_PATH=$(CURDIR) HALIDE_SRC_PATH=$(ROOT_DIR)
make -C apps/interpolate bin/out.png HALIDE_BIN_PATH=$(CURDIR) HALIDE_SRC_PATH=$(ROOT_DIR)
make -C apps/blur clean HALIDE_BIN_PATH=$(CURDIR) HALIDE_SRC_PATH=$(ROOT_DIR)
make -C apps/blur bin/test HALIDE_BIN_PATH=$(CURDIR) HALIDE_SRC_PATH=$(ROOT_DIR)
apps/blur/bin/test
Expand Down
2 changes: 0 additions & 2 deletions apps/interpolate/.gitignore

This file was deleted.

13 changes: 7 additions & 6 deletions apps/interpolate/Makefile
Expand Up @@ -4,12 +4,13 @@ CXXFLAGS += -g -Wall

.PHONY: clean

interpolate: interpolate.cpp
$(CXX) $(CXXFLAGS) interpolate.cpp $(LIB_HALIDE) -o interpolate \
$(PNGFLAGS) $(LDFLAGS) $(LLVM_SHARED_LIBS)
$(BIN)/interpolate: interpolate.cpp
@-mkdir -p $(BIN)
$(CXX) $(CXXFLAGS) interpolate.cpp $(LIB_HALIDE) -o $@ $(PNGFLAGS) $(LDFLAGS) $(LLVM_SHARED_LIBS)

out.png: interpolate
./interpolate ../images/rgba.png out.png
$(BIN)/out.png: $(BIN)/interpolate
@-mkdir -p $(BIN)
$^ $(IMAGES)/rgba.png $@

clean:
rm -f interpolate interpolate.h out.png
rm -rf $(BIN)

0 comments on commit 7d56f1d

Please sign in to comment.