-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
70 lines (63 loc) · 3.96 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
##----------------------------------------------------------------------------##
## █ █ ##
## ████████ ##
## ██ ██ ##
## ███ █ █ ███ main.cpp ##
## █ █ █ █ CorePegSolitaire ##
## ████████████ ##
## █ █ Copyright (c) 2015, 2016 ##
## █ █ █ █ AmazingCow - www.AmazingCow.com ##
## █ █ █ █ ##
## █ █ N2OMatt - [email protected] ##
## ████████████ www.amazingcow.com/n2omatt ##
## ##
## This software is licensed as GPLv3 ##
## CHECK THE COPYING FILE TO MORE DETAILS ##
## ##
## Permission is granted to anyone to use this software for any purpose, ##
## including commercial applications, and to alter it and redistribute it ##
## freely, subject to the following restrictions: ##
## ##
## 0. You **CANNOT** change the type of the license. ##
## 1. The origin of this software must not be misrepresented; ##
## you must not claim that you wrote the original software. ##
## 2. If you use this software in a product, an acknowledgment in the ##
## product IS HIGHLY APPRECIATED, both in source and binary forms. ##
## (See opensource.AmazingCow.com/acknowledgment.html for details). ##
## If you will not acknowledge, just send us a email. We'll be ##
## *VERY* happy to see our work being used by other people. :) ##
## The email is: [email protected] ##
## 3. Altered source versions must be plainly marked as such, ##
## and must not be misrepresented as being the original software. ##
## 4. This notice may not be removed or altered from any source ##
## distribution. ##
## 5. Most important, you must have fun. ;) ##
## ##
## Visit opensource.amazingcow.com for more open-source projects. ##
## ##
## Enjoy :) ##
##----------------------------------------------------------------------------##
#Create the object files and the executable test game.
all: obj bin
#Clean up the stuff generate by obj and bin targets.
clean:
rm -rf ./obj
rm -rf ./bin
#Create the object files for Core.
obj:
mkdir -p ./obj
gcc++ -std=c++11 -c \
-I./lib/CoreCoord/include \
./lib/CoreCoord/src/*.cpp \
./src/*.cpp
mv *.o ./obj/
#Create a test executable
bin:
mkdir -p ./bin
g++ -std=c++11 \
-D__AMAZINGCORE_COREPEGSOLITAIRE_TEST_ENABLED__ \
-I./lib/CoreCoord/include \
./lib/CoreCoord/src/*.cpp \
./src/*.cpp \
./test_game/main.cpp \
-o ./bin/testgame