2 # Most of the libraries just generate object files that
3 # are later linked in build into the libGP.so
6 $(error LIBNAME not defined
, fix your library Makefile
)
10 # Rules for single library, applied only when objects
11 # are not linked to the libGP.so. This generates libGP_$(LIBNAME).
13 ifeq ($(BUILDLIB
),yes
)
19 ALL
+=$(LIBP
)$(LIB
).so
$(LIBP
)$(LIB
).a
20 CLEAN
+=$(LIBP
)$(LIB
).so
$(LIBP
)$(LIB
).so
.0 $(LIBP
)$(LIB
).a
21 OBJS
=$(CSOURCES
:.c
=.o
)
24 $(LIBP
)$(LIB
).so
: $(OBJS
)
26 rm -f
$(LIBP
)$(LIB
).so
.0
27 cd
$(LIBP
) && ln
-s
$(LIB
).so
$(LIB
).so
.0
28 $(CC
) -fPIC
-dPIC
--shared
-Wl
,-soname
-Wl
,$(LIB
).so
.0 $(OBJECTS
) -o
$@
30 @
rm -f
$(LIBP
)$(LIB
).so
.0
31 @cd
$(LIBP
) && ln
-s
$(LIB
).so
$(LIB
).so
.0
33 @
$(CC
) -fPIC
-dPIC
--shared
-Wl
,-soname
-Wl
,$(LIB
).so
.0 $(OBJECTS
) -o
$@
36 $(LIBP
)$(LIB
).a
: $(OBJS
)
38 $(AR
) rcs
$@
$(OBJECTS
)
41 @
$(AR
) rcs
$@
$(OBJECTS
)
46 include $(TOPDIR
)/config.mk
48 ifeq ($(REBUILD_LIBGP
),yes
)
52 @
$(MAKE
) --no-print-directory
-C
$(TOPDIR
)/build
/