Skip to content

Commit

Permalink
Merge branch 'ilair' into coverity_check
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo-Yuan-Huang committed Feb 1, 2018
2 parents a28fb41 + 81d65f9 commit e10682e
Show file tree
Hide file tree
Showing 28 changed files with 905 additions and 223 deletions.
1 change: 1 addition & 0 deletions apps/spec-pipe/.gitignore
@@ -0,0 +1 @@
main
27 changes: 27 additions & 0 deletions apps/spec-pipe/Makefile
@@ -0,0 +1,27 @@

export ROOT_PATH = $(shell pwd)
export ILA_LIB = $(ROOT_PATH)/../../build/lib
export ILA_HEADER = $(ROOT_PATH)/../../include

CXX=g++
CXX_FLAGS=-std=c++11 -Wall -fPIC
CXX_FLAGS+=-I$(ILA_HEADER)
LD_FLAGS=-L$(ILA_LIB) -lutild -lilad -lilatoolsd

SRC_DIR=src
OBJ_DIR=obj
SRC_FILES := $(wildcard $(SRC_DIR)/*.cc)
OBJ_FILES := $(patsubst $(SRC_DIR)/%.cc,$(OBJ_DIR)/%.o,$(SRC_FILES))

$(shell mkdir -p $(OBJ_DIR))

main: $(OBJ_FILES)
@$(CXX) -o $@ $^ $(LD_FLAGS)

$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cc
@$(CXX) $(CXX_FLAGS) -c -o $@ $<

all: main.exe

clean:
rm -rf $(OBJ_DIR)/*
5 changes: 5 additions & 0 deletions apps/spec-pipe/env.sh
@@ -0,0 +1,5 @@
#!/bin/sh

export LD_LIBRARY_PATH=$(pwd)/../../build/lib/:$LD_LIBRARY_PATH
export LIBRARY_PATH=$(pwd)/../../build/lib/:$LIBRARY_PATH

0 comments on commit e10682e

Please sign in to comment.