]> git.proxmox.com Git - qemu.git/blame - libcacard/Makefile
tcg-arm: Use TCGMemOp within qemu_ldst routines
[qemu.git] / libcacard / Makefile
CommitLineData
0f94d6da
AL
1libcacard_includedir=$(includedir)/cacard
2
992aeb8e 3TOOLS += vscclient$(EXESUF)
44dc0ca3
AL
4
5# objects linked into a shared library, built with libtool with -fPIC if required
ff667e2e 6libcacard-obj-y = $(stub-obj-y) $(libcacard-y)
975a0015
SH
7libcacard-obj-y += util/osdep.o util/cutils.o util/qemu-timer-common.o
8libcacard-obj-y += util/error.o util/qemu-error.o
baacf047
PB
9libcacard-obj-$(CONFIG_WIN32) += util/oslib-win32.o util/qemu-thread-win32.o
10libcacard-obj-$(CONFIG_POSIX) += util/oslib-posix.o util/qemu-thread-posix.o
ff667e2e 11libcacard-obj-y += $(filter trace/%, $(util-obj-y))
d9dc91ac 12
591eca67 13libcacard-lobj-y=$(patsubst %.o,%.lo,$(libcacard-obj-y))
111a38b0 14
21655882
PB
15# libtool will build the .o files, too
16$(libcacard-obj-y): | $(libcacard-lobj-y)
17
992aeb8e 18all: libcacard.la libcacard.pc
111a38b0 19
26ca8c06 20vscclient$(EXESUF): libcacard/vscclient.o libcacard.la
af0c8e9f 21 $(call LINK,$^)
2e679780 22
44dc0ca3
AL
23#########################################################################
24# Rules for building libcacard standalone library
25
5018f1cc
PB
26libcacard.la: LDFLAGS += -rpath $(libdir) -no-undefined \
27 -export-syms $(SRC_PATH)/libcacard/libcacard.syms
af0c8e9f 28libcacard.la: LIBS += $(libcacard_libs)
591eca67 29libcacard.la: $(libcacard-lobj-y)
af0c8e9f 30 $(call LINK,$^)
111a38b0 31
992aeb8e 32libcacard.pc: $(SRC_PATH)/libcacard/libcacard.pc.in
47ecbdf0 33 $(call quiet-command,sed -e 's|@LIBDIR@|$(libdir)|' \
0f94d6da
AL
34 -e 's|@INCLUDEDIR@|$(libcacard_includedir)|' \
35 -e 's|@VERSION@|$(shell cat $(SRC_PATH)/VERSION)|' \
992aeb8e 36 -e 's|@PREFIX@|$(prefix)|' $< > libcacard.pc,\
47ecbdf0 37 " GEN $@")
0f94d6da
AL
38
39.PHONY: install-libcacard
40
992aeb8e
PB
41install: install-libcacard
42install-libcacard: libcacard.pc libcacard.la
44dc0ca3 43 $(INSTALL_DIR) "$(DESTDIR)$(libdir)"
0f94d6da
AL
44 $(INSTALL_DIR) "$(DESTDIR)$(libdir)/pkgconfig"
45 $(INSTALL_DIR) "$(DESTDIR)$(libcacard_includedir)"
21655882
PB
46 $(INSTALL_LIB) libcacard.la "$(DESTDIR)$(libdir)"
47 $(INSTALL_DATA) libcacard.pc "$(DESTDIR)$(libdir)/pkgconfig"
992aeb8e
PB
48 for inc in $(SRC_PATH)/libcacard/*.h; do \
49 $(INSTALL_DATA) $$inc "$(DESTDIR)$(libcacard_includedir)"; \
0f94d6da 50 done