Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > media > core-src > by-pkgid > c09e84ed5f67a89d71e1aa490c922a13 > files > 6

stk-4.3.0-alt3.src.rpm

diff -ruN stk-4.2.0-old/Makefile stk-4.2.0/Makefile
--- stk-4.2.0-old/Makefile	1970-01-01 01:00:00.000000000 +0100
+++ stk-4.2.0/Makefile	2005-09-15 09:10:51.000000000 +0200
@@ -0,0 +1,9 @@
+
+
+all:
+	make -C src
+	make -C projects/demo
+
+install:
+	make -C src install
+#	make -C projects/demo install
diff -ruN stk-4.2.0-old/src/Makefile.in stk-4.2.0/src/Makefile.in
--- stk-4.2.0-old/src/Makefile.in	2004-09-21 21:12:29.000000000 +0200
+++ stk-4.2.0/src/Makefile.in	2005-09-15 09:11:21.000000000 +0200
@@ -37,8 +37,8 @@
 CC       = @CXX@
 DEFS     = @byte_order@
 DEFS    += @debug@
-CFLAGS   = @cflags@
-CFLAGS  += @warn@ $(INCLUDE)
+CFLAGS   = -O2
+CFLAGS  += @warn@ $(INCLUDE) -fPIC
 
 REALTIME = @realtime@
 ifeq ($(REALTIME),yes)
@@ -66,3 +66,25 @@
 clean : 
 	-rm $(OBJECT_PATH)/*.o
 	-rm $(LIBRARY)
+
+SHLIB = libstk.so
+MAJ = 0
+MIN = 4.1.3
+                                                                                                                    
+shlibs: $(LIBRARY)
+	g++ -fPIC -shared -Wl,-soname=$(SHLIB).$(MAJ) -o libstk.so.$(MAJ).$(MIN) Release/*.o -lc -lasound -ljack
+	-ln -s $(SHLIB).$(MAJ).$(MIN) $(SHLIB).$(MAJ)
+	-ln -s $(SHLIB).$(MAJ).$(MIN) $(SHLIB)
+	
+install-headers:
+	install -d $(DESTDIR)/usr/include/stk
+	cp -r ../include/*.h $(DESTDIR)/usr/include/stk
+
+install: shlibs install-headers
+	install -d  $(DESTDIR)/usr/share/stk
+	install -d $(DESTDIR)/usr/lib
+	install -m 644 $(LIBRARY) $(DESTDIR)/usr/lib
+	install -m 644 $(SHLIB).$(MAJ).$(MIN) $(DESTDIR)/usr/lib
+	ln -s $(SHLIB).$(MAJ).$(MIN) $(DESTDIR)/usr/lib/$(SHLIB).$(MAJ)
+	ln -s $(SHLIB).$(MAJ).$(MIN) $(DESTDIR)/usr/lib/$(SHLIB)
+