Revision 00c705fb libcacard/Makefile
b/libcacard/Makefile | ||
---|---|---|
2 | 2 |
-include $(SRC_PATH)/Makefile.objs |
3 | 3 |
-include $(SRC_PATH)/rules.mak |
4 | 4 |
|
5 |
libcacard_srcpath=$(SRC_PATH)/libcacard |
|
6 | 5 |
libcacard_includedir=$(includedir)/cacard |
7 | 6 |
|
8 |
$(call set-vpath, $(SRC_PATH):$(libcacard_srcpath)) |
|
9 |
|
|
10 |
# objects linked against normal qemu binaries, not compiled with libtool |
|
11 |
QEMU_OBJS=$(addprefix ../,$(oslib-obj-y) qemu-timer-common.o $(trace-obj-y)) |
|
7 |
$(call set-vpath, $(SRC_PATH)) |
|
12 | 8 |
|
13 | 9 |
# objects linked into a shared library, built with libtool with -fPIC if required |
14 |
QEMU_OBJS_LIB=$(addsuffix .lo,$(basename $(QEMU_OBJS))) |
|
10 |
QEMU_OBJS=$(oslib-obj-y) qemu-timer-common.o $(trace-obj-y) |
|
11 |
QEMU_OBJS_LIB=$(patsubst %.o,%.lo,$(QEMU_OBJS)) |
|
15 | 12 |
|
16 | 13 |
QEMU_CFLAGS+=-I../ |
17 | 14 |
|
18 |
libcacard.lib-y=$(addsuffix .lo,$(basename $(libcacard-y))) |
|
19 |
|
|
20 |
vscclient: $(libcacard-y) $(QEMU_OBJS) vscclient.o |
|
21 |
$(call quiet-command,$(CC) -o $@ $^ $(libcacard_libs) $(LIBS)," LINK $@") |
|
15 |
libcacard.lib-y=$(patsubst %.o,%.lo,$(libcacard-y)) |
|
22 | 16 |
|
23 | 17 |
clean: |
24 | 18 |
rm -f *.o */*.o *.d */*.d *.a */*.a *~ */*~ vscclient *.lo .libs/* *.la *.pc |
25 | 19 |
rm -Rf .libs |
26 | 20 |
|
27 |
all: vscclient
|
|
21 |
all: libcacard.la libcacard.pc
|
|
28 | 22 |
# Dummy command so that make thinks it has done something |
29 | 23 |
@true |
30 | 24 |
|
... | ... | |
41 | 35 |
libcacard.la: $(libcacard.lib-y) $(QEMU_OBJS_LIB) |
42 | 36 |
$(call quiet-command,$(LIBTOOL) --mode=link --quiet --tag=CC $(CC) -rpath $(libdir) -o $@ $^ $(libcacard_libs)," lt LINK $@") |
43 | 37 |
|
38 |
libcacard_srcpath=$(SRC_PATH)/libcacard |
|
44 | 39 |
libcacard.pc: $(libcacard_srcpath)/libcacard.pc.in |
45 | 40 |
sed -e 's|@LIBDIR@|$(libdir)|' \ |
46 | 41 |
-e 's|@INCLUDEDIR@|$(libcacard_includedir)|' \ |
Also available in: Unified diff