Commit fa75993e authored by Peter Pentchev's avatar Peter Pentchev

Fix parallel builds by actually defining all the targets!

parent faf82f7f
......@@ -3,6 +3,8 @@ Changelog for libdebug.
0.5.2 not yet ;)
- let some build tool names (CC, AR, ARFLAGS, INSTALL) be
overridden by environment variables
- allow libdebug to be built in parallel by actually defining
all the created files as make(1) targets
0.5.1 2016/04/18
- drop the sizeof(char) use in allocations; I don't think that
......
......@@ -2,6 +2,7 @@
# -*- sh -*-
# Copyright (c) 2002-2004 Abraham vd Merwe <abz@blio.com>
# Copyright (c) 2017 Peter Pentchev <roam@ringlet.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
......@@ -114,8 +115,13 @@ $(LIB):: $(LIB_A)
$(LIB):: $(OBJ)
$(CC) $(LDFLAGS) -shared -Wl,-soname -Wl,$(LIB_MAJOR) $^ -o $@ $(LDLIBS)
ln -sf $@ $(LIB_MAJOR)
$(LIB_MAJOR): $(LIB)
ln -sf $(LIB) $(LIB_MAJOR)
$(LIB_SO): $(LIB_MAJOR)
ln -sf $(LIB_MAJOR) $(LIB_SO)
else # ifneq ($(MAJOR),)
$(LIB):: $(OBJ)
$(CC) $(LDFLAGS) -shared $^ -o $@ $(LDLIBS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment