]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
also create trbnetd variant of libtrbnet.so
authorPhilipp Klaus <philipp.l.klaus@web.de>
Tue, 23 Oct 2018 16:41:39 +0000 (18:41 +0200)
committerPhilipp Klaus <philipp.l.klaus@web.de>
Tue, 23 Oct 2018 16:41:39 +0000 (18:41 +0200)
trbnetd/Makefile

index 125cacfb230c30af92e7cf8d0443f6735c4b3fc5..16b606fb549b5293cb954908ce6ec70742a58d89 100644 (file)
@@ -30,7 +30,7 @@ LOADLIBES = -lm
 
 TARGETS = trbcmd trbrichcmd trbflash trb_i2c trbdhcp pulser
 
-LIB_TARGETS = libtrbnet.a
+LIB_TARGETS = libtrbnet.a libtrbnet.so
 
 # ------------ Libaries ------------------------------------------------
 
@@ -67,7 +67,7 @@ ARFLAGS = -srv
 
 %.so: $%
        @echo CREATING shared library $@
-       $(LD) -shared -O $^ -o $@
+       $(LD) -shared $(LOADLIBES) -O $^ -o $@
        @echo DONE!
 
 # RPCGEN
@@ -145,6 +145,8 @@ trberror.o: trberror.c
 
 libtrbnet.a: trbnetrpc.o trbrpc_clnt.o trbrpc_xdr.o trberror.o
 
+libtrbnet.so: trbnetrpc.o trbrpc_clnt.o trbrpc_xdr.o trberror.o
+
 # ----------------------------------------------------------------------
 
 trbcmd.c: