forked from kyordhel/GPSRCmdGen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
107 lines (86 loc) · 2.49 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Makefile for compiling GPSRCmdGen under mono.
## MAIN ###################
PREFIX = GPSRCmdGen
## #################################### ##
## VARIABLES ##
## #################################### ##
SOLUTION = $(PREFIX).sln
PATH_DEBUG = bin/Debug
PATH_RELEASE = bin/Release
PATH_INTERM = obj/
BIN_DEBUG = $(PATH_DEBUG)/
BIN_RELEASE = $(PATH_RELEASE)/
XBUILDFLAGS = /p:Platform="x86" /verbosity:quiet /p:Warn=0 /p:WarningLevel=0
DEBUG = $(XBUILDFLAGS) /p:Configuration=Debug
RELEASE = $(XBUILDFLAGS) /p:Configuration=Release
## OPTIONS ################
SILENT = @
## COMMANDS ###############
MONO = mono
XBUILD = xbuild
REMOVE = rm -R -f
## COLORS #################
RESET = tput sgr0
#
BLACK = tput setaf 0
BLACK_BG = tput setab 0
DARKGREY = tput setaf 0; tput bold
RED = tput setaf 1
RED_BG = tput setab 1
LIGHTRED = tput setaf 1; tput bold
GREEN = tput setaf 2
GREEN_BG = tput setab 2
LIME = tput setaf 2; tput bold
BROWN = tput setaf 3
BROWN_BG = tput setab 3
YELLOW = tput setaf 3; tput bold
BLUE = tput setaf 4
BLUE_BG = tput setab 4
BRIGHTBLUE = tput setaf 4; tput bold
PURPLE = tput setaf 5
PURPLE_BG = tput setab 5
PINK = tput setaf 5; tput bold
CYAN = tput setaf 6
CYAN_BG = tput setab 6
BRIGHTCYAN = tput setaf 6; tput bold
LIGHTGREY = tput setaf 7
LIGHTGREYBG = tput setab 7
WHITE = tput setaf 7; tput bold
## NAMED-HELPER ###########
MENU = $(CYAN)
ITEM = $(BRIGHTCYAN)
DONE = $(CYAN)
CHECK = $(GREEN)
ERROR = $(RED)
## #################################### ##
## R U L E S ##
## #################################### ##
all: clean debug release
#run:
# $(SILENT) $(MAKE) clean
# $(SILENT) $(MAKE) release
# $(SILENT) $(MONO) $(BIN_RELEASE)GPSRCmdGen.exe
run:
$(SILENT) $(MAKE) clean
$(SILENT) $(MAKE) release
$(SILENT) $(MONO) $(BIN_RELEASE)GPSRCmdGen.exe
gpsr:
$(SILENT) $(MAKE) clean
$(SILENT) $(MAKE) release
$(SILENT) $(MONO) $(BIN_RELEASE)GPSRCmdGen.exe
egpsr:
$(SILENT) $(MAKE) clean
$(SILENT) $(MAKE) release
$(SILENT) $(MONO) $(BIN_RELEASE)EGPSRCmdGen.exe
debug:
$(SILENT) $(XBUILD) $(DEBUG) $(SOLUTION)
release:
$(SILENT) $(XBUILD) $(RELEASE) $(SOLUTION)
cleanall:
$(SILENT) $(MAKE) clean
$(SILENT) $(REMOVE) $(PATH_DEBUG)
$(SILENT) $(REMOVE) $(PATH_RELEASE)
$(SILENT) $(REMOVE) $(PATH_INTERM)
clean:
$(SILENT) $(XBUILD) $(DEBUG) $(SOLUTION) /t:Clean
$(SILENT) $(XBUILD) $(RELEASE) $(SOLUTION) /t:Clean