.PHONY: all all: OfficeMischief.swf -include ~/.ld25.defines #Redefine FLEX_PATH in ~/.ld25.defines to point to your Flex SDK (or change this one, or put flex_sdk_4.6 in your working directory) FLEX_PATH ?= flex_sdk_4.6 MXMLC = ${FLEX_PATH}/bin/mxmlc GENERATED_SOURCES := \ Embeds.as \ SoundModel.as \ TileModel.as \ SOURCES := \ Main.as \ CoffeePotModel.as \ CoffeePotView.as \ Direction.as \ EntityModel.as \ EntityView.as \ FridgeModel.as \ FridgeView.as \ GameObjectEvent.as \ GameObjectModel.as \ GameObjectView.as \ GameplayView.as \ GameStateController.as \ GameStateModel.as \ Gender.as \ GraphicsConstants.as \ HotCoffeeView.as \ HUDView.as \ IObjectController.as \ IsoMath.as \ LevelModel.as \ OfficeDoorFrameModel.as \ OfficeDoorFrameView.as \ OfficeDoorView.as \ PlayerController.as \ PlayerInputController.as \ PlayerModel.as \ PlayerView.as \ TileView.as \ Vector2.as \ WorkerAIController.as \ WorkerModel.as \ WorkerView.as \ .PHONY: clean clean: rm -f OfficeMischief.swf rm -f ${GENERATED_SOURCES} %.as: generate%.rb resources/* ./$< > $@ OfficeMischief.swf: ${SOURCES} ${GENERATED_SOURCES} resources/* ${MXMLC} -debug -static-link-runtime-shared-libraries -o $@ ${firstword ${SOURCES}}