~ubuntu-branches/ubuntu/quantal/nspr/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/tests/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-08-10 11:34:26 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090810113426-3uv4diflrkcbdimm
Tags: 4.8-0ubuntu1
* New upstream release: 4.8 (LP: #387812)
* adjust patches to changed upstreanm codebase
  - update debian/patches/99_configure.patch
* update shlibs symbols to include new API elements
  - update debian/libnspr4-0d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
        lltest.c        \
105
105
        lock.c          \
106
106
        lockfile.c      \
 
107
        logfile.c       \
107
108
        logger.c                \
108
109
        makedir.c               \
109
110
        mbcs.c                  \
147
148
        prpollml.c              \
148
149
        ranfile.c       \
149
150
        randseed.c      \
 
151
        reinit.c        \
150
152
        rmdir.c                 \
151
153
        rwlocktest.c    \
152
154
        sel_spd.c               \
204
206
        zerolen.c       \
205
207
        $(NULL)
206
208
 
 
209
ifeq ($(OS_ARCH),WINCE)
 
210
TESTPROGS =          \
 
211
    wince_tester.cpp  \
 
212
    $(NULL)
 
213
endif
 
214
 
207
215
ifeq ($(OS_TARGET),OS2)
208
216
CSRCS +=            \
209
217
        sleep.c                 \
212
220
        $(NULL)
213
221
endif
214
222
 
215
 
ifeq (,$(filter-out WINNT OS2,$(OS_ARCH)))
 
223
ifeq (,$(filter-out WINCE WINNT OS2,$(OS_ARCH)))
216
224
PROG_SUFFIX = .exe
 
225
DLL_SUFFIX = .dll
217
226
else
218
227
PROG_SUFFIX =
 
228
DLL_SUFFIX = 
219
229
endif
220
230
 
 
231
ifeq ($(OS_ARCH),WINCE)
 
232
PROGS = $(addprefix $(OBJDIR)/, $(CSRCS:.c=$(DLL_SUFFIX))) $(addprefix $(OBJDIR)/, $(TESTPROGS:.cpp=$(PROG_SUFFIX)))
 
233
else
221
234
PROGS = $(addprefix $(OBJDIR)/, $(CSRCS:.c=$(PROG_SUFFIX)))
 
235
endif
222
236
 
223
237
TARGETS = $(PROGS)
224
238
 
230
244
else
231
245
  EXTRA_LIBS += wsock32.lib
232
246
  LDOPTS = -NOLOGO -DEBUG -DEBUGTYPE:CV -INCREMENTAL:NO
233
 
  ifdef PROFILE                                                                              
234
 
    LDOPTS += -PROFILE -MAP                                                                  
235
 
  endif # profile
236
 
endif # NS_USE_GCC
 
247
  ifdef PROFILE
 
248
    LDOPTS += -PROFILE -MAP
 
249
  endif # profile
 
250
endif # NS_USE_GCC
 
251
endif
 
252
 
 
253
ifeq ($(OS_ARCH),WINCE)
 
254
ifdef NS_USE_GCC
 
255
  EXTRA_LIBS += -lws2 -lcoredll
 
256
else
 
257
  INCLUDES += -FInst_wince.h
 
258
  EXTRA_LIBS += ws2.lib coredll.lib
 
259
  LDOPTS = -NOLOGO -DEBUG -DEBUGTYPE:CV -INCREMENTAL:NO -PDB:$(@:.dll=.pdb)
 
260
  EXE_EXTRA_LDOPTS = -SUBSYSTEM:CONSOLE
 
261
  ifdef PROFILE
 
262
    LDOPTS += -PROFILE -MAP
 
263
  endif # profile
 
264
endif # NS_USE_GCC
 
265
 
 
266
# Use CC to compile all CPP files / also use all CC flags
 
267
CCC = $(CC)
 
268
CXXFLAGS = $(CFLAGS)
237
269
endif
238
270
 
239
271
ifeq ($(OS_ARCH),OS2)
487
519
        fi
488
520
endif
489
521
else
 
522
ifeq ($(OS_ARCH),WINCE)
 
523
        $(PURE) $(LD) $(XCFLAGS) $< $(LDOPTS:.exe=.pdb) $(EXE_EXTRA_LDOPTS) $(LIBPLC) $(LIBNSPR) $(EXTRA_LIBS) -OUT:$@
 
524
else
490
525
        $(PURE) $(CC) $(XCFLAGS) $< $(LDOPTS) $(LIBPLC) $(LIBNSPR) $(EXTRA_LIBS) -o $@
 
526
endif # wince
491
527
endif # WINNT
492
528
endif # AIX_PRE_4_2
493
529
 
 
530
 
 
531
ifeq ($(OS_ARCH),WINCE)
 
532
$(OBJS): $(OBJDIR)/%.$(OBJ_SUFFIX): nst_wince.h
 
533
 
 
534
# WinCE HAS to be different.  Turns out that the OS swallows crashes
 
535
#   and returns a result code of zero -- an indication of success for
 
536
#   the shell script.  AND, WinCE does not really have a good shell 
 
537
#   to use for testing, anyway.
 
538
#
 
539
# To combat both issues, we need to build the tests as stand-alone
 
540
# DLLs, then dynamically load the DLLs one at a time inside a test
 
541
# program.  Each DLL's test will be run inside a TRY/CATCH construct,
 
542
# allowing the testing program to do what the shell script already
 
543
# does naturally. 
 
544
#
 
545
# This section builds DLLs instead of EXEs for each of the tests.
 
546
# - wolfe@lobo.us
 
547
$(OBJDIR)/%$(DLL_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX)
 
548
        @$(MAKE_OBJDIR)
 
549
        $(PURE) $(LD) $(XCFLAGS) $(LDOPTS) $(LIBPLC) $(LIBNSPR) $(EXTRA_LIBS) -DLL -OUT:$@ $< 
 
550
endif # wince
 
551
 
494
552
export:: $(TARGETS)
495
553
clean::
496
554
        rm -f $(TARGETS)