41 lines
1.4 KiB
Plaintext
41 lines
1.4 KiB
Plaintext
$OpenBSD: patch-interface_Makefile_in,v 1.2 2001/08/23 16:23:22 espie Exp $
|
|
--- interface/Makefile.in.orig Tue Dec 14 05:27:59 1999
|
|
+++ interface/Makefile.in Thu Aug 23 17:50:33 2001
|
|
@@ -21,8 +21,6 @@ CPPFLAGS+=-D_REENTRANT
|
|
OFILES = scan_devices.o common_interface.o cooked_interface.o interface.o\
|
|
scsi_interface.o smallft.o toc.o test_interface.o
|
|
|
|
-export VERSION
|
|
-
|
|
all: lib slib
|
|
|
|
debug:
|
|
@@ -31,10 +29,12 @@ debug:
|
|
lib:
|
|
$(MAKE) libcdda_interface.a CFLAGS="$(OPT)"
|
|
|
|
+MAJOR=0
|
|
+MINOR=0
|
|
+
|
|
slib:
|
|
$(MAKE) lessmessy
|
|
- $(MAKE) libcdda_interface.so CFLAGS="$(OPT) -fpic"
|
|
- [ -e libcdda_interface.so.0 ] || ln -s libcdda_interface.so libcdda_interface.so.0
|
|
+ $(MAKE) libcdda_interface.so.$(MAJOR).$(MINOR) VERSION=$(VERSION) CFLAGS="$(OPT) -fpic"
|
|
|
|
test:
|
|
$(MAKE) libcdda_interface.a CFLAGS="$(DEBUG)"
|
|
@@ -45,10 +45,8 @@ libcdda_interface.a: $(OFILES)
|
|
$(AR) -r libcdda_interface.a $(OFILES)
|
|
$(RANLIB) libcdda_interface.a
|
|
|
|
-libcdda_interface.so: $(OFILES)
|
|
- $(CC) -fpic -shared -o libcdda_interface.so.0.$(VERSION) -Wl,-soname -Wl,libcdda_interface.so.0 $(OFILES)
|
|
- [ -e libcdda_interface.so.0 ] || ln -s libcdda_interface.so.0.$(VERSION) libcdda_interface.so.0
|
|
- [ -e libcdda_interface.so ] || ln -s libcdda_interface.so.0.$(VERSION) libcdda_interface.so
|
|
+libcdda_interface.so.$(MAJOR).$(MINOR): $(OFILES)
|
|
+ $(CC) -fpic -shared -o libcdda_interface.so.$(MAJOR).$(MINOR) $(OFILES)
|
|
|
|
.c.o:
|
|
$(CC) $(CFLAGS) -c $<
|