diff -ur wcstools-3.8.1/libwcs/Makefile wcstools-3.8.1.new/libwcs/Makefile
--- wcstools-3.8.1/libwcs/Makefile 2007-07-13 21:54:05.000000000 +0200
+++ wcstools-3.8.1.new/libwcs/Makefile 2010-01-30 01:17:58.000000000 +0100
@@ -11,10 +11,17 @@
sortstar.o platefit.o iget.o fileutil.o \
wcslib.o lin.o cel.o proj.o sph.o wcstrig.o distort.o
+all: libwcs.a libwcs.so.0.0.0
+
libwcs.a: $(OBJS)
ar rv $@ $?
ranlib $@
+libwcs.so.0.0.0: $(OBJS)
+ $(CC) $(CFLAGS) -shared -o $@ -Wl,-soname,libwc.so.0 $? -lm
+ ln -s libwcs.so.0.0.0 libwcs.so.0
+ ln -s libwcs.so.0.0.0 libwcs.so
+
actread.o: fitsfile.h wcscat.h wcs.h fitshead.h wcslib.h
binread.o: wcscat.h wcs.h fitshead.h wcslib.h
ctgread.o: wcscat.h wcs.h fitshead.h wcslib.h
@@ -65,4 +72,4 @@
worldpos.o: wcs.h fitshead.h wcslib.h
clean:
- rm -f *.a *.o
+ rm -f *.a *.o *.so*
diff -ur wcstools-3.8.1/Makefile wcstools-3.8.1.new/Makefile
--- wcstools-3.8.1/Makefile 2009-01-05 23:58:59.000000000 +0100
+++ wcstools-3.8.1.new/Makefile 2010-01-30 01:24:32.000000000 +0100
@@ -1,6 +1,6 @@
CFLAGS= -g
CC= cc
-LIBWCS = libwcs/libwcs.a
+LIBWCS = -L./libwcs -lwcs
LIBNED = libned/libned.a
LIBS = $(LIBWCS) -lm
#LIBS = $(LIBWCS) -lm -lnsl -lsocket