Fixed link command line so that test_physfs links with libphysfs.so correctly.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 29 Aug 2001 03:33:07 +0000
changeset 81 0a0cd7fb0208
parent 80 e0f3c372cb9d
child 82 473b50402f55
Fixed link command line so that test_physfs links with libphysfs.so correctly.
Makefile
--- a/Makefile	Wed Aug 29 03:32:04 2001 +0000
+++ b/Makefile	Wed Aug 29 03:33:07 2001 +0000
@@ -156,9 +156,11 @@
 # Source and target names.
 #-----------------------------------------------------------------------------#
 
-BASELIBNAME := physfs
-ifneq ($(strip $(cygwin)),true)
-BASELIBNAME := lib$(strip $(BASELIBNAME))
+PUREBASELIBNAME := physfs
+ifeq ($(strip $(cygwin)),true)
+BASELIBNAME := $(strip $(PUREBASELIBNAME))
+else
+BASELIBNAME := lib$(strip $(PUREBASELIBNAME))
 endif
 
 MAINLIB := $(BINDIR)/$(strip $(BASELIBNAME))$(strip $(LIB_EXT))
@@ -237,7 +239,7 @@
 	$(LINKER) -o $(MAINLIB) $(LDFLAGS) $(SHAREDFLAGS) $(MAINOBJS)
 
 $(TESTEXE) : $(MAINLIB) $(TESTOBJS)
-	$(LINKER) -o $(TESTEXE) $(LDFLAGS) $(TESTLDFLAGS) $(TESTOBJS) $(MAINLIB)
+	$(LINKER) -o $(TESTEXE) $(LDFLAGS) $(TESTLDFLAGS) $(TESTOBJS) -L$(BINDIR) -l$(strip $(PUREBASELIBNAME))
 
 
 install: all