From 6a9a434652c9c3b04fcf913f06f95e78aeb7ca36 Mon Sep 17 00:00:00 2001 From: YourFritz Date: Sun, 13 Aug 2017 22:07:01 +0200 Subject: [PATCH] there is more than one object file now --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 697b840..8072c1c 100644 --- a/Makefile +++ b/Makefile @@ -62,19 +62,19 @@ install-lib: $(LIB_SO) $(LIB_A) $(LIBHDR) # shared library # $(LIB_SO): $(LIB_OBJS) $(LIBHDR) libcrypt.h - $(CC) -shared -o $@ $< + $(CC) -shared -o $@ $(filter %.o,$^) # # static library # $(LIB_A): $(LIB_OBJS) $(LIBHDR) libcrypt.h -$(RM) $@ 2>/dev/null - $(AR) rcu $@ $< + $(AR) rcu $@ $(filter %.o,$^) $(RANLIB) $@ # # the CLI binary # $(BINARY): $(BIN_OBJS) $(LIB_SO) - $(CC) $(LDFLAGS) $(filter %.o,$<) -L. -l$(BASENAME) -o $@ $(LIBS) + $(CC) $(LDFLAGS) $(filter %.o,$^) -L. -l$(BASENAME) -o $@ $(LIBS) # # everything to make, if header file changes #