# Copyright 2011 Giuseppe Cosentino Borgese <gicos.2@gmail.com>
# 
# This file is part of gSudoku.
# 
# gSudoku is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# gSudoku is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with gSudoku.  If not, see
# <http://www.gnu.org/licenses/>.

BIN=gSudoku
OBJ_FILES=main.o

all $(BIN): $(OBJ_FILES)
	cd Backend; make all
	cd Frontend; make all
	g++ -o $(BIN) -lncurses $(OBJ_FILES) Backend/*.o Frontend/*.o

run: $(BIN)
	./$(BIN)

%.o: %.cpp
	g++ -c $<

clean:
	cd Backend; make clean
	cd Frontend; make clean
	rm -f *.o $(BIN)

