~eda-qa/dhlib/main

« back to all changes in this revision

Viewing changes to haxe/makefile

  • Committer: edA-qa mort-ora-y
  • Date: 2010-02-16 05:36:32 UTC
  • Revision ID: eda-qa@disemia.com-20100216053632-60lt7fndfi3fgblw
first

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This makefile doesn't use the common makefiles since it
 
2
# is for a HaXe testbed and we want to remain as simple
 
3
# as possible
 
4
 
 
5
NEVERFIX=BrokenVisibility.n
 
6
COMPILEFAIL=Typing.n 
 
7
 
 
8
all: TestWrapper.swf TestWrapper.n TestWrapper.js FailTestWrapper.swf FailTestWrapper.n FailTestWrapper.js SocketTest.swf
 
9
 
 
10
build-all : all $(COMPILEFAIL) $(NEVERFIX) 
 
11
 
 
12
test: TestWrapper.n
 
13
        neko TestWrapper.n
 
14
 
 
15
FailTestWrapper.n: EXTRA=-D FAILINGTESTS
 
16
TestWrapper.n FailTestWrapper.n: $(wildcard *.hx)
 
17
        haxe -cp . -neko $@ -main TestWrapper
 
18
 
 
19
FailTestWrapper.js: EXTRA=-D FAILINGTESTS
 
20
TestWrapper.js FailTestWrapper.js: $(wildcard *.hx)
 
21
        haxe -cp . -js $@ -main TestWrapper
 
22
 
 
23
FailTestWrapper.swf: EXTRA=-D FAILINGTESTS
 
24
TestWrapper.swf FailTestWrapper.swf: $(wildcard *.hx)
 
25
        swfmill simple resource.xml resource.swf
 
26
        haxe -cp . -swf $@ -swf-version 9 -main TestWrapper -swf-lib resource.swf $(EXTRA)
 
27
        
 
28
## For remaining targets
 
29
%.n: %.hx
 
30
        haxe -cp . -neko $@ -main $(subst .n,,$@)
 
31
        
 
32
%.swf: %.hx
 
33
        haxe -cp . -swf $@ -swf-version 9 -main $(subst .swf,,$@)