Link the tests against $(LIBPLC) $(LIBPLDS) $(LIBPR).
authorwtc%netscape.com
Thu, 25 Feb 1999 19:46:30 +0000
changeset 468 71be03c1ca03e6e6d6471c5a056e0a3f606bbc46
parent 467 10841b69eed7972f6c265528dc630c64cf497418
child 469 dcf7a8d4c5596180b0739d0278484cf1df5b8887
push idunknown
push userunknown
push dateunknown
Link the tests against $(LIBPLC) $(LIBPLDS) $(LIBPR).
lib/tests/Makefile
--- a/lib/tests/Makefile
+++ b/lib/tests/Makefile
@@ -25,18 +25,18 @@ ifeq ($(OS_ARCH), WINNT)
 DIRS = windows
 endif
 
 ifeq ($(OS_TARGET), WIN16)
 OS_CFLAGS = $(OS_EXE_CFLAGS)
 endif
 
 CSRCS = \
-	event.c  \
 	string.c \
+	event.c \
 	base64t.c
 
 ifeq ($(OS_ARCH), WINNT)
 PROG_SUFFIX = .exe
 else
 PROG_SUFFIX =
 endif
 
@@ -61,18 +61,16 @@ ifeq ($(OS_TARGET), WIN16)
 else
 LDOPTS = -NOLOGO -DEBUG -DEBUGTYPE:CV -INCREMENTAL:NO
 LIBPR = $(DIST)/lib/libnspr$(MOD_VERSION).$(LIB_SUFFIX)
 LIBPLC= $(DIST)/lib/libplc$(MOD_VERSION).$(LIB_SUFFIX)
 LIBPLDS= $(DIST)/lib/libplds$(MOD_VERSION).$(LIB_SUFFIX)
 endif
 endif
 
-LIBPR += $(LIBPLDS)
-
 ifneq ($(OS_ARCH), WINNT)
 PWD = $(shell pwd)
 endif
 
 ifeq ($(OS_ARCH), IRIX)
 LDOPTS += -rpath $(PWD)/$(DIST)/lib
 endif
 
@@ -180,20 +178,20 @@ ifeq ($(OS_TARGET),WIN16)
 	echo file >>w16link
 	echo $<  >>w16link
 	echo library  >>w16link
 	echo $(LIBPR),	     >>w16link
 	echo $(LIBPLC),		 >>w16link
 	echo winsock.lib     >>w16link
 	wlink @w16link.
 else
-	link $(LDOPTS) $< $(LIBPR) $(LIBPLC) wsock32.lib -out:$@
+	link $(LDOPTS) $< $(LIBPLC) $(LIBPLDS) $(LIBPR) wsock32.lib -out:$@
 endif
 else
-	$(CC) $(XCFLAGS) $< $(LDOPTS) $(LIBPR) $(LIBPLC) $(EXTRA_LIBS) -o $@
+	$(CC) $(XCFLAGS) $< $(LDOPTS) $(LIBPLC) $(LIBPLDS) $(LIBPR) $(EXTRA_LIBS) -o $@
 endif
 
 endif
 
 export:: $(TARGETS)
 install:: export
 clean::
 	rm -f $(TARGETS)