2010-10-26 00:54:57 +04:00
|
|
|
ifeq ($(TOPSRCDIR),)
|
|
|
|
export TOPSRCDIR = $(shell pwd)
|
|
|
|
endif
|
|
|
|
ifeq ($(VERSION),)
|
2011-03-30 00:38:20 +04:00
|
|
|
export VERSION = 0.4
|
2010-10-26 00:54:57 +04:00
|
|
|
endif
|
|
|
|
|
2010-10-27 22:07:29 +04:00
|
|
|
sys := $(shell uname -s)
|
|
|
|
ifeq ($(sys), Darwin)
|
|
|
|
so = dylib
|
|
|
|
else
|
2011-04-20 07:35:27 +04:00
|
|
|
ifeq ($(sys), MINGW32_NT-5.1)
|
2010-10-27 22:07:29 +04:00
|
|
|
so = dll
|
|
|
|
else
|
|
|
|
ifeq ($(sys), Linux)
|
|
|
|
so = so
|
|
|
|
else
|
|
|
|
$(error Sorry, your os is unknown/unsupported: $(sys))
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2010-11-05 01:36:27 +03:00
|
|
|
so_files=components/libmediarecorder.$(so)
|
2011-03-29 02:56:56 +04:00
|
|
|
xpt_files=components/IMediaRecorder.xpt
|
2010-10-27 00:30:06 +04:00
|
|
|
|
2010-10-26 00:54:57 +04:00
|
|
|
xpi_name=rainbow-$(VERSION)-dev.xpi
|
2010-10-27 00:30:06 +04:00
|
|
|
xpi_files=chrome.manifest install.rdf content/ $(so_files) $(xpt_files)
|
2010-10-26 00:54:57 +04:00
|
|
|
|
|
|
|
all: xpi
|
|
|
|
|
2010-10-27 00:30:06 +04:00
|
|
|
$(so_files) $(xpt_files):
|
2010-11-05 01:36:27 +03:00
|
|
|
$(MAKE) -C components
|
2010-10-26 00:54:57 +04:00
|
|
|
|
2010-10-27 00:30:06 +04:00
|
|
|
xpi: $(so_files) $(xpt_files)
|
2010-10-26 00:54:57 +04:00
|
|
|
rm -f $(TOPSRCDIR)/$(xpi_name)
|
|
|
|
cd $(TOPSRCDIR);zip -9r $(xpi_name) $(xpi_files)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(TOPSRCDIR)/$(xpi_name)
|
2010-11-05 01:36:27 +03:00
|
|
|
$(MAKE) -C components clean
|
2010-10-27 00:30:06 +04:00
|
|
|
|