Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
new build system completely decoupled from Mozilla
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrunschwig committed Jan 11, 2014
1 parent 9846b79 commit ff56f43
Show file tree
Hide file tree
Showing 62 changed files with 20,624 additions and 1,116 deletions.
76 changes: 76 additions & 0 deletions Makefile
@@ -0,0 +1,76 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

XPI_MODULE = enigmail
XPI_MODULE_VERS = 1.6

DEPTH = .

include $(DEPTH)/config/autoconf.mk

DIRS = ipc public

DIRS += ui package lang

PLATFORM_STR = unknown

# Edit the lines below as needed, depending upon your platform(s)
ifeq ($(OS_TARGET),Linux)
PLATFORM_STR = linux
endif

ifeq ($(OS_TARGET),WIN95)
PLATFORM_STR = win32
endif

ifeq ($(OS_TARGET),WINNT)
PLATFORM_STR = win32
endif

ifeq ($(OS_CONFIG),SunOS)
PLATFORM_STR = sunos5
endif

ifeq ($(OS_TARGET),Darwin)
PLATFORM_STR = darwin
endif

ifeq ($(OS_TARGET),FreeBSD)
PLATFORM_STR = freebsd
endif

ifeq ($(OS_TARGET),OpenBSD)
PLATFORM_STR = openbsd
endif

ifeq ($(OS_TARGET),OS2)
PLATFORM_STR = os2
endif

ifeq ($(OS_TARGET),OSF1)
PLATFORM_STR = osf1
endif

XPIFILE = $(XPI_MODULE)-$(XPI_MODULE_VERS)-$(PLATFORM_STR)-$(CPU_ARCH).xpi

.PHONY: dirs $(DIRS)

all: dirs

dirs: $(DIRS)

$(DIRS):
$(MAKE) -C $@

xpi:
$(srcdir)/util/genxpi $(XPIFILE) $(XPI_MODULE_VERS) $(OS_TARGET) $(CPU_ARCH) $(DIST) $(srcdir) $(XPI_MODULE) $(DLL_SUFFIX) $(DLL_PREFIX)

clean:
rm -f build/$(XPIFILE)
for dir in $(DIRS); do \
$(MAKE) -C $$dir clean; \
done

distclean: clean
rm -rf build/*
87 changes: 0 additions & 87 deletions Makefile.in

This file was deleted.

144 changes: 0 additions & 144 deletions build/Makefile.in

This file was deleted.

0 comments on commit ff56f43

Please sign in to comment.