File libsap-1.51.1.dif of Package libsap

--- Makefile
+++ Makefile	2002/04/19 09:39:14
@@ -1,5 +1,6 @@
+CC = g++
 OBJECTS= sapCpu.o sapPokey.o pokey0.o pokey1.o sapEngine.o
-OPTS=-O2 
+OPTS=-O2 -fPIC
 AR=ar
 
 all:
@@ -23,15 +24,15 @@
 	$(AR) rc $@ $(OBJECTS)
 
 libsap.so: $(OBJECTS)
-	$(CC) $(OBJECTS) -shared -o $@
+	$(CC) -shared -Wl,-soname,libsap.so -o $@ $(OBJECTS)
 
 clean:
 	rm -f $(OBJECTS) libsap.so libsap.a
 
 install:
-	install -Dm644 libsap.h /usr/local/include/libsap.h
-	if [ -f libsap.a ]; then install -Dm755 libsap.a /usr/local/lib/libsap.a; fi
-	if [ -f libsap.so ]; then install -Dm755 libsap.so /usr/local/lib/libsap.so; fi
+	install -Dm644 libsap.h $(DESTDIR)/usr/include/libsap.h
+	if [ -f libsap.a ]; then install -Dm755 libsap.a $(DESTDIR)$(libdir)/libsap.a; fi
+	if [ -f libsap.so ]; then install -Dm755 libsap.so $(DESTDIR)$(libdir)/libsap.so; fi
 
 uninstall:
-	rm -f /usr/local/include/libsap.h /usr/local/lib/libsap.a /usr/local/lib/libsap.so
+	rm -f /usr/include/libsap.h $(libdir)/libsap.a $(libdir)/libsap.so
openSUSE Build Service is sponsored by