2 $(error LIBNAME not defined
, fix your library Makefile
)
9 # If set to yes, builds single library for directory
11 ifeq ($(BUILDLIB
),yes
)
12 all: $(LIBP
)$(LIB
).so
$(LIBP
)$(LIB
).a
15 ifeq ($(BUILDLIB
),yes
)
16 CLEAN
+=$(LIBP
)$(LIB
).so
$(LIBP
)$(LIB
).so
.0 $(LIBP
)$(LIB
).a
20 # Trigger libGP.XX library rebuild
23 @
$(MAKE
) --no-print-directory
-C
$(TOPDIR
)/build
/
26 # Rules for single library
28 $(LIBP
)$(LIB
).so
: $(OBJECTS
)
30 rm -f
$(LIBP
)$(LIB
).so
.0
31 cd
$(LIBP
) && ln
-s
$(LIB
).so
$(LIB
).so
.0
32 $(CC
) -fPIC
-dPIC
--shared
-Wl
,-soname
-Wl
,$(LIB
).so
.0 $(OBJECTS
) -o
$@
34 @
rm -f
$(LIBP
)$(LIB
).so
.0
35 @cd
$(LIBP
) && ln
-s
$(LIB
).so
$(LIB
).so
.0
37 @
$(CC
) -fPIC
-dPIC
--shared
-Wl
,-soname
-Wl
,$(LIB
).so
.0 $(OBJECTS
) -o
$@
40 $(LIBP
)$(LIB
).a
: $(OBJECTS
)
42 $(AR
) rcs
$@
$(OBJECTS
)
45 @
$(AR
) rcs
$@
$(OBJECTS
)