forked from noio/kingdom
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·58 lines (45 loc) · 1.16 KB
/
Makefile
File metadata and controls
executable file
·58 lines (45 loc) · 1.16 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
53
54
55
56
57
58
# term makefile
#
# files and directories
#
BINDIR = .
SOURCE = ./king.as
TARGET = $(BINDIR)/main.swf
#
# compiler and debugger setup
#
COMPILER = /Developer/SDKs/flex_sdk_4.6.0/bin/mxmlc
DEBUGGER = /Developer/SDKs/flex_sdk_4.6.0/bin/fdb
ARGS_COMMON = -source-path . -file-specs $(SOURCE) -o $(TARGET) -static-link-runtime-shared-libraries -strict -headless-server=true
ARGS_DEBUG = -debug=true -define=CONFIG::debugging,true
ARGS_RELEASE = -debug=false -define=CONFIG::debugging,false
# if verbose=1 is supplied on the command line, then we will display the
# command lines executed
ifeq ($(verbose),1)
export EC =
else
export EC = @
endif
#
# targets
#
all:
echo Switch the two preloaders in king.as to compile without MochiAds support.
# ./convert_sounds.sh
python convert_tiles.py
python convert_weather.py
$(EC)mkdir -p $(BINDIR)
$(EC)rm -rf $(TARGET)
$(EC)$(COMPILER) $(ARGS_COMMON) $(ARGS_DEBUG)
# cp $(TARGET) "${HOME}/Google Drive/Art"
open $(TARGET)
install:
$(EC)mkdir -p $(BINDIR)
$(EC)rm -rf $(TARGET)
$(EC)$(COMPILER) $(ARGS_COMMON) $(ARGS_RELEASE)
run:
open $(TARGET)
debug:
$(DEBUGGER) $(TARGET)
clean:
rm -rf $(TARGET)