]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
make *sure* we link against newt in current directory
authornotting <notting>
Thu, 22 Oct 1998 02:53:56 +0000 (02:53 +0000)
committernotting <notting>
Thu, 22 Oct 1998 02:53:56 +0000 (02:53 +0000)
Makefile

index 0b7624554120f3e1df7a674bd89f38841e078938..c9a360eb311079e26fa62c1f939cd34792fae509 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -52,16 +52,16 @@ testgrid:   testgrid.o $(LIBNEWT)
        gcc -g -o testgrid testgrid.o $(LIBNEWT) $(LIBS)
 
 _snackmodule.so:   snackmodule.o $(LIBNEWTSH)
-       gcc --shared -o _snackmodule.so snackmodule.o -L . $(LIBNEWTSH)
+       gcc --shared -o _snackmodule.so snackmodule.o -L . -l$(LIBNEWTSH)
 
 snackmodule.o:   snackmodule.c
        gcc -I/usr/include/python1.5 -fPIC $(CFLAGS) -c snackmodule.c
 
 whiptail: $(NDIALOGOBJS) $(LIBNEWTSH)
-       gcc -g -o whiptail $(NDIALOGOBJS) -L . $(LIBNEWTSH) $(LIBS) -lpopt
+       gcc -g -o whiptail $(NDIALOGOBJS) -L . -l$(LIBNEWTSH) $(LIBS) -lpopt
 
 whiptcl.so: $(WHIPTCLOBJS) $(LIBNEWTSH)
-       gcc -shared -o whiptcl.so $(WHIPTCLOBJS) -L . $(LIBNEWTSH) -ltcl -lslang -lpopt -lm
+       gcc -shared -o whiptcl.so $(WHIPTCLOBJS) -L . -l$(LIBNEWTSH) -ltcl -lslang -lpopt -lm
 
 $(LIBNEWT): $(LIBNEWT)($(LIBOBJS))