forked from codebutler/firesheep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
31 lines (23 loc) · 813 Bytes
/
Makefile.am
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
ACLOCAL_AMFLAGS = -I .
SUBDIRS = backend
XPI_OUT_DIR = $(top_builddir)/build
XPI = $(XPI_OUT_DIR)/Firesheep-$(FIRESHEEP_PLATFORM).xpi
PLATFORM_DEST = $(top_builddir)/xpi/platform/$(FIRESHEEP_PLATFORM)
FIRESHEEP_BACKEND = $(PLATFORM_DEST)/firesheep-backend
LIBFIRESHEEP = $(PLATFORM_DEST)/libfiresheep.$(DLL_EXT)
all: platform zip
platform:
mkdir -p $(PLATFORM_DEST)
cp $(top_builddir)/backend/backend $(FIRESHEEP_BACKEND)
cp $(top_builddir)/backend/.libs/libfiresheep.$(DLL_EXT) $(LIBFIRESHEEP)
#if PLATFORM_WIN32
# cp -f `which cygwin1.dll` $(PLATFORM_DEST)
# cp -f `which cygstdc++-6.dll` $(PLATFORM_DEST)
# cp -f `which cyggcc_s-1.dll` $(PLATFORM_DEST)
#endif
zip:
mkdir -p $(XPI_OUT_DIR)
rm -f $(XPI)
cd xpi && zip -r ../$(XPI) *
clean-local:
rm -f $(FIRESHEEP_BACKEND) $(LIBFIRESHEEP) $(XPI)