40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
$OpenBSD: patch-interface_Makefile_in,v 1.3 2005/12/23 15:03:06 espie Exp $
|
|
--- interface/Makefile.in.orig Tue Dec 14 05:27:59 1999
|
|
+++ interface/Makefile.in Fri Dec 23 15:41:36 2005
|
|
@@ -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,11 @@ debug:
|
|
lib:
|
|
$(MAKE) libcdda_interface.a CFLAGS="$(OPT)"
|
|
|
|
+LIBcdda_interface_VERSION= 0.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.$(LIBcdda_interface_VERSION) VERSION=$(VERSION) CFLAGS="$(OPT) -fpic"
|
|
|
|
test:
|
|
$(MAKE) libcdda_interface.a CFLAGS="$(DEBUG)"
|
|
@@ -45,10 +44,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.$(LIBcdda_interface_VERSION): $(OFILES)
|
|
+ $(CC) -fpic -shared -o $@ $(OFILES)
|
|
|
|
.c.o:
|
|
$(CC) $(CFLAGS) -c $<
|