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
)
20 rm -rf
$(STATIC_LIB
) $(DYNAMIC_LIB
) $(SYMLINKS
)
22 @echo
"RM $(STATIC_LIB) $(DYNAMIC_LIB) $(SYMLINKS)"
23 @
rm -rf
$(STATIC_LIB
) $(DYNAMIC_LIB
) $(SYMLINKS
)
26 $(STATIC_LIB
): $(LIB_OBJECTS
)
34 $(DYNAMIC_LIB
): $(LIB_OBJECTS
)
36 $(CC
) -fPIC
-dPIC
--shared
-Wl
,-soname
-Wl
,$(SONAME
) $^
-o
$@
39 @
$(CC
) -fPIC
-dPIC
--shared
-Wl
,-soname
-Wl
,$(SONAME
) $^
-o
$@
42 $(SYMLINKS
): $(DYNAMIC_LIB
)