#brief : Makefile to build executable which make use of Logger framework
#Author: CppBuzz.com
#Date: 10th Aug 2022
#Follow us you Youtube, Twitter, LinkedIn & Facebook
#------------------------------------------------------------------------------------

LOGGER_FRM_SRC=./LogFramework/src/*.cpp
LOGGER_FRM_INC=./LogFramework/inc/*.h

APPLICATION_SRC=./src/*.cpp
APPLICATION_INC=./inc/*.H

TARGET = application.out

CC = g++
FLAGS = -g -Wall -std=c++14

INC=-I$(APPLICATION_INC) -I$(LOGGER_FRM_INC)
SRC=$(APPLICATION_SRC) $(LOGGER_FRM_SRC)
#-----------------------------------------------------------------------------------


all: main

main: $(TARGET)

$(TARGET): $(SRC)
	$(CC) $(SRC) $(INC) -o $(TARGET) $(FLAGS)

clean:
	echo "Deleting executables...";
	rm -rf application.out

