OUTPUT := fluff.swf

ifdef RELEASE
DEBUG_FLAG := false
else
DEBUG_FLAG := true
endif

DEFINE=-define=CONFIG::DEBUG,$(DEBUG_FLAG)

all:
	fcsh-wrap -optimize=true -output $(OUTPUT) -static-link-runtime-shared-libraries=true -compatibility-version=3.0.0 --target-player=10.0.0 -compiler.debug=$(DEBUG_FLAG) $(DEFINE) Preloader.as -frames.frame mainframe Main

air:
	fcsh-wrap -optimize=true -output $(OUTPUT) -static-link-runtime-shared-libraries=true -compatibility-version=3.0.0 --target-player=10.0.0 -compiler.debug=$(DEBUG_FLAG) $(DEFINE) Main.as


clean:
	rm -f *~ $(OUTPUT)
	fcsh-wrap killall

.PHONY: all air clean


