This repository was archived by the owner on May 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (43 loc) · 1.29 KB
/
Makefile
File metadata and controls
55 lines (43 loc) · 1.29 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
################################################################
#
# $Id:$
#
# $Log:$
#
MXMLC=mxmlc
MXMLCFLAGS=--target-player=10.0.0 -default-frame-rate=35 -default-size=960,600 -default-background-color=0x000000 \
-optimize=true -frames.frame=2,DoomShim $(AS3SRC)/DoomContainer.as \
-title="Doom" -creator="id Software" -date="12/02/2008"
MXMLCLIBS=-library-path+=$(DATA)/DoomAssets.swc,$(O)/doom/doom.swc,$(O)/heretic/heretic.swc,$(O)/hexen/hexen.swc
ALCPATH='$(ALCHEMY_HOME)/achacks:$(PATH)'
CSRC=src/c
AS3SRC=src/as3
DATA=data
O=bin
AS3OBJS= \
$(AS3SRC)/DoomContainer.as \
$(AS3SRC)/DoomGame.as \
$(AS3SRC)/DoomMenu.as \
$(AS3SRC)/Preloader.as \
$(DATA)/DoomAssets.swc
.PHONY: all
all: $(O)/DoomGame.swf
.PHONY: clean
clean:
rm -f $(O)/*.swf
rm -rf $(O)/*.o
rm -rf $(O)/*.swc
$(O)/DoomGame.swf: $(AS3OBJS) $(O)/doom/doom.swc $(O)/heretic/heretic.swc $(O)/hexen/hexen.swc
$(MXMLC) $(MXMLCFLAGS) $(MXMLCLIBS) -o $@
.PHONY: $(O)/doom/doom.swc
$(O)/doom/doom.swc:
cd $(CSRC)/doom && make
.PHONY: $(O)/heretic/heretic.swc
$(O)/heretic/heretic.swc:
cd $(CSRC)/heretic && make
.PHONY: $(O)/hexen/hexen.swc
$(O)/hexen/hexen.swc:
cd $(CSRC)/hexen && make
#############################################################
#
#############################################################