1 libcacard_includedir
=$(includedir)/cacard
3 TOOLS
+= vscclient
$(EXESUF
)
5 # objects linked into a shared library, built with libtool with -fPIC if required
6 libcacard-obj-y
= $(stub-obj-y
) $(libcacard-y
)
7 libcacard-obj-y
+= util
/osdep.o util
/cutils.o util
/qemu-timer-common.o
8 libcacard-obj-y
+= util
/error.o util
/qemu-error.o
9 libcacard-obj-
$(CONFIG_WIN32
) += util
/oslib-win32.o util
/qemu-thread-win32.o
10 libcacard-obj-
$(CONFIG_POSIX
) += util
/oslib-posix.o util
/qemu-thread-posix.o
11 libcacard-obj-y
+= $(filter trace
/%, $(util-obj-y
))
13 libcacard-lobj-y
=$(patsubst %.o
,%.lo
,$(libcacard-obj-y
))
15 # libtool will build the .o files, too
16 $(libcacard-obj-y
): |
$(libcacard-lobj-y
)
18 all: libcacard.la libcacard.
pc
20 vscclient
$(EXESUF
): libcacard
/vscclient.o libcacard.la
23 #########################################################################
24 # Rules for building libcacard standalone library
26 libcacard.la
: LDFLAGS
+= -rpath
$(libdir) -no-undefined \
27 -export-syms
$(SRC_PATH
)/libcacard
/libcacard.syms
28 libcacard.la
: LIBS
+= $(libcacard_libs
)
29 libcacard.la
: $(libcacard-lobj-y
)
32 libcacard.
pc: $(SRC_PATH
)/libcacard
/libcacard.
pc.in
33 $(call quiet-command
,sed
-e
's|@LIBDIR@|$(libdir)|' \
34 -e
's|@INCLUDEDIR@|$(libcacard_includedir)|' \
35 -e
's|@VERSION@|$(shell cat $(SRC_PATH)/VERSION)|' \
36 -e
's|@PREFIX@|$(prefix)|' $< > libcacard.
pc,\
39 .PHONY
: install-libcacard
41 install: install-libcacard
42 install-libcacard
: libcacard.
pc libcacard.la
43 $(INSTALL_DIR
) "$(DESTDIR)$(libdir)"
44 $(INSTALL_DIR
) "$(DESTDIR)$(libdir)/pkgconfig"
45 $(INSTALL_DIR
) "$(DESTDIR)$(libcacard_includedir)"
46 $(INSTALL_LIB
) libcacard.la
"$(DESTDIR)$(libdir)"
47 $(INSTALL_DATA
) libcacard.
pc "$(DESTDIR)$(libdir)/pkgconfig"
48 for inc in
$(SRC_PATH
)/libcacard
/*.h
; do \
49 $(INSTALL_DATA
) $$inc "$(DESTDIR)$(libcacard_includedir)"; \