1 LIB_OBJECTS
=$(shell .
/get_objs.sh
)
9 STATIC_LIB
=$(LIB_NAME
).
$(LIB_VERSION
).a
10 DYNAMIC_LIB
=$(LIB_NAME
).so.
$(LIB_VERSION
).
$(LIB_RELEASE
)
11 SONAME
=$(LIB_NAME
).so.
$(LIB_MAJOR
)
12 SYMLINKS
=$(LIB_NAME
).so.
$(LIB_MAJOR
) $(LIB_NAME
).so
14 all: $(STATIC_LIB
) $(DYNAMIC_LIB
) $(SYMLINKS
)
22 rm -rf
$(STATIC_LIB
) $(DYNAMIC_LIB
) $(SYMLINKS
)
24 @echo
"RM $(STATIC_LIB) $(DYNAMIC_LIB) $(SYMLINKS)"
25 @
rm -rf
$(STATIC_LIB
) $(DYNAMIC_LIB
) $(SYMLINKS
)
28 $(STATIC_LIB
): $(LIB_OBJECTS
)
36 $(DYNAMIC_LIB
): $(LIB_OBJECTS
)
38 $(CC
) -fPIC
-dPIC
--shared
-Wl
,-soname
-Wl
,$(SONAME
) $^
-o
$@
41 @
$(CC
) -fPIC
-dPIC
--shared
-Wl
,-soname
-Wl
,$(SONAME
) $^
-o
$@
44 $(SYMLINKS
): $(DYNAMIC_LIB
)