~ubuntu-branches/ubuntu/lucid/nspr/lucid

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/config/rules.mk

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-03-24 14:33:41 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20100324143341-gf5gsvz81ck1vvp5
Tags: 4.8.4-0ubuntu1
* New upstream release: 4.8.4
* Adjust patches to changed upstream codebase
  - update debian/patches/99_configure.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
# Win95 and OS/2 require library names conforming to the 8.3 rule.
113
113
# other platforms do not.
114
114
#
115
 
ifeq (,$(filter-out WIN95 WINCE OS2,$(OS_TARGET)))
 
115
ifeq (,$(filter-out WIN95 WINCE WINMO OS2,$(OS_TARGET)))
116
116
LIBRARY         = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION)_s.$(LIB_SUFFIX)
117
117
SHARED_LIBRARY  = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX)
118
118
IMPORT_LIBRARY  = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).$(LIB_SUFFIX)
172
172
RELEASE_LIBS_DEST       = $(RELEASE_LIB_DIR)
173
173
endif
174
174
 
 
175
define MAKE_IN_DIR
 
176
        $(MAKE) -C $(dir) $@
 
177
 
 
178
endef # do not remove the blank line!
 
179
 
175
180
ifdef DIRS
176
 
LOOP_OVER_DIRS          =                                       \
177
 
        @for d in $(DIRS); do                                   \
178
 
                if test -d $$d; then                            \
179
 
                        set -e;                                 \
180
 
                        echo "cd $$d; $(MAKE) $@";              \
181
 
                        $(MAKE) -C $$d $@;                      \
182
 
                        set +e;                                 \
183
 
                else                                            \
184
 
                        echo "Skipping non-directory $$d...";   \
185
 
                fi;                                             \
186
 
        done
 
181
LOOP_OVER_DIRS = $(foreach dir,$(DIRS),$(MAKE_IN_DIR))
187
182
endif
188
183
 
189
184
################################################################################
310
305
        rm -f $@
311
306
        $(IMPLIB) $@ $(MAPFILE)
312
307
else
313
 
ifeq (,$(filter-out WIN95 WINCE,$(OS_TARGET)))
 
308
ifeq (,$(filter-out WIN95 WINCE WINMO,$(OS_TARGET)))
314
309
$(IMPORT_LIBRARY): $(SHARED_LIBRARY)
315
310
endif
316
311
endif
387
382
endif
388
383
 
389
384
ifdef NEED_ABSOLUTE_PATH
390
 
PWD := $(shell pwd)
391
385
# The quotes allow absolute paths to contain spaces.
392
 
pr_abspath = "$(if $(findstring :,$(1)),$(1),$(if $(filter /%,$(1)),$(1),$(PWD)/$(1)))"
 
386
pr_abspath = "$(if $(findstring :,$(1)),$(1),$(if $(filter /%,$(1)),$(1),$(CURDIR)/$(1)))"
393
387
endif
394
388
 
395
389
$(OBJDIR)/%.$(OBJ_SUFFIX): %.cpp