Skip to content

Commit

Permalink
Shell for ff
Browse files Browse the repository at this point in the history
  • Loading branch information
hansfilipelo committed May 23, 2016
0 parents commit 28da52f
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 0 deletions.
36 changes: 36 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
UNAME=$(shell uname -s)
HOSTNAME = $(shell hostname)

CC = g++
EXEC = flood
CCFLAGS = --std=c++14
INC =
LDFLAGS = -lm

SRC_DIR=src
BUILD_DIR=build
OBJS_DIR=$(BUILD_DIR)/objs/

SRC_FILES = $(wildcard $(SRC_DIR)/*.cpp)
H_FILES = $(wildcard $(SRC_DIR)/*.hpp)

OBJS_TMP = $(notdir $(SRC_FILES:.cpp=.o))
OBJS = $(addprefix $(OBJS_DIR),$(OBJS_TMP))

# Compile

all: $(EXEC)

$(EXEC): $(OBJS)
$(CC) $(OBJS) $(INC) -o $(EXEC) $(LDFLAGS)

$(OBJS_DIR):
mkdir -p $(OBJS_DIR)

$(OBJS_DIR)%.o: src/%.cpp src/%.hpp | $(OBJS_DIR)
$(CC) $(CCFLAGS) $(INC) -c -o $@ $<

clean:
rm -f $(EXEC) $(OBJS)
rm -rf $(BUILD_DIR)

9 changes: 9 additions & 0 deletions src/Utils.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "Utils.hpp"

using namespace std;

void Utils::flood_fill(vector< vector<int> > map, unsigned start_x, unsigned start_y)
{

}

8 changes: 8 additions & 0 deletions src/Utils.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include <vector>

class Utils
{
public:
static void flood_fill(std::vector< std::vector<int> > map, unsigned start_x, unsigned start_y);
private:
};
6 changes: 6 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include "main.hpp"

int main(int argc, char* argv[])
{

}
Empty file added src/main.hpp
Empty file.

0 comments on commit 28da52f

Please sign in to comment.