aboutsummaryrefslogtreecommitdiff
path: root/libcacard
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-12-21 09:13:10 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2013-01-12 17:19:39 +0100
commitaf0c8e9f3c75a23905b97be6f6e530acaa7bedc3 (patch)
treea0983ceeac2cc81287c296bf0299edaa79425811 /libcacard
parent591eca679e6d1165c9c69896dcecc8087bb1619c (diff)
libcacard: use per-target variable definitions
This lets the libcacard Makefile use more rules.mak magic. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'libcacard')
-rw-r--r--libcacard/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/libcacard/Makefile b/libcacard/Makefile
index ddab5d8297..7fc6a06b8d 100644
--- a/libcacard/Makefile
+++ b/libcacard/Makefile
@@ -15,8 +15,9 @@ $(libcacard-obj-y): | $(libcacard-lobj-y)
QEMU_CFLAGS+=-I../
+vscclient: LIBS += $(libcacard_libs)
vscclient: vscclient.o $(libcacard-obj-y)
- $(call quiet-command,$(CC) -o $@ $^ $(libcacard_libs) $(LIBS)," LINK $@")
+ $(call LINK,$^)
clean:
rm -f *.o */*.o *.d */*.d *.a */*.a *~ */*~ vscclient *.lo */*.lo .libs/* */.libs/* *.la */*.la *.pc
@@ -29,8 +30,10 @@ all: libcacard.la libcacard.pc
#########################################################################
# Rules for building libcacard standalone library
+libcacard.la: LDFLAGS += -rpath $(libdir) -no-undefined
+libcacard.la: LIBS += $(libcacard_libs)
libcacard.la: $(libcacard-lobj-y)
- $(call quiet-command,$(LIBTOOL) --mode=link --tag=CC $(CC) -rpath $(libdir) -o $@ $^ $(libcacard_libs)," lt LINK $@")
+ $(call LINK,$^)
libcacard_srcpath=$(SRC_PATH)/libcacard
libcacard.pc: $(libcacard_srcpath)/libcacard.pc.in