1 -include ..
/config-host.mak
2 -include $(SRC_PATH
)/Makefile.objs
3 -include $(SRC_PATH
)/rules.mak
5 $(call set-vpath
, $(SRC_PATH
):$(SRC_PATH
)/libcacard
)
7 # objects linked against normal qemu binaries, not compiled with libtool
8 QEMU_OBJS
=$(addprefix ..
/,$(oslib-obj-y
) qemu-malloc.o qemu-timer-common.o
$(trace-obj-y
))
10 # objects linked into a shared library, built with libtool with -fPIC if required
11 QEMU_OBJS_LIB
=$(addsuffix .lo
,$(basename $(QEMU_OBJS
)))
15 libcacard.lib-y
=$(addsuffix .lo
,$(basename $(libcacard-y
)))
17 vscclient
: $(libcacard-y
) $(QEMU_OBJS
) vscclient.o
18 $(call quiet-command
,$(CC
) $(libcacard_libs
) -lrt
-o
$@
$^
," LINK $@")
21 rm -f
*.o
*/*.o
*.d
*/*.d
*.a
*/*.a
*~
*/*~ vscclient
*.lo .libs
/* *.la
26 #########################################################################
27 # Rules for building libcacard standalone library
31 @echo
"libtool is missing, please install and rerun configure"; exit
1
34 @echo
"libtool is missing, please install and rerun configure"; exit
1
36 libcacard.la
: $(libcacard.lib-y
) $(QEMU_OBJS_LIB
)
37 $(call quiet-command
,libtool
--mode
=link
--quiet
--tag
=CC
$(CC
) $(libcacard_libs
) -lrt
-rpath
$(libdir) -o
$@
$^
," lt LINK $@")
39 install-libcacard
: libcacard.la
40 $(INSTALL_DIR
) "$(DESTDIR)$(libdir)"
41 libtool
--mode
=install $(INSTALL_PROG
) libcacard.la
"$(DESTDIR)$(libdir)"