Skip to content

Commit

Permalink
'renamed binary'
Browse files Browse the repository at this point in the history
  • Loading branch information
swillner committed Nov 11, 2016
1 parent c5566b3 commit 1d8912e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin/
compile_commands.json
mrio_disaggregate
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ A makefile is provided, just use
```
make
```
and the binary can be found in the `bin` folder. Compiler has to support C++11, only tested with GCC.
to create the `mrio_disaggregate` binary. Compiler has to support C++11, only tested with GCC.

## Usage

`disaggregation` expects five filenames as parameters (example given under `examples/simple`):
`mrio_disaggregate` expects five filenames as parameters (example given under `examples/simple`):

1. Index file
CSV-file with two columns: 1. region name; 2. sector name. Its rows correspond to the rows and columns of the basetable file.
Expand Down
17 changes: 10 additions & 7 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
CPP_FILES := $(wildcard src/*.cpp)
OBJ_FILES := $(patsubst src/%.cpp,bin/%.o,$(CPP_FILES))
.SECONDARY: OBJ_FILES
LD_FLAGS := -lstdc++ -Wl,--gc-sections -lnetcdf_c++4
CC_FLAGS := -std=c++0x -I include/ -fdata-sections -ffunction-sections -Wshadow
CC_FLAGS := -std=c++0x -I include/ -fdata-sections -ffunction-sections -Wshadow

all: fast

fast: CC_FLAGS += -O3
fast: gcc

debug: CC_FLAGS += -g -DDEBUG
debug: gcc

gcc: CXX = g++
gcc: makedir
gcc: binaries

debug: CC_FLAGS += -g -DDEBUG
debug: gcc

clean:
@rm -f $(OBJ_FILES) bin/disaggregation
@rm -f $(OBJ_FILES) mrio_disaggregate

makedir:
@mkdir -p bin

binaries: bin/disaggregation
binaries: mrio_disaggregate

bin/disaggregation: $(OBJ_FILES)
mrio_disaggregate: $(OBJ_FILES)
@echo Linking to $@
@$(CXX) -o $@ $^ $(CC_FLAGS) $(LD_FLAGS)

Expand Down

0 comments on commit 1d8912e

Please sign in to comment.