"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Makefile" between
pacparser-1.3.8.tar.gz and pacparser-1.3.9.tar.gz

About: pacparser is a library to parse Proxy Auto-Config (PAC) files (incl. a pactester).

Makefile  (pacparser-1.3.8):Makefile  (pacparser-1.3.9)
skipping to change at line 27 skipping to change at line 27
# You should have received a copy of the GNU Lesser General Public # You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software # License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
# This file is not part of the source code repository. It's generated by the # This file is not part of the source code repository. It's generated by the
# packaging script. # packaging script.
-include version.mk -include version.mk
VERSION ?= $(shell git describe --always --tags --candidate=100) VERSION ?= $(shell git describe --always --tags --candidate=100)
PREFIX ?= /usr
OS_ARCH := $(subst /,_,$(shell uname -s | sed /\ /s//_/)) OS_ARCH := $(subst /,_,$(shell uname -s | sed /\ /s//_/))
LIBRARY_NAME = libpacparser LIBRARY_NAME = libpacparser
LIB_VER = 1 LIB_VER = 1
# This Makefile should at least work on Linux and Mac OS X. It should work on # This Makefile should at least work on Linux and Mac OS X. It should work on
# most other types of Unix systems too, but I have not put any conscious effort # most other types of Unix systems too, but I have not put any conscious effort
# for that. # for that.
# #
# Set variables according to Linux. # Set variables according to Linux.
SO_SUFFIX = so SO_SUFFIX = so
LIBRARY = $(LIBRARY_NAME).$(SO_SUFFIX).$(LIB_VER) LIBRARY = $(LIBRARY_NAME).$(SO_SUFFIX).$(LIB_VER)
MKSHLIB = $(CC) -shared MKSHLIB = $(CC) -shared
LIB_OPTS = -Wl,-soname=$(LIBRARY) -Wl,-exclude-libs=libjs.a LIB_OPTS = -Wl,-soname=$(LIBRARY) -Wl,-exclude-libs=libjs.a
SHFLAGS = -fPIC SHFLAGS = -fPIC
SMCFLAGS = -DHAVE_VA_COPY -DVA_COPY=__va_copy SMCFLAGS = -DHAVE_VA_COPY -DVA_COPY=__va_copy
ifeq ($(OS_ARCH),Darwin) ifeq ($(OS_ARCH),Darwin)
PREFIX = /usr/local PREFIX ?= /usr/local
MAC_MAJOR_VERSION := $(shell sw_vers -productVersion | cut -d. -f1) MAC_MAJOR_VERSION := $(shell sw_vers -productVersion | cut -d. -f1)
MAC_GT_OS11 := $(shell [ $(MAC_MAJOR_VERSION) -le 10 ] && echo false) MAC_GT_OS11 := $(shell [ $(MAC_MAJOR_VERSION) -le 10 ] && echo false)
SO_SUFFIX = dylib SO_SUFFIX = dylib
LIBRARY = $(LIBRARY_NAME).$(LIB_VER).$(SO_SUFFIX) LIBRARY = $(LIBRARY_NAME).$(LIB_VER).$(SO_SUFFIX)
MKSHLIB = $(CC) -dynamiclib -framework System MKSHLIB = $(CC) -dynamiclib -framework System
LIB_OPTS = -install_name $(PREFIX)/lib/$(notdir $@) LIB_OPTS = -install_name $(PREFIX)/lib/$(notdir $@)
SHFLAGS = SHFLAGS =
ifeq ($(MAC_GT_OS11),false) ifeq ($(MAC_GT_OS11),false)
MAC_MINOR_VERSION := $(shell sw_vers -productVersion | cut -d. -f2) MAC_MINOR_VERSION := $(shell sw_vers -productVersion | cut -d. -f2)
MAC_GT_10_5 := $(shell [ $(MAC_MINOR_VERSION) -le 5 ] && echo false) MAC_GT_10_5 := $(shell [ $(MAC_MINOR_VERSION) -le 5 ] && echo false)
ifeq ($(MAC_GT_10_5),false) ifeq ($(MAC_GT_10_5),false)
SMCFLAGS = SMCFLAGS =
endif endif
endif endif
endif endif
PREFIX ?= /usr
CFLAGS = -g -DXP_UNIX -Wall -DVERSION=$(VERSION) CFLAGS = -g -DXP_UNIX -Wall -DVERSION=$(VERSION)
ifndef PYTHON ifndef PYTHON
PYTHON = python PYTHON = python
endif endif
# Spidermonkey library. # Spidermonkey library.
CFLAGS += -Ispidermonkey/js/src CFLAGS += -Ispidermonkey/js/src
LIBRARY_LINK = $(LIBRARY_NAME).$(SO_SUFFIX) LIBRARY_LINK = $(LIBRARY_NAME).$(SO_SUFFIX)
skipping to change at line 86 skipping to change at line 86
BIN_PREFIX = $(PREFIX)/bin BIN_PREFIX = $(PREFIX)/bin
MAN_PREFIX = $(PREFIX)/share/man MAN_PREFIX = $(PREFIX)/share/man
.PHONY: clean pymod install-pymod .PHONY: clean pymod install-pymod
all: testpactester all: testpactester
jsapi_buildstamp: spidermonkey/js/src jsapi_buildstamp: spidermonkey/js/src
cd spidermonkey && SMCFLAGS="$(SHFLAGS) $(SMCFLAGS)" $(MAKE) jsapi cd spidermonkey && SMCFLAGS="$(SHFLAGS) $(SMCFLAGS)" $(MAKE) jsapi
touch jsapi_buildstamp touch jsapi_buildstamp
libjs.a: spidermonkey/js/src spidermonkey/libjs.a: spidermonkey/js/src
cd spidermonkey && SMCFLAGS="$(SHFLAGS) $(SMCFLAGS)" $(MAKE) jslib cd spidermonkey && SMCFLAGS="$(SHFLAGS) $(SMCFLAGS)" $(MAKE) jslib
pacparser.o: pacparser.c pac_utils.h pacparser.h jsapi_buildstamp pacparser.o: pacparser.c pac_utils.h pacparser.h jsapi_buildstamp
$(CC) $(CFLAGS) $(SHFLAGS) -c pacparser.c -o pacparser.o $(CC) $(CFLAGS) $(SHFLAGS) -c pacparser.c -o pacparser.o
touch pymod/pacparser_o_buildstamp touch pymod/pacparser_o_buildstamp
$(LIBRARY): pacparser.o libjs.a $(LIBRARY): pacparser.o spidermonkey/libjs.a
$(MKSHLIB) $(CFLAGS) $(LDFLAGS) $(LIB_OPTS) -o $(LIBRARY) pacparser.o lib $(MKSHLIB) $(CFLAGS) $(LDFLAGS) $(LIB_OPTS) -o $(LIBRARY) pacparser.o spi
js.a -lm dermonkey/libjs.a -lm
$(LIBRARY_LINK): $(LIBRARY) $(LIBRARY_LINK): $(LIBRARY)
ln -sf $(LIBRARY) $(LIBRARY_LINK) ln -sf $(LIBRARY) $(LIBRARY_LINK)
pactester: pactester.c pacparser.h pacparser.o libjs.a pactester: pactester.c pacparser.h pacparser.o spidermonkey/libjs.a
$(CC) $(CFLAGS) $(LDFLAGS) pactester.c pacparser.o libjs.a -o pactester - $(CC) $(CFLAGS) $(LDFLAGS) pactester.c pacparser.o spidermonkey/libjs.a -
lm -L. -I. o pactester -lm -L. -I.
testpactester: pactester $(LIBRARY_LINK) testpactester: pactester $(LIBRARY_LINK)
echo "Running tests for pactester." echo "Running tests for pactester."
NO_INTERNET=$(NO_INTERNET) ../tests/runtests.sh NO_INTERNET=$(NO_INTERNET) ../tests/runtests.sh
docs: docs:
../tools/generatedocs.sh ../tools/generatedocs.sh
install: all install: all
install -d $(LIB_PREFIX) $(INC_PREFIX) $(BIN_PREFIX) install -d $(LIB_PREFIX) $(INC_PREFIX) $(BIN_PREFIX)
skipping to change at line 129 skipping to change at line 129
install -d $(MAN_PREFIX)/man3/ install -d $(MAN_PREFIX)/man3/
(test -d ../docs && install -m 644 ../docs/man/man3/*.3 $(MAN_PREFIX)/man 3/) || true (test -d ../docs && install -m 644 ../docs/man/man3/*.3 $(MAN_PREFIX)/man 3/) || true
# install html docs # install html docs
install -d $(PREFIX)/share/doc/pacparser/html/ install -d $(PREFIX)/share/doc/pacparser/html/
(test -d ../docs/html && install -m 644 ../docs/html/* $(PREFIX)/share/do c/pacparser/html/) || true (test -d ../docs/html && install -m 644 ../docs/html/* $(PREFIX)/share/do c/pacparser/html/) || true
# install examples # install examples
install -d $(PREFIX)/share/doc/pacparser/examples/ install -d $(PREFIX)/share/doc/pacparser/examples/
(test -d ../examples && install -m 644 ../examples/* $(PREFIX)/share/doc/ /pacparser/examples/) || true (test -d ../examples && install -m 644 ../examples/* $(PREFIX)/share/doc/ /pacparser/examples/) || true
# Targets to build python module # Targets to build python module
pymod: pacparser.o pacparser.h libjs.a pymod: pacparser.o pacparser.h spidermonkey/libjs.a
cp libjs.a pacparser.o pymod/ cd pymod && ARCHFLAGS="" $(PYTHON) setup.py build
$(PYTHON) ../tests/runtests.py
pymod-dist: pacparser.o pacparser.h spidermonkey/libjs.a
cd pymod && ARCHFLAGS="" $(PYTHON) setup.py build cd pymod && ARCHFLAGS="" $(PYTHON) setup.py build
cd pymod && ARCHFLAGS="" $(PYTHON) setup.py dist
$(PYTHON) ../tests/runtests.py $(PYTHON) ../tests/runtests.py
install-pymod: pymod install-pymod: pymod
cd pymod && ARCHFLAGS="" $(PYTHON) setup.py install --root="$(DESTDIR)/" $(EXTRA_ARGS) cd pymod && ARCHFLAGS="" $(PYTHON) setup.py install --root="$(DESTDIR)/" $(EXTRA_ARGS)
clean: clean:
rm -f $(LIBRARY_LINK) $(LIBRARY) libjs.a pacparser.o pactester pymod/pacp rm -f $(LIBRARY_LINK) $(LIBRARY) pacparser.o pactester pymod/pacparser_o_
arser_o_buildstamp jsapi_buildstamp buildstamp jsapi_buildstamp
rm -rf dist
cd pymod && $(PYTHON) setup.py clean --all cd pymod && $(PYTHON) setup.py clean --all
cd spidermonkey && $(MAKE) clean cd spidermonkey && $(MAKE) clean
 End of changes. 9 change blocks. 
13 lines changed or deleted 18 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)