Skip to content

Commit

Permalink
there is more than one object file now
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPawn committed Aug 13, 2017
1 parent 4930638 commit 6a9a434
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit 6a9a434

Please sign in to comment.