-SRCS= kdb_stash.c kdb_create.c kdb_destroy.c common.c
+DEPLIBS = $(KDBLIB) $(DEPKLIB)
+LOCAL_LIBRARIES = $(KDBLIB) $(KLIB)
all:: kdb5_create kdb5_destroy kdb5_stash
-NormalProgramTarget(kdb5_create,kdb_create.o,$(KDBLIB) $(DEPKLIB),$(KDBLIB) $(KLIB),)
-NormalProgramTarget(kdb5_destroy,kdb_destroy.o,$(KDBLIB) $(DEPKLIB),$(KDBLIB) $(KLIB),)
-NormalProgramTarget(kdb5_stash,kdb_stash.o,$(KDBLIB) $(DEPKLIB),$(KDBLIB) $(KLIB),)
+SRCS= kdb_stash.c kdb_create.c kdb_destroy.c
+
+NormalProgramTarget(kdb5_create,kdb5_create.o,$(DEPLIBS),$(LOCAL_LIBRARIES),)
+NormalProgramTarget(kdb5_destroy,kdb5_destroy.o,$(DEPLIBS),$(LOCAL_LIBRARIES),)
+NormalProgramTarget(kdb5_stash,kdb5_stash.o,$(DEPLIBS),$(LOCAL_LIBRARIES),)