-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (40 loc) · 1.55 KB
/
Makefile
File metadata and controls
53 lines (40 loc) · 1.55 KB
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
##############################################################################
# Compile the Proof Utilities plug-in in 32- and 64-bit mode.
# Settings
FM_SDK_VERSION = 14
PLUGIN_FILE_NAME = ProofUtilities
##############################################################################
# Standard CPPFLAGS
CPPFLAGS += -IPluginSDK/v$(FM_SDK_VERSION)/Headers
# -I<DIRECTORY> Look for included files in this directory. Works both for gcc
# and Microsoft cl.
##############################################################################
# Include platform-specific rules
ifeq ($(shell uname -s),Darwin)
include Makefile.mac
else ifeq ($(shell uname -o),Cygwin)
include Makefile.win
endif
##############################################################################
# Rule to output colored messages
define MESSAGE
@if [ -t 1 ] ; \
then r="\e[0;32m" ; g="\e[0;32m" ; y="\e[0;33m" ; b="\e[0;34m" ; \
R="\e[1;32m" ; G="\e[1;32m" ; Y="\e[1;33m" ; B="\e[1;34m" ; \
z="\e[0m"; \
else r="" ; g="" ; y="" ; b="" ; \
R="" ; G="" ; Y="" ; B="" ; \
z="" ; \
fi ; printf
endef
##############################################################################
# Rule to automatically add directories.
define MAKE-PARENT-DIRECTORY # $@
$(MESSAGE) "$${y}Creating directory:$${z} $(@D)\n"
mkdir -p $(@D)
endef
define MAKE-PARENT-DIRECTORY? # $@
$(if $(wildcard $(@D)),,$(MAKE-PARENT-DIRECTORY))
endef
# Legend
# -p create intermediate directories as required