root / libcacard / Makefile @ 44dc0ca3
History | View | Annotate | Download (1.4 kB)
1 | 111a38b0 | Robert Relyea | -include ../config-host.mak |
---|---|---|---|
2 | 111a38b0 | Robert Relyea | -include $(SRC_PATH)/Makefile.objs |
3 | 111a38b0 | Robert Relyea | -include $(SRC_PATH)/rules.mak |
4 | 111a38b0 | Robert Relyea | |
5 | 111a38b0 | Robert Relyea | $(call set-vpath, $(SRC_PATH):$(SRC_PATH)/libcacard) |
6 | 111a38b0 | Robert Relyea | |
7 | 44dc0ca3 | Alon Levy | # objects linked against normal qemu binaries, not compiled with libtool |
8 | 44dc0ca3 | Alon Levy | QEMU_OBJS=$(addprefix ../,$(oslib-obj-y) qemu-malloc.o qemu-timer-common.o $(trace-obj-y)) |
9 | 44dc0ca3 | Alon Levy | |
10 | 44dc0ca3 | Alon Levy | # objects linked into a shared library, built with libtool with -fPIC if required |
11 | 44dc0ca3 | Alon Levy | QEMU_OBJS_LIB=$(addsuffix .lo,$(basename $(QEMU_OBJS))) |
12 | 111a38b0 | Robert Relyea | |
13 | 111a38b0 | Robert Relyea | QEMU_CFLAGS+=-I../ |
14 | 111a38b0 | Robert Relyea | |
15 | 44dc0ca3 | Alon Levy | libcacard.lib-y=$(addsuffix .lo,$(basename $(libcacard-y))) |
16 | 44dc0ca3 | Alon Levy | |
17 | 2ac85b93 | Robert Relyea | vscclient: $(libcacard-y) $(QEMU_OBJS) vscclient.o |
18 | 44dc0ca3 | Alon Levy | $(call quiet-command,$(CC) $(libcacard_libs) -lrt -o $@ $^," LINK $@") |
19 | 44dc0ca3 | Alon Levy | |
20 | 44dc0ca3 | Alon Levy | clean: |
21 | 44dc0ca3 | Alon Levy | rm -f *.o */*.o *.d */*.d *.a */*.a *~ */*~ vscclient *.lo .libs/* *.la |
22 | 44dc0ca3 | Alon Levy | rm -Rf .libs |
23 | 2ac85b93 | Robert Relyea | |
24 | 2ac85b93 | Robert Relyea | all: vscclient |
25 | 2ac85b93 | Robert Relyea | |
26 | 44dc0ca3 | Alon Levy | ######################################################################### |
27 | 44dc0ca3 | Alon Levy | # Rules for building libcacard standalone library |
28 | 44dc0ca3 | Alon Levy | |
29 | 44dc0ca3 | Alon Levy | ifeq ($(LIBTOOL),) |
30 | 44dc0ca3 | Alon Levy | libcacard.la: |
31 | 44dc0ca3 | Alon Levy | @echo "libtool is missing, please install and rerun configure"; exit 1 |
32 | 44dc0ca3 | Alon Levy | |
33 | 44dc0ca3 | Alon Levy | install-libcacard: |
34 | 44dc0ca3 | Alon Levy | @echo "libtool is missing, please install and rerun configure"; exit 1 |
35 | 44dc0ca3 | Alon Levy | else |
36 | 44dc0ca3 | Alon Levy | libcacard.la: $(libcacard.lib-y) $(QEMU_OBJS_LIB) |
37 | 44dc0ca3 | Alon Levy | $(call quiet-command,libtool --mode=link --quiet --tag=CC $(CC) $(libcacard_libs) -lrt -rpath $(libdir) -o $@ $^," lt LINK $@") |
38 | 111a38b0 | Robert Relyea | |
39 | 44dc0ca3 | Alon Levy | install-libcacard: libcacard.la |
40 | 44dc0ca3 | Alon Levy | $(INSTALL_DIR) "$(DESTDIR)$(libdir)" |
41 | 44dc0ca3 | Alon Levy | libtool --mode=install $(INSTALL_PROG) libcacard.la "$(DESTDIR)$(libdir)" |
42 | 44dc0ca3 | Alon Levy | endif |