114 lines
3.1 KiB
Diff
114 lines
3.1 KiB
Diff
--- gsm-1.0-pl20.orig/Makefile 2022-07-03 19:49:29.000000000 +0200
|
|
+++ gsm-1.0-pl20/Makefile 2022-07-16 13:35:25.819524994 +0200
|
|
@@ -99,7 +99,7 @@
|
|
# Other tools
|
|
|
|
SHELL = /bin/sh
|
|
-LN = ln
|
|
+LN = ln -sf
|
|
BASENAME = basename
|
|
AR = ar
|
|
ARFLAGS = cr
|
|
@@ -142,7 +142,7 @@
|
|
|
|
# Targets
|
|
|
|
-LIBGSM = $(LIB)/libgsm.a
|
|
+LIBGSMSO = $(LIB)/libgsm.so
|
|
|
|
TOAST = $(BIN)/toast
|
|
UNTOAST = $(BIN)/untoast
|
|
@@ -260,7 +260,7 @@
|
|
# Install targets
|
|
|
|
GSM_INSTALL_TARGETS = \
|
|
- $(GSM_INSTALL_LIB)/libgsm.a \
|
|
+ $(GSM_INSTALL_LIB)/libgsm.so \
|
|
$(GSM_INSTALL_INC)/gsm.h \
|
|
$(GSM_INSTALL_MAN)/gsm.3 \
|
|
$(GSM_INSTALL_MAN)/gsm_explode.3 \
|
|
@@ -282,7 +282,7 @@
|
|
|
|
# Target rules
|
|
|
|
-all: $(LIBGSM) $(TOAST) $(TCAT) $(UNTOAST)
|
|
+all: $(LIBGSMSO) $(TOAST) $(TCAT) $(UNTOAST)
|
|
@-echo $(ROOT): Done.
|
|
|
|
tst: $(TST)/lin2cod $(TST)/cod2lin $(TOAST) $(TST)/test-result
|
|
@@ -302,24 +302,23 @@
|
|
|
|
# The basic API: libgsm
|
|
|
|
-$(LIBGSM): $(LIB) $(GSM_OBJECTS)
|
|
- -rm $(RMFLAGS) $(LIBGSM)
|
|
- $(AR) $(ARFLAGS) $(LIBGSM) $(GSM_OBJECTS)
|
|
- $(RANLIB) $(LIBGSM)
|
|
-
|
|
+$(LIBGSMSO): $(LIB) $(GSM_OBJECTS)
|
|
+ $(LD) -shared -Wl,-soname,libgsm.so.1 -o $@.1.0.13 $(GSM_OBJECTS)
|
|
+ $(LN) libgsm.so.1.0.13 $(LIBGSMSO).1
|
|
+ $(LN) libgsm.so.1.0.13 $(LIBGSMSO)
|
|
|
|
# Toast, Untoast and Tcat -- the compress-like frontends to gsm.
|
|
|
|
-$(TOAST): $(BIN) $(TOAST_OBJECTS) $(LIBGSM)
|
|
- $(LD) $(LFLAGS) -o $(TOAST) $(TOAST_OBJECTS) $(LIBGSM) $(LDLIB)
|
|
+$(TOAST): $(BIN) $(TOAST_OBJECTS) $(LIBGSMSO)
|
|
+ $(LD) $(LFLAGS) -o $(TOAST) $(TOAST_OBJECTS) $(LIBGSMSO) $(LDLIB)
|
|
|
|
$(UNTOAST): $(BIN) $(TOAST)
|
|
-rm $(RMFLAGS) $(UNTOAST)
|
|
- $(LN) $(TOAST) $(UNTOAST)
|
|
+ $(LN) toast $(UNTOAST)
|
|
|
|
$(TCAT): $(BIN) $(TOAST)
|
|
-rm $(RMFLAGS) $(TCAT)
|
|
- $(LN) $(TOAST) $(TCAT)
|
|
+ $(LN) toast $(TCAT)
|
|
|
|
|
|
# The local bin and lib directories
|
|
@@ -428,7 +427,7 @@
|
|
-print | xargs rm $(RMFLAGS)
|
|
|
|
clean: semi-clean
|
|
- -rm $(RMFLAGS) $(LIBGSM) $(ADDTST)/add \
|
|
+ -rm $(RMFLAGS) $(LIBGSMSO)* $(ADDTST)/add \
|
|
$(TOAST) $(TCAT) $(UNTOAST) \
|
|
$(ROOT)/gsm-1.0.tar.gz
|
|
|
|
@@ -476,22 +475,22 @@
|
|
$(TST)/test-result: $(TST)/lin2cod $(TST)/cod2lin $(TOAST) $(TST)/run
|
|
( cd $(TST); ./run )
|
|
|
|
-$(TST)/lin2txt: $(TST)/lin2txt.o $(LIBGSM)
|
|
+$(TST)/lin2txt: $(TST)/lin2txt.o $(LIBGSMSO)
|
|
$(LD) $(LFLAGS) -o $(TST)/lin2txt \
|
|
- $(TST)/lin2txt.o $(LIBGSM) $(LDLIB)
|
|
+ $(TST)/lin2txt.o $(LIBGSMSO) $(LDLIB)
|
|
|
|
-$(TST)/lin2cod: $(TST)/lin2cod.o $(LIBGSM)
|
|
+$(TST)/lin2cod: $(TST)/lin2cod.o $(LIBGSMSO)
|
|
$(LD) $(LFLAGS) -o $(TST)/lin2cod \
|
|
- $(TST)/lin2cod.o $(LIBGSM) $(LDLIB)
|
|
+ $(TST)/lin2cod.o $(LIBGSMSO) $(LDLIB)
|
|
|
|
-$(TST)/gsm2cod: $(TST)/gsm2cod.o $(LIBGSM)
|
|
+$(TST)/gsm2cod: $(TST)/gsm2cod.o $(LIBGSMSO)
|
|
$(LD) $(LFLAGS) -o $(TST)/gsm2cod \
|
|
- $(TST)/gsm2cod.o $(LIBGSM) $(LDLIB)
|
|
+ $(TST)/gsm2cod.o $(LIBGSMSO) $(LDLIB)
|
|
|
|
-$(TST)/cod2txt: $(TST)/cod2txt.o $(LIBGSM)
|
|
+$(TST)/cod2txt: $(TST)/cod2txt.o $(LIBGSMSO)
|
|
$(LD) $(LFLAGS) -o $(TST)/cod2txt \
|
|
- $(TST)/cod2txt.o $(LIBGSM) $(LDLIB)
|
|
+ $(TST)/cod2txt.o $(LIBGSMSO) $(LDLIB)
|
|
|
|
-$(TST)/cod2lin: $(TST)/cod2lin.o $(LIBGSM)
|
|
+$(TST)/cod2lin: $(TST)/cod2lin.o $(LIBGSMSO)
|
|
$(LD) $(LFLAGS) -o $(TST)/cod2lin \
|
|
- $(TST)/cod2lin.o $(LIBGSM) $(LDLIB)
|
|
+ $(TST)/cod2lin.o $(LIBGSMSO) $(LDLIB)
|